infra:services:netbox
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| infra:services:netbox [2025/03/23 16:24] – [Deployment] kfh | 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 app-01 (`/ | + | * Lives on [[infra: |
| * Is deployed with plugins (custom Docker image setup) | * Is deployed with plugins (custom Docker image setup) | ||
| * [[https:// | * [[https:// | ||
| - | * Exposed through ingress.hackeriet.no | + | * Exposed through |
| * Docker compose -> nginx on app-01 -ssl-> nginx on ingress -ssl-> Internet | * Docker compose -> nginx on app-01 -ssl-> nginx on ingress -ssl-> Internet | ||
| 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.1742747056.txt.gz · Last modified: by kfh