-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Netbox services fail to start #56
Comments
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid. |
Have you redacted those blank ENV's? Or did you not put any details in there when deploying? Also, you need to install docker from dockers documentation, not from the Ubuntu repo as that I believe installs the snap version. |
As part of the debug process I removed those optional parameters as they were not required. I've removed the SNAP version of docker and installed the engine as per the docs.docker.com web site, using this command: It still fails with the error message |
|
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions. |
I had to revert back to version 3.7.4 for Netbox to work. All of the 4.x.x versions gave me the error listed above. Here is my ---
#
# Note: If you get a COLLATION error on the databse: https://www.postgresql.org/docs/current/sql-altercollation.html
#
networks:
netbox-va:
external: false
ipam:
config:
- subnet: 192.168.175.0/24
services:
netbox:
image: "lscr.io/linuxserver/netbox:3.7.4"
container_name: netbox-va
hostname: ntbx
environment:
PUID: "1000"
PGID: "1000"
TZ: "America/New_York"
# Super User username is: admin
SUPERUSER_EMAIL: "[email protected]"
SUPERUSER_PASSWORD: "keep-it-secret"
CORS_ORIGIN_ALLOW_ALL: true
ALLOWED_HOST: "*"
DB_NAME: "netboxdb"
DB_USER: "chucknorris"
DB_PASSWORD: "gandalf"
DB_HOST: "postgresdb"
DB_PORT: "5432"
REDIS_HOST: "redisnbdb"
REDIS_PORT: "6379"
REDIS_DATABASE: 0
REDIS_INSECURE_SKIP_TLS_VERIFY: false
REDIS_PASSWORD: "redisdbpw0"
REDIS_SSL: false
GRAPHQL_ENABLED: true
REDIS_CACHE_DATABASE: 1
REDIS_CACHE_HOST: "redisnbcache"
REDIS_CACHE_INSECURE_SKIP_TLS_VERIFY: false
REDIS_CACHE_PASSWORD: "rediscachepw0"
REDIS_CACHE_SSL: false
METRICS_ENABLED: false
SECRET_KEY: "sBYBiK2*P3FqXd32ifJh%$^KKWNknkkFvPbGqsEuvu9&35sAo99RLv6TYVfPCeHb"
# SKIP_SUPERUSER: false
SKIP_SUPERUSER: true
WEBHOOKS_ENABLED: true
volumes:
- ./netbox-config/:/config/
networks:
- netbox-va
ports:
- 127.0.0.1:8000:8000
depends_on:
- redisnbdb
- redisnbcache
- postgresdb
restart: unless-stopped
redisnbdb:
image: "redis:7-bullseye"
container_name: redisdb-netbox
hostname: ntbxrddb
environment:
REDIS_PASSWORD: "redisdbpw0"
command:
- /bin/sh
- -c
# - Double dollars, so that the variable is not expanded by Docker Compose
# - Surround by quotes, so that the shell does not split the password
# - The ${variable:?message} syntax causes shell to exit with a non-zero
# code and print a message, when the variable is not set or empty
- redis-server --requirepass "$${REDIS_PASSWORD:?REDIS_PASSWORD variable is not set}"
volumes:
- redis:/data/
networks:
- netbox-va
expose:
- "6379"
restart: unless-stopped
redisnbcache:
image: "redis:7-bullseye"
container_name: rediscache-netbox
hostname: ntbxrdcache
environment:
REDIS_PASSWORD: "rediscachepw0"
command:
- /bin/sh
- -c
# - Double dollars, so that the variable is not expanded by Docker Compose
# - Surround by quotes, so that the shell does not split the password
# - The ${variable:?message} syntax causes shell to exit with a non-zero
# code and print a message, when the variable is not set or empty
- redis-server --requirepass "$${REDIS_PASSWORD:?REDIS_PASSWORD variable is not set}"
volumes:
- rediscache:/data/
networks:
- netbox-va
expose:
- "6379"
restart: unless-stopped
postgresdb:
image: "postgres:15-bookworm"
container_name: pgdb-netbox
hostname: ntbxrdpgdb
user: "1000:1000"
environment:
POSTGRES_USER: "chucknorris"
POSTGRES_PASSWORD: "gandalf"
POSTGRES_DB: "netboxdb"
volumes:
- ./postgres-data/:/var/lib/postgresql/data/
networks:
- netbox-va
expose:
- "5432"
restart: unless-stopped
volumes:
redis:
driver: local
rediscache:
driver: local
|
Please open a new issue and fill out the template as yours is likely different than above. It seems op did not have a pg db at all. |
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue is locked due to inactivity |
Is there an existing issue for this?
Current Behavior
Trying to start Netbox and the service fails - see logs below
user@server:~/Docker/netbox$ sudo docker inspect -f '{{ index .Config.Labels "build_version" }}' netbox
Linuxserver.io version:- v4.0.2-ls199 Build-date:- 2024-05-14T16:18:39+00:00
Expected Behavior
Service should start
Steps To Reproduce
sudo docker compose up -d
Environment
CPU architecture
x86-64
Docker creation
Container logs
The text was updated successfully, but these errors were encountered: