Incompatible DB version #1539
Unanswered
Ji-Shao
asked this question in
Getting Help
Replies: 1 comment
-
|
You have a PostgreSQL volume with a database from an old version. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Current Behavior
Following the following steps:
git clone -b release https://github.com/netbox-community/netbox-docker.git
cd netbox-docker
tee docker-compose.override.yml <<EOF
services:
netbox:
ports:
- 8000:8080
EOF
docker compose pull
docker compose up
but found the following error:
<--snip-->
redis-cache-1 | 1:M 15 Oct 2025 06:10:23.069 * Ready to accept connections tcp
netbox-1 | django.db.utils.OperationalError: [Errno -3] Temporary failure in name resolution
netbox-1 | [ Use DB_WAIT_DEBUG=1 in netbox.env to print full traceback for errors here ]
netbox-1 | ⏳ Waiting on DB... (24s / 30s)
Troubleshooting:
docker logs -f c89066466d9f
PostgreSQL Database directory appears to contain a database; Skipping initialization
2025-10-15 06:27:54.449 UTC [1] FATAL: database files are incompatible with server
2025-10-15 06:27:54.449 UTC [1] DETAIL: The data directory was initialized by PostgreSQL version 16, which is not compatible with this version 17.6.
Expected Behavior
Modify "docker-compose.yml"
from : (not working)
postgres
postgres:
image: docker.io/postgres:17-alpine
to : (working)
postgres
postgres:
image: docker.io/postgres:16-alpine
Docker Compose Version
docker compose version Docker Compose version v2.40.0
Docker Version
The git Revision
git rev-parse HEAD ae5f7d2
The git Status
Startup Command
docker compose up
NetBox Logs
Content of docker-compose.override.yml
Beta Was this translation helpful? Give feedback.
All reactions