Skip to content

PgAdmin - The container does not start #7

Description

@codingopedia

Docker Desktop
Expose daemon on tcp: // .... - enabled
WSL integration - Ubuntu 20.04

PyCharm with Docker, docker Compose

Logs from the container

`[2021-02-12 09:15:16 +0000] [1] [INFO] Starting gunicorn 19.9.0

[2021-02-12 09:15:16 +0000] [1] [INFO] Listening at: http://[::]:80 (1)

[2021-02-12 09:15:16 +0000] [1] [INFO] Using worker: threads

/usr/local/lib/python3.9/os.py:1023: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used

return io.open(fd, *args, **kwargs)

[2021-02-12 09:15:16 +0000] [89] [INFO] Booting worker with pid: 89

WARNING: Failed to set ACL on the directory containing the configuration database:

[Errno 1] Operation not permitted: '/var/lib/pgadmin'

HINT : You may need to manually set the permissions on

/var/lib/pgadmin to allow pgadmin to write to it.

[2021-02-12 09:15:17 +0000] [89] [ERROR] Exception in worker process

Traceback (most recent call last):

File "/usr/local/lib/python3.9/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker

worker.init_process()

File "/usr/local/lib/python3.9/site-packages/gunicorn/workers/gthread.py", line 104, in init_process

super(ThreadWorker, self).init_process()

File "/usr/local/lib/python3.9/site-packages/gunicorn/workers/base.py", line 129, in init_process

self.load_wsgi()

File "/usr/local/lib/python3.9/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi

self.wsgi = self.app.wsgi()

File "/usr/local/lib/python3.9/site-packages/gunicorn/app/base.py", line 67, in wsgi

self.callable = self.load()

File "/usr/local/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 52, in load

return self.load_wsgiapp()

File "/usr/local/lib/python3.9/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp

return util.import_app(self.app_uri)

File "/usr/local/lib/python3.9/site-packages/gunicorn/util.py", line 350, in import_app

import(module)

File "/pgadmin4/run_pgadmin.py", line 4, in

from pgAdmin4 import app

File "/pgadmin4/pgAdmin4.py", line 94, in

app = create_app()

File "/pgadmin4/pgadmin/init.py", line 256, in create_app

create_app_data_directory(config)

File "/pgadmin4/pgadmin/setup/data_directory.py", line 90, in create_app_data_directory

os.chmod(config.SESSION_DB_PATH, 0o700)

PermissionError: [Errno 1] Operation not permitted: '/var/lib/pgadmin/sessions'

[2021-02-12 09:15:17 +0000] [89] [INFO] Worker exiting (pid: 89)

[2021-02-12 09:15:17 +0000] [1] [INFO] Shutting down: Master

[2021-02-12 09:15:17 +0000] [1] [INFO] Reason: Worker failed to boot.`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions