pulp/oci_env

Services fail to start due to "connection in use: ('127.0.0.1', 24817)"

ggainey opened this issue · 3 comments

I'm on Fedora-36, and oci-env compose up is hitting the following, forever, trying to bring up services

40 static files symlinked to '/var/lib/pulp/assets'.
[2022-09-12 17:42:33 +0000] [245] [INFO] Starting gunicorn 20.1.0
[2022-09-12 17:42:33 +0000] [245] [ERROR] Connection in use: ('127.0.0.1', 24817)
[2022-09-12 17:42:33 +0000] [245] [ERROR] Retrying in 1 second.
[2022-09-12 17:42:34 +0000] [245] [ERROR] Connection in use: ('127.0.0.1', 24817)
[2022-09-12 17:42:34 +0000] [245] [ERROR] Retrying in 1 second.
[2022-09-12 17:42:35 +0000] [245] [ERROR] Connection in use: ('127.0.0.1', 24817)
[2022-09-12 17:42:35 +0000] [245] [ERROR] Retrying in 1 second.
[2022-09-12 17:42:36 +0000] [245] [ERROR] Connection in use: ('127.0.0.1', 24817)
[2022-09-12 17:42:36 +0000] [245] [ERROR] Retrying in 1 second.
[2022-09-12 17:42:37 +0000] [245] [ERROR] Connection in use: ('127.0.0.1', 24817)
[2022-09-12 17:42:37 +0000] [245] [ERROR] Retrying in 1 second.
[2022-09-12 17:42:38 +0000] [245] [ERROR] Can't connect to ('127.0.0.1', 24817)
Already migrated!
Deleting 'import_export/action_formats.js'
Deleting 'import_export/import.css'
Deleting 'rest_framework/css/bootstrap-theme.min.css'
Deleting 'rest_framework/css/bootstrap-tweaks.css'
Deleting 'rest_framework/css/bootstrap.min.css'

Anyone else seeing this?

Adding some output from oci-env compose up that makes me Suspicious:

40 static files symlinked to '/var/lib/pulp/assets'.
pulp [None]: pulpcore.tasking.entrypoint:INFO: Starting distributed type worker
pulp [None]: pulpcore.tasking.pulpcore_worker:INFO: Worker '197@d8ee8355e748' is back online.
pulp [None]: pulpcore.tasking.pulpcore_worker:INFO: New worker '139@d8ee8355e748' discovered
pulp [None]: pulpcore.tasking.entrypoint:INFO: Starting distributed type worker
pulp [None]: pulpcore.tasking.pulpcore_worker:INFO: New worker '194@d8ee8355e748' discovered
[2022-09-13 18:03:08 +0000] [196] [INFO] Starting gunicorn 20.1.0
[2022-09-13 18:03:08 +0000] [196] [INFO] Listening at: http://127.0.0.1:24817 (196)
[2022-09-13 18:03:08 +0000] [196] [INFO] Using worker: sync
[2022-09-13 18:03:08 +0000] [233] [INFO] Booting worker with pid: 233
[2022-09-13 18:03:08 +0000] [140] [INFO] Starting gunicorn 20.1.0
[2022-09-13 18:03:08 +0000] [140] [ERROR] Connection in use: ('127.0.0.1', 24817)
[2022-09-13 18:03:08 +0000] [140] [ERROR] Retrying in 1 second.

The .compose.env I'm using looks like thi:

# : separated list of profiles to use. Ex: galaxy_ng/ui:ha
COMPOSE_PROFILE=pulp_ansible_base

# : separate list of python dependencies to include from source
DEV_SOURCE_PATH=pulpcore:pulp_file:pulp_rpm

# Program to use for compose. This defaults to podman. Uncomment this to use docker-compose.
# COMPOSE_BINARY=docker

# Set any custom pulp settings by adding environment variables with the PULP_ prefix
# PULP_MY_SETTING....

# Django admin user credentials that gets created during startup
# DJANGO_SUPERUSER_USERNAME=admin
# DJANGO_SUPERUSER_PASSWORD=password

# Port, hostname and protocol used to configure pulp content origin
# API_HOST=localhost
# API_PORT=5001
# API_PROTOCOL=http
NGINX_PORT=5001

My pulpcore/pulp_file/pulp_rpm are all on main.

The only other errors I see during compose-up are

Calling /etc/init/certs
fix-attrs: warning: fix-attrs is deprecated, please fix volume permissions in your container manager instead
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
[oneshot] certs: generating certs
s6-rc: info: service postgres-init successfully started
s6-rc: info: service postgresql: starting
s6-rc: info: service postgresql successfully started
s6-rc: info: service postgres-prepare: starting
cont-init: info: running /etc/cont-init.d/000-a-src-install
/package/admin/s6-overlay-3.1.2.1/etc/s6-rc/scripts/cont-init: line 14: /etc/cont-init.d/000-a-src-install: Permission denied
Calling /etc/init/postgres-prepare
cont-init: info: /etc/cont-init.d/000-a-src-install exited 126
cont-init: info: running /etc/cont-init.d/001-profile-init
/package/admin/s6-overlay-3.1.2.1/etc/s6-rc/scripts/cont-init: line 14: /etc/cont-init.d/001-profile-init: Permission denied
cont-init: info: /etc/cont-init.d/001-profile-init exited 126

I believe this has been fixed with #40