bug fixing and deploy and build diagnostics
This commit is contained in:
+15
-15
@@ -32,32 +32,32 @@ sudo systemctl status tor # Tor hidden services
|
||||
|
||||
```bash
|
||||
# List all containers
|
||||
sudo podman ps -a
|
||||
podman ps -a
|
||||
|
||||
# Running count
|
||||
sudo podman ps --format '{{.Names}}' | wc -l
|
||||
podman ps --format '{{.Names}}' | wc -l
|
||||
|
||||
# Find exited/crashed containers
|
||||
sudo podman ps -a --filter status=exited
|
||||
podman ps -a --filter status=exited
|
||||
|
||||
# Container logs
|
||||
sudo podman logs {container-name} --tail 50
|
||||
podman logs {container-name} --tail 50
|
||||
|
||||
# Container resource usage
|
||||
sudo podman stats --no-stream
|
||||
podman stats --no-stream
|
||||
```
|
||||
|
||||
## 3. Fix Crashed Containers
|
||||
|
||||
```bash
|
||||
# Restart a specific container
|
||||
sudo podman restart {container-name}
|
||||
podman restart {container-name}
|
||||
|
||||
# If container won't start, check logs first
|
||||
sudo podman logs {container-name} --tail 100
|
||||
podman logs {container-name} --tail 100
|
||||
|
||||
# Remove and recreate (last resort)
|
||||
sudo podman rm -f {container-name}
|
||||
podman rm -f {container-name}
|
||||
# Then redeploy with: ./scripts/deploy-to-target.sh --live
|
||||
|
||||
# The health monitor auto-restarts containers every 60s
|
||||
@@ -173,11 +173,11 @@ uptime
|
||||
top -b -n 1 | head -15
|
||||
|
||||
# Check container CPU usage
|
||||
sudo podman stats --no-stream --format '{{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}'
|
||||
podman stats --no-stream --format '{{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}'
|
||||
|
||||
# Common causes:
|
||||
# - Bitcoin IBD (initial block download): normal, takes days
|
||||
# - Container crash loops: check `sudo podman ps -a --filter status=exited`
|
||||
# - Container crash loops: check `podman ps -a --filter status=exited`
|
||||
# - mempool-electrs indexing: normal after Bitcoin sync
|
||||
```
|
||||
|
||||
@@ -191,7 +191,7 @@ free -h
|
||||
swapon --show
|
||||
|
||||
# Per-container memory
|
||||
sudo podman stats --no-stream --format '{{.Name}}\t{{.MemUsage}}\t{{.MemPerc}}'
|
||||
podman stats --no-stream --format '{{.Name}}\t{{.MemUsage}}\t{{.MemPerc}}'
|
||||
|
||||
# Check for OOM kills
|
||||
dmesg --level=err,crit | grep -i oom
|
||||
@@ -214,10 +214,10 @@ df -h /
|
||||
sudo du -h --max-depth=2 /var/lib/archipelago/ | sort -rh | head -20
|
||||
|
||||
# Container image sizes
|
||||
sudo podman images --format '{{.Repository}}:{{.Tag}}\t{{.Size}}'
|
||||
podman images --format '{{.Repository}}:{{.Tag}}\t{{.Size}}'
|
||||
|
||||
# Clean unused images
|
||||
sudo podman image prune -a
|
||||
podman image prune -a
|
||||
|
||||
# Clean old journal logs
|
||||
sudo journalctl --vacuum-size=500M
|
||||
@@ -295,7 +295,7 @@ sudo tail -f /var/log/nginx/access.log
|
||||
sudo tail -f /var/log/nginx/error.log
|
||||
|
||||
# Container logs
|
||||
sudo podman logs {container-name} --tail 50 -f
|
||||
podman logs {container-name} --tail 50 -f
|
||||
```
|
||||
|
||||
## 15. Network Diagnostics
|
||||
@@ -347,7 +347,7 @@ If a node responds to ping but SSH/HTTP are down:
|
||||
```bash
|
||||
df -h /
|
||||
sudo journalctl --vacuum-size=200M
|
||||
sudo podman image prune -a
|
||||
podman image prune -a
|
||||
```
|
||||
|
||||
## 17. Run Cross-Node Tests
|
||||
|
||||
Reference in New Issue
Block a user