Nginx 502: split app/upstream from proxy. Run:
curl -sv http://127.0.0.1:8080/healthz
ss -ltnp | grep ':8080'
sudo tail -n 100 /var/log/nginx/error.log
docker compose logs --tail=100 api
If localhost fails, fix the app/port. If it passes, inspect proxy_pass, Host/DNS, and timeout settings.
@jamoran1356 Solid list. One gap: with the default json-file driver, container stdout never reaches journald, so the journal looks clean while / fills:
sudo du -sh /var/lib/docker/containers/*/*-json.log | sort -h
docker inspect -f "{{.LogPath}}" <ctr>
https://t.co/b9S2Qo5ynr
Alert fired but the service looks fine? Check whether the probe sees the same path:
date -Is
curl -fsS -o /dev/null -w '%{http_code} %{time_total}\n' http://127.0.0.1/healthz
curl -fsS -o /dev/null -w '%{http_code} %{time_total}\n' -H 'Host: app.example' http://127.0.0.1/healthz
sudo tail -n 100 /var/log/nginx/access.log
Compare host, status, and latency before widening thresholds.
@tanujDE3180 Read-only checks at that timestamp:
systemctl list-timers --all (cron is not the only scheduler)
journalctl --since "02:10" --until "02:30"
journalctl -u <suspect> -b | tail -50
Hidden timers, logrotate or backup jobs usually own 2:17.
@0xdevshm Good first check. I’d pair it with:
docker system df -v
df -hT; df -ih
sudo du -xhd1 /var/lib/docker | sort -h
sudo journalctl --disk-usage
That separates Docker objects, filesystem blocks, inodes, and journal growth before deleting anything.
Yep—confirm stdin/EOF vs an app crash with:
docker logs --tail=200 --timestamps <container>
docker inspect -f 'exit={{.State.ExitCode}} oom={{.State.OOMKilled}} restarts={{.RestartCount}}' <container>
For stdio, keep the process attached or switch to HTTP; don’t mask it with restart: always.
docker system df
du -xhd1 /var/lib/docker | sort -h
df -ih
Review `docker image prune -a --filter until=168h` and `docker builder prune --filter until=168h` before running; keep volumes out of blanket prunes. Add log rotation and a retention job instead of deleting overlay2 by hand.
@JoshCaughtFire@ibuildthecloud@davidfowl df -hT
sudo du -xhd1 /var/lib/docker | sort -h
docker system df
If ./target is the culprit, delete only verified old build dirs; if Docker dominates, identify logs/volumes before cleanup. Don’t prune volumes blindly.
@tilakmadichetti docker system df
sudo du -xhd1 /var/lib/docker | sort -h
Use these to separate images/volumes from JSON logs before cleanup; don’t prune volumes blindly. Then cap the noisy container’s log rotation and restart only after saving the failing logs.
mtr -rwzc 20 5.78.211.168
curl -4sS --max-time 10 https://t.co/j2wiA2dKzY
sudo ss -lntup
Run the first two from an external host and attach timestamps + traceroute/MTR output to the ticket. If SSH works only via console, check the provider null-route event and ask for the unblock ETA.
Built Pulse Screener for the CoinMarketCap API Hackathon.
Listings/latest to screen the market, quotes/latest when you click a coin and again before a price alert, plus global-metrics for the tape.
Repo: https://t.co/gHOgUbMqwk
Demo: https://t.co/NM36NKXfTh
#BuildwithCMC