From: | Dave Page <dpage(at)pgadmin(dot)org> |
---|---|
To: | Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com> |
Cc: | pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org> |
Subject: | Re: [pgAdmin][RM5455] Cleanup pgAdmin.py |
Date: | 2020-05-01 09:16:32 |
Message-ID: | CA+OCxozT_R19o2vo8xe8R290DoL4LSwSFgbe+mEqKb+L5YoFJw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
Hi
On Thu, Apr 30, 2020 at 2:31 PM Aditya Toshniwal <
aditya(dot)toshniwal(at)enterprisedb(dot)com> wrote:
> Hi Hackers,
>
> Attached is the patch to restructure pgAdmin4.py so that the startup code
> can be imported by setup_pip.py.
> Code is also changed to tidy and restructure the code a bit. Changes won't
> affect other runners like runtime, WSGI, etc.
>
> Please review.
>
Looks good structure-wise. Here's an updated patch with a couple of very
minor tweaks.
It seems to work fine from the wheel entry point, and as a top-level
script. However, in testing under Debian 10, having built and installed the
.deb packages:
- Desktop mode just times out during startup with the following error in
the application log:
2020-05-01 09:54:56,839: ERROR flask.app: Error starting the app server:
(<class 'PermissionError'>, PermissionError(13, 'Permission denied'),
<traceback ob
ject at 0x7fd8f982b788>)
- In server mode on the same system (setup using the setup-web.sh), upon
login I'm redirected to / which displays the default Apache index.html.
Manually navigating to /pgadmin4 again does the right thing. Unlike the
desktop error, this one is not resolved if I revert your patch, so I think
we must have broken this elsewhere (which is worrying, as we've just done a
release).
Can you look into these issues ASAP please?
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Attachment | Content-Type | Size |
---|---|---|
RM5455_v2.patch | application/octet-stream | 8.9 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2020-05-01 11:51:45 | Re: Patch to remove Python 2.7 support in the macOS Appbundle |
Previous Message | Akshay Joshi | 2020-05-01 07:50:11 | Re: [pgAdmin][RM5455] Cleanup pgAdmin.py |