ERROR: relation "django_content_type" does not exist at character 106 #1050
Replies: 7 comments
-
The logs look like a normal start. Did you get the |
Beta Was this translation helpful? Give feedback.
-
I got the same error today. Did a "up" again and then it worked. Not sure if there could be a lingering error somewhere making upgrades hard in the future. |
Beta Was this translation helpful? Give feedback.
-
I am getting this same error on 3.5.6 and it appears to only happen on newly created databases: postgres-1 logs`The files belonging to this database system will be owned by user "postgres". The database cluster will be initialized with locale "en_US.utf8". Data page checksums are disabled. fixing permissions on existing directory /var/lib/postgresql/data ... ok Success. You can now start the database server using:
sh: locale: not found waiting for server to start....2023-09-22 17:18:24.664 UTC [37] LOG: starting PostgreSQL 13.12 on x86_64-pc-linux-musl, compiled by gcc (Alpine 12.2.1_git20220924-r10) 12.2.1 20220924, 64-bit /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/* waiting for server to shut down....2023-09-22 17:18:24.907 UTC [37] LOG: received fast shutdown request PostgreSQL init process complete; ready for start up. ` |
Beta Was this translation helpful? Give feedback.
-
Getting the same issue on b47e85a Netbox Logs
PostgreSQL Logs
|
Beta Was this translation helpful? Give feedback.
-
getting the same message. any thoughts on how to solve it? 2023-12-01 00:37:41.423 UTC [59] ERROR: relation "django_content_type" does not exist at character 106 |
Beta Was this translation helpful? Give feedback.
-
Edit: I was able to get it to work. When running creating the superuser command via the Wiki page on "Getting Started" it mentioned there were 100+ migrations remaining. It said you can run the mange.py migrate command to complete these. It took a few tries as it exited when the container was deemed unhealthy. |
Beta Was this translation helpful? Give feedback.
-
I came across same problem, but managed to run netbox. |
Beta Was this translation helpful? Give feedback.
-
Current Behavior
Following the quickstart I:
docker-compose.override.yml
(As shown in the example)docker compose pull
docker compose up
During postgresDB initialization I see a number of errors:
and finally,
dependency failed to start: container netbox-docker-netbox-1 is unhealthy
Expected Behavior
I expect there to not be any errors or unhealthy warnings.
Docker Compose Version
Docker Compose version v2.20.2
Docker Version
The git Revision
22486fe
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