docker compose up fails on "unexpected EOF on client connection" during "./manage.py migrate --no-input"
luboss opened this issue · comments
Ľuboš Katrinec commented
Current Behavior
I followed netbox-docker quickstart up to "docker compose up" which failed with an error:
postgres-1 | 2024-03-07 10:04:05.235 UTC [57] LOG: unexpected EOF on client connection with an open transaction
netbox-1 | /opt/netbox/docker-entrypoint.sh: line 51: 18 Killed ./manage.py migrate --no-input
netbox-1 | Applying dcim.0002_squashed...
netbox-1 exited with code 137
Gracefully stopping... (press Ctrl+C again to force)
dependency failed to start: container netbox-docker-netbox-1 exited (137)
Operating system: Debian Bookworm (tried also Bullseye) as Vagrant image in VirtualBox VM
Expected Behavior
Flawless Netbox start
Docker Compose Version
v2.24.6
Docker Version
Client: Docker Engine - Community
Version: 25.0.3
API version: 1.44
Go version: go1.21.6
Git commit: 4debf41
Built: Tue Feb 6 21:14:25 2024
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 25.0.3
API version: 1.44 (minimum version 1.24)
Go version: go1.21.6
Git commit: f417435
Built: Tue Feb 6 21:14:25 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.28
GitCommit: ae07eda36dd25f8a1b98dfbf587313b99c0190bb
runc:
Version: 1.1.12
GitCommit: v1.1.12-0-g51d5e94
docker-init:
Version: 0.19.0
GitCommit: de40ad0
The git Revision
The git Status
On branch release
Your branch is up to date with 'origin/release'.
Startup Command
docker compose up
NetBox Logs
netbox-1 | ⚙️ Applying database migrations
netbox-1 | 🧬 loaded config '/etc/netbox/config/configuration.py'
netbox-1 | 🧬 loaded config '/etc/netbox/config/extra.py'
netbox-1 | 🧬 loaded config '/etc/netbox/config/logging.py'
netbox-1 | 🧬 loaded config '/etc/netbox/config/plugins.py'
netbox-1 | Operations to perform:
netbox-1 | Apply all migrations: account, admin, auth, circuits, contenttypes, core, dcim, django_rq, extras, ipam, sessions, social_django, taggit, tenancy, users, virtualization, vpn, wireless
netbox-1 | Running migrations:
netbox-1 | Applying contenttypes.0001_initial... OK
netbox-1 | Applying contenttypes.0002_remove_content_type_name... OK
netbox-1 | Applying auth.0001_initial... OK
netbox-1 | Applying auth.0002_alter_permission_name_max_length... OK
netbox-1 | Applying auth.0003_alter_user_email_max_length... OK
netbox-1 | Applying auth.0004_alter_user_username_opts... OK
netbox-1 | Applying auth.0005_alter_user_last_login_null... OK
netbox-1 | Applying auth.0006_require_contenttypes_0002... OK
netbox-1 | Applying auth.0007_alter_validators_add_error_messages... OK
netbox-1 | Applying auth.0008_alter_user_username_max_length... OK
netbox-1 | Applying auth.0009_alter_user_last_name_max_length... OK
netbox-1 | Applying auth.0010_alter_group_name_max_length... OK
netbox-1 | Applying auth.0011_update_proxy_permissions... OK
netbox-1 | Applying auth.0012_alter_user_first_name_max_length... OK
netbox-1 | Applying users.0001_squashed_0011... OK
netbox-1 | Applying extras.0001_squashed... OK
netbox-1 | Applying tenancy.0001_squashed_0012... OK
netbox-1 | Applying tenancy.0002_tenant_ordering... OK
netbox-1 | Applying dcim.0001_squashed... OK
netbox-1 | /opt/netbox/docker-entrypoint.sh: line 51: 18 Killed ./manage.py migrate --no-input
netbox-1 | Applying dcim.0002_squashed...⚙️ Applying database migrations
netbox-1 | 🧬 loaded config '/etc/netbox/config/configuration.py'
netbox-1 | 🧬 loaded config '/etc/netbox/config/extra.py'
netbox-1 | 🧬 loaded config '/etc/netbox/config/logging.py'
netbox-1 | 🧬 loaded config '/etc/netbox/config/plugins.py'
netbox-1 | Operations to perform:
netbox-1 | Apply all migrations: account, admin, auth, circuits, contenttypes, core, dcim, django_rq, extras, ipam, sessions, social_django, taggit, tenancy, users, virtualization, vpn, wireless
netbox-1 | Running migrations:
netbox-1 | /opt/netbox/docker-entrypoint.sh: line 51: 17 Killed ./manage.py migrate --no-input
Content of docker-compose.override.yml
version: '3.4'
services:
netbox:
ports:
- 8000:8080