Skip to content

pgAdmin4 9.16 cannot start on Ubuntu 24.04 #10110

Description

@x27lu-baml

Describe the bug
I upgraded pgAdmin4 from 9.15 to 9.16, and it gets stuck on the loading screen, until a few minutes later when I'm presented with an error message (full error message below). I had to downgrade it back to 9.15 for it to work again.

To Reproduce
On Ubuntu 24.04, upgrade pgAdmin to 9.16 via apt-get. Then open pgAdmin desktop

Expected behavior
After upgrade, the application should open normally

Error message
Error message shown by pgAdmin:

Total spawn time to start the pgAdmin4 server: 0.005 Sec
Traceback (most recent call last):
  File "/usr/pgadmin4/web/pgAdmin4.py", line 93, in <module>
    app = create_app()
          ^^^^^^^^^^^^
  File "/usr/pgadmin4/web/pgadmin/__init__.py", line 789, in create_app

    app.register_blueprint(module)
  File "/usr/pgadmin4/venv/lib/python3.12/site-packages/flask/sansio/scaffold.py", line 47, in wrapper_func
    return f(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/pgadmin4/venv/lib/python3.12/site-packages/flask/sansio/app.py", line 595, in register_blueprint
    blueprint.register(self, options)
  File "/usr/pgadmin4/web/pgadmin/misc/__init__.py", line 199, in register
    from .cloud import blueprint as module
  File "/usr/pgadmin4/web/pgadmin/misc/cloud/__init__.py", line 30, in <module>
    from pgadmin.misc.cloud.google import clear_google_session, deploy_on_google
  File "/usr/pgadmin4/web/pgadmin/misc/cloud/google/__init__.py", line 28, in <module>
    from googleapiclient import discovery
  File "/usr/pgadmin4/venv/lib/python3.12/site-packages/googleapiclient/discovery.py", line 64, in <module>
    from googleapiclient import _auth, mimeparse
  File "/usr/pgadmin4/venv/lib/python3.12/site-packages/googleapiclient/_auth.py", line 34, in <module>
    import oauth2client.client
  File "/usr/lib/python3/dist-packages/oauth2client/client.py", line 45, in <module>
    from oauth2client import crypt
  File "/usr/lib/python3/dist-packages/oauth2client/crypt.py", line 45, in <module>
    from oauth2client import _openssl_crypt
  File "/usr/lib/python3/dist-packages/oauth2client/_openssl_crypt.py", line 16, in <module>
    from OpenSSL import crypto
  File "/usr/lib/python3/dist-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import SSL, crypto
  File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 20, in <module>
    from OpenSSL.crypto import (
  File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 765, in <module>
    class X509Extension:
  File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 846, in X509Extension
    _lib.GEN_EMAIL: "email",
    ^^^^^^^^^^^^^^
AttributeError: module 'lib' has no attribute 'GEN_EMAIL'

Desktop (please complete the following information):

  • OS: Ubuntu 24.04.4 LTS
  • pgAdmin version: 9.16
  • Mode: Desktop
  • Package type: DEB

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions