You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **Note:** If you previously ran Nostream on Linux/Mac and are switching to Windows, your existing data lives at `.nostr/data/` on the host. You'll need to copy it into the Docker named volume manually or it won't be visible to the new setup.
222
+
213
223
Stop the server with:
214
224
```
215
225
./scripts/stop
@@ -263,6 +273,60 @@ The logs can be viewed with:
263
273
journalctl -u nostream
264
274
```
265
275
276
+
## Troubleshooting
277
+
278
+
### Linux: Docker DNS resolution failures (`EAI_AGAIN`)
279
+
280
+
On some Linux environments (especially rolling-release distros or setups using
281
+
`systemd-resolved`), `docker compose` builds can fail with DNS errors such as:
282
+
283
+
- `getaddrinfo EAI_AGAIN registry.npmjs.org`
284
+
- `Temporary failure in name resolution`
285
+
286
+
To fix this, configure Docker daemon DNS in `/etc/docker/daemon.json`.
287
+
288
+
1. Create or update `/etc/docker/daemon.json`:
289
+
290
+
```
291
+
sudo mkdir -p /etc/docker
292
+
sudo nano /etc/docker/daemon.json
293
+
```
294
+
295
+
Add or update the file with:
296
+
297
+
```
298
+
{
299
+
"dns": ["1.1.1.1", "8.8.8.8"]
300
+
}
301
+
```
302
+
303
+
If this file already exists, merge the `dns` key into the existing JSON
304
+
instead of replacing the entire file.
305
+
306
+
If your environment does not allow public resolvers, replace `1.1.1.1` and
307
+
`8.8.8.8` with DNS servers approved by your network.
308
+
309
+
2. Restart Docker:
310
+
311
+
```
312
+
sudo systemctl restart docker
313
+
```
314
+
315
+
3. Verify DNS works inside containers:
316
+
317
+
```
318
+
docker run --rm busybox nslookup registry.npmjs.org
319
+
```
320
+
321
+
4. Retry starting nostream:
322
+
323
+
```
324
+
./scripts/start
325
+
```
326
+
327
+
Note: avoid `127.0.0.53` in Docker DNS settings because it points to the host's
328
+
local resolver stub and is often unreachable from containers.
329
+
266
330
## Quick Start (Standalone)
267
331
268
332
Set the following environment variables:
@@ -372,7 +436,7 @@ Clone repository and enter directory:
372
436
373
437
Start:
374
438
```
375
-
./scripts/start_local
439
+
./scripts/start
376
440
```
377
441
378
442
This will run in the foreground of the terminal until you stop it with Ctrl+C.
0 commit comments