infra:services:netbox
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| infra:services:netbox [2026/05/26 18:22] – Link app-01 host runbook atluxity_idp.hackeriet.no | infra:services:netbox [2026/09/05 15:46] (current) – Document NetBox 502 troubleshooting atluxity_idp.hackeriet.no | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ===== Deployment ===== | ===== Deployment ===== | ||
| - | |||
| * Deployed in Docker | * Deployed in Docker | ||
| - | * Lives on [[infra: | + | * Lives on [[infra: |
| * Is deployed with plugins (custom Docker image setup) | * Is deployed with plugins (custom Docker image setup) | ||
| * [[https:// | * [[https:// | ||
| Line 17: | Line 16: | ||
| docker compose up -d | docker compose up -d | ||
| </ | </ | ||
| + | |||
| + | ===== Troubleshooting ===== | ||
| + | |||
| + | ==== 502 Bad Gateway from ip.hackeriet.no ==== | ||
| + | |||
| + | A 502 from '' | ||
| + | |||
| + | On '' | ||
| + | |||
| + | < | ||
| + | cd / | ||
| + | docker compose ps | ||
| + | docker compose logs --tail=120 netbox postgres redis redis-cache netbox-worker | ||
| + | df -h /storage / | ||
| + | </ | ||
| + | |||
| + | If the containers are confused after a restart, a full compose stop/start has worked better than restarting selected containers: | ||
| + | |||
| + | < | ||
| + | cd / | ||
| + | docker compose down | ||
| + | docker compose up -d | ||
| + | </ | ||
| + | |||
| + | NetBox can take a little while to become healthy after '' | ||
| + | |||
| + | Useful checks: | ||
| + | |||
| + | < | ||
| + | docker compose ps | ||
| + | curl -v http:// | ||
| + | curl -v http:// | ||
| + | sudo tail -n 100 / | ||
| + | </ | ||
| + | |||
| + | Interpretation: | ||
| + | |||
| + | * If '' | ||
| + | * If the local app-01 check works but '' | ||
| + | * If Postgres logs mention '' | ||
/srv/hackeriet-wiki/dokuwiki/data/attic/infra/services/netbox.1779819747.txt.gz · Last modified: by atluxity_idp.hackeriet.no