Skip to content

Unable to start pgadmin4 docker container with synology DSM 7.2.2-72806 Update 9 #10276

Description

@phate89

Hello.

I'm having issues using pgadmin4 latest with docker (latest image).
The startup takes a lot of time (at least 30 minutes, not sure if it will ever finish) and I found myself with the container running but no ports up to use pgadmin.

Here's the command I used to run the docker:

docker run -it \
> --name pgadmin-dev \
> -e PGADMIN_DEFAULT_EMAIL="admin@admin.com" \
> -e PGADMIN_DEFAULT_PASSWORD="root" \
> -e PGADMIN_LISTEN_ADDRESS=0.0.0.0 \
> -e PGADMIN_LISTEN_PORT=80 \
> -p 5050:80 \
> --network=postgresql_network \
> dpage/pgadmin

I tried without "PGADMIN_LISTEN_ADDRESS" and "PGADMIN_LISTEN_PORT" with no luck.

I run it and it always takes at least 15 minutes to get to "pgAdmin 4 - Application Initialisation" log entry:

Image

This is the docker log after 30 minutes I ran the startup:

Image

The only error is related to #9846 but I'm not sure if it's the issue since I already saw that error in logs that continue booting up.

When I interrupt the creation with ctrl+c it always traces at this point (not sure if it's useful or not):

^CTraceback (most recent call last):
  File "/pgadmin4/run_pgadmin.py", line 4, in <module>
    from pgAdmin4 import app
  File "/pgadmin4/pgAdmin4.py", line 154, in <module>
    app.run_before_app_start()
    ~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/pgadmin4/pgadmin/__init__.py", line 175, in run_before_app_start
    callback()
    ~~~~~~~~^^
  File "/pgadmin4/pgadmin/utils/__init__.py", line 73, in create_module_preference
    self.register_preferences()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/pgadmin4/pgadmin/tools/erd/__init__.py", line 288, in register_preferences
    self.preference.register(
    ~~~~~~~~~~~~~~~~~~~~~~~~^
        'keyboard_shortcuts',
        ^^^^^^^^^^^^^^^^^^^^^
    ...<13 lines>...
        fields=shortcut_fields
        ^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/pgadmin4/pgadmin/utils/preferences.py", line 463, in register
    (cat['preferences'])[name] = res = _Preference(
                                       ~~~~~~~~~~~^
        cat['id'], name, label, _type, default, help_str=help_str,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
        control_props=control_props, hidden=hidden
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/pgadmin4/pgadmin/utils/preferences.py", line 91, in __init__
    db.session.commit()
    ~~~~~~~~~~~~~~~~~^^
  File "/venv/lib/python3.14/site-packages/sqlalchemy/orm/scoping.py", line 596, in commit
    return self._proxied.commit()
           ~~~~~~~~~~~~~~~~~~~~^^
  File "/venv/lib/python3.14/site-packages/sqlalchemy/orm/session.py", line 2035, in commit
    trans.commit(_to_root=True)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "<string>", line 2, in commit
  File "/venv/lib/python3.14/site-packages/sqlalchemy/orm/state_changes.py", line 137, in _go
    ret_value = fn(self, *arg, **kw)
  File "/venv/lib/python3.14/site-packages/sqlalchemy/orm/session.py", line 1323, in commit
    trans.commit()
    ~~~~~~~~~~~~^^
  File "/venv/lib/python3.14/site-packages/sqlalchemy/engine/base.py", line 2642, in commit
    self._do_commit()
    ~~~~~~~~~~~~~~~^^
  File "/venv/lib/python3.14/site-packages/sqlalchemy/engine/base.py", line 2747, in _do_commit
    self._connection_commit_impl()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/venv/lib/python3.14/site-packages/sqlalchemy/engine/base.py", line 2718, in _connection_commit_impl
    self.connection._commit_impl()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/venv/lib/python3.14/site-packages/sqlalchemy/engine/base.py", line 1149, in _commit_impl
    self._handle_dbapi_exception(e, None, None, None, None)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/venv/lib/python3.14/site-packages/sqlalchemy/engine/base.py", line 2368, in _handle_dbapi_exception
    raise exc_info[1].with_traceback(exc_info[2])
  File "/venv/lib/python3.14/site-packages/sqlalchemy/engine/base.py", line 1147, in _commit_impl
    self.engine.dialect.do_commit(self.connection)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/venv/lib/python3.14/site-packages/sqlalchemy/engine/default.py", line 715, in do_commit
    dbapi_connection.commit()
    ~~~~~~~~~~~~~~~~~~~~~~~^^

I saw an issue (#4183) with a sinology so I tried with version 4.8 and it actually started port 80 in listen with quicker times (3 minutes):
Image

But I still can't get a reply to that port (it hangs indefinitely):

Image Image

I'm probably missing something huge but I never had issues with other dockers..

Thank you

Edit 1:

After 18 minutes with 4.8 version I got a working page:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions