Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 774348 - dev-db/pgadmin4-4.30 does not start after dev-python/flask-security-4.0.0 upgrade
Summary: dev-db/pgadmin4-4.30 does not start after dev-python/flask-security-4.0.0 upg...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PgSQL Bugs
URL: https://redmine.postgresql.org/issues...
Whiteboard:
Keywords: PMASKED
Depends on: 794460
Blocks: 722500
  Show dependency tree
 
Reported: 2021-03-05 19:31 UTC by Chris Mayo
Modified: 2022-06-19 09:06 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Mayo 2021-03-05 19:31:40 UTC
Back-end program starts, but presents an error dialog:

"An error occurred initialising the pgAdmin 4 server:
Failed to launch the application server, server thread exiting."

instead of starting a browser.

DEPENDENCIES has:
Flask-Security-Too                                               3.4.4

Flask-Security-Too 4.0.0 is API breaking:
https://flask-security-too.readthedocs.io/en/stable/changelog.html#version-4-0-0

dev-python/flask-security-3.4.5 was removed in:
5eb38e39bb83 ("dev-python/flask-security: Remove old", 2021-03-02)
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-05 19:48:35 UTC
Okay, so temporarily, let's restore the old flask-security.
Comment 2 Larry the Git Cow gentoo-dev 2021-03-05 19:50:55 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1358219ccb2ffc10e71de5f9bd366dcefa01764

commit d1358219ccb2ffc10e71de5f9bd366dcefa01764
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-05 19:50:32 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-05 19:50:32 +0000

    dev-db/pgadmin4: depend on older flask-security
    
    Bug: https://bugs.gentoo.org/774348
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-db/pgadmin4/{pgadmin4-4.29.ebuild => pgadmin4-4.29-r1.ebuild} | 2 +-
 dev-db/pgadmin4/{pgadmin4-4.30.ebuild => pgadmin4-4.30-r1.ebuild} | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=216788b8971288109b491caa843293e2d85ea19b

commit 216788b8971288109b491caa843293e2d85ea19b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-05 19:49:06 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-05 19:49:06 +0000

    dev-python/flask-security: Revert "Remove old"
    
    This reverts commit 5eb38e39bb838415ba4cd33ce58fbfc7ba44a1dc.
    Some applications need <4.0, it seems.
    
    Bug: https://bugs.gentoo.org/774348
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/flask-security/Manifest                 |  2 +
 .../files/flask-security-3.4.3-optional-deps.patch | 63 ++++++++++++++++++
 .../flask-security/flask-security-3.4.4.ebuild     | 74 ++++++++++++++++++++++
 .../flask-security/flask-security-3.4.5.ebuild     | 74 ++++++++++++++++++++++
 4 files changed, 213 insertions(+)
Comment 3 Goran Muzevic 2021-07-27 14:14:03 UTC
I still have problems starting pgAdmin4. I tried dev-db/pgadmin4-4.29-r1 and dev-db/pgadmin4-4.30-r1. Both start the server but I get an error:

Failed to launch the application server, server thread exiting.

Traceback (most recent call last):
  File "/usr/share/pgadmin4/web/pgAdmin4.py", line 94, in <module>
    app = create_app()
  File "/usr/share/pgadmin4/web/pgadmin/__init__.py", line 630, in create_app
    app.register_blueprint(module)
  File "/usr/lib/python3.9/site-packages/flask/scaffold.py", line 56, in wrapper_func
    return f(self, *args, **kwargs)
  File "/usr/lib/python3.9/site-packages/flask/app.py", line 1030, in register_blueprint
    blueprint.register(self, options)
  File "/usr/share/pgadmin4/web/pgadmin/utils/__init__.py", line 66, in register
    super(PgAdminModule, self).register(app, options, first_registration)
TypeError: register() takes 3 positional arguments but 4 were given

I have  dev-python/flask-2.0.1 and dev-python/flask-security-3.4.5.
Comment 4 jannis 2021-08-18 19:38:24 UTC
I had the same error as #c3 and fixed solved it by downgrading dev-python/flask to 1.1.4
Comment 5 Larry the Git Cow gentoo-dev 2021-08-18 19:49:17 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ad4f65b9ef246089028b4f6a9e928d8998f8ed1

commit 6ad4f65b9ef246089028b4f6a9e928d8998f8ed1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-08-18 19:48:59 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-08-18 19:48:59 +0000

    dev-db/pgadmin4: depend on older Flask
    
    Bug: https://bugs.gentoo.org/774348
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-db/pgadmin4/{pgadmin4-4.29-r1.ebuild => pgadmin4-4.29-r2.ebuild} | 2 +-
 dev-db/pgadmin4/{pgadmin4-4.30-r1.ebuild => pgadmin4-4.30-r2.ebuild} | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 6 Jack 2021-08-22 15:31:11 UTC
This seems also related to https://redmine.postgresql.org/issues/6088
Comment 7 Larry the Git Cow gentoo-dev 2022-06-19 09:06:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b0fa104cddcbb9dd7bca9351c2de58703939fcf

commit 8b0fa104cddcbb9dd7bca9351c2de58703939fcf
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2022-06-19 08:51:37 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2022-06-19 08:51:53 +0000

    dev-db/pgadmin4: treeclean
    
    Closes: https://bugs.gentoo.org/794460
    Closes: https://bugs.gentoo.org/836282
    Closes: https://bugs.gentoo.org/774348
    Closes: https://bugs.gentoo.org/766378
    Closes: https://bugs.gentoo.org/817350
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 dev-db/pgadmin4/Manifest                |   2 -
 dev-db/pgadmin4/files/pgadmin4.desktop  |  11 ---
 dev-db/pgadmin4/metadata.xml            |   8 --
 dev-db/pgadmin4/pgadmin4-4.29-r3.ebuild | 130 -------------------------------
 dev-db/pgadmin4/pgadmin4-4.30-r3.ebuild | 132 --------------------------------
 profiles/package.mask                   |   6 --
 6 files changed, 289 deletions(-)