Re: Install pgadmin4 on Fedora 30
От | Michael Monerau |
---|---|
Тема | Re: Install pgadmin4 on Fedora 30 |
Дата | |
Msg-id | CAOpvgNcgThfWnth+DyH5H7h4cTMhYCh-3HdJTgJgF=N5x3_BWA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Install pgadmin4 on Fedora 30 (Devrim Gündüz <devrim@gunduz.org>) |
Ответы |
Re: Install pgadmin4 on Fedora 30
(Devrim Gündüz <devrim@gunduz.org>)
|
Список | pgadmin-support |
[Sorry, replied to the wrong thread, putting the stuff back on this thread for clarity]
Hi,
Thanks very much for F30 support!
I went through the install process you describe on your website (https://people.planetpostgresql.org/devrim/index.php?/archives/96-Installing-pgAdmin4-3.X-on-RHEL-CentOS-7-and-Fedora-27.html) but couldn't get it to work.
1. Small typo in the install script pgadmin4-web-setup.sh: PGADMIN4INSTDIR is not known (miss a `$`). I replaced with the full path of the install on my system (/usr/lib/python3.7/site-packages/pgadmin4-web/) but I guess there is a cleaner way to be more general in the install.
2. The webserver fails to serve the website, and I get that from httpd log:
###
[Wed May 22 11:31:03.317345 2019] [wsgi:error] [pid 26817:tid 139957253187328] [remote 127.0.0.1:46516] mod_wsgi (pid=26817): Failed to exec Python script file '/usr/lib/python3.7/site-packages/pgadmin4-web/pgAdmin4.wsgi'.
[Wed May 22 11:31:03.317376 2019] [wsgi:error] [pid 26817:tid 139957253187328] [remote 127.0.0.1:46516] mod_wsgi (pid=26817): Exception occurred processing WSGI script '/usr/lib/python3.7/site-packages/pgadmin4-web/pgAdmin4.wsgi'.
[Wed May 22 11:31:03.317666 2019] [wsgi:error] [pid 26817:tid 139957253187328] [remote 127.0.0.1:46516] Traceback (most recent call last):
[Wed May 22 11:31:03.317684 2019] [wsgi:error] [pid 26817:tid 139957253187328] [remote 127.0.0.1:46516] File "/usr/lib/python3.7/site-packages/pgadmin4-web/pgAdmin4.wsgi", line 36, in <module>
[Wed May 22 11:31:03.317688 2019] [wsgi:error] [pid 26817:tid 139957253187328] [remote 127.0.0.1:46516] from pgAdmin4 import app as application
[Wed May 22 11:31:03.317691 2019] [wsgi:error] [pid 26817:tid 139957253187328] [remote 127.0.0.1:46516] File "/usr/lib/python3.7/site-packages/pgadmin4-web/pgAdmin4.py", line 97, in <module>
[Wed May 22 11:31:03.317708 2019] [wsgi:error] [pid 26817:tid 139957253187328] [remote 127.0.0.1:46516] app = create_app()
[Wed May 22 11:31:03.317712 2019] [wsgi:error] [pid 26817:tid 139957253187328] [remote 127.0.0.1:46516] File "/usr/lib/python3.7/site-packages/pgadmin4-web/pgadmin/__init__.py", line 241, in create_app
[Wed May 22 11:31:03.317714 2019] [wsgi:error] [pid 26817:tid 139957253187328] [remote 127.0.0.1:46516] create_app_data_directory(config)
[Wed May 22 11:31:03.317717 2019] [wsgi:error] [pid 26817:tid 139957253187328] [remote 127.0.0.1:46516] File "/usr/lib/python3.7/site-packages/pgadmin4-web/pgadmin/setup/data_directory.py", line 24, in create_app_data_directory
[Wed May 22 11:31:03.317719 2019] [wsgi:error] [pid 26817:tid 139957253187328] [remote 127.0.0.1:46516] os.chmod(os.path.dirname(config.SQLITE_PATH), 0o700)
[Wed May 22 11:31:03.317727 2019] [wsgi:error] [pid 26817:tid 139957253187328] [remote 127.0.0.1:46516] PermissionError: [Errno 13] Permission denied: '/var/lib/pgadmin'
[Wed May 22 11:31:03.317376 2019] [wsgi:error] [pid 26817:tid 139957253187328] [remote 127.0.0.1:46516] mod_wsgi (pid=26817): Exception occurred processing WSGI script '/usr/lib/python3.7/site-packages/pgadmin4-web/pgAdmin4.wsgi'.
[Wed May 22 11:31:03.317666 2019] [wsgi:error] [pid 26817:tid 139957253187328] [remote 127.0.0.1:46516] Traceback (most recent call last):
[Wed May 22 11:31:03.317684 2019] [wsgi:error] [pid 26817:tid 139957253187328] [remote 127.0.0.1:46516] File "/usr/lib/python3.7/site-packages/pgadmin4-web/pgAdmin4.wsgi", line 36, in <module>
[Wed May 22 11:31:03.317688 2019] [wsgi:error] [pid 26817:tid 139957253187328] [remote 127.0.0.1:46516] from pgAdmin4 import app as application
[Wed May 22 11:31:03.317691 2019] [wsgi:error] [pid 26817:tid 139957253187328] [remote 127.0.0.1:46516] File "/usr/lib/python3.7/site-packages/pgadmin4-web/pgAdmin4.py", line 97, in <module>
[Wed May 22 11:31:03.317708 2019] [wsgi:error] [pid 26817:tid 139957253187328] [remote 127.0.0.1:46516] app = create_app()
[Wed May 22 11:31:03.317712 2019] [wsgi:error] [pid 26817:tid 139957253187328] [remote 127.0.0.1:46516] File "/usr/lib/python3.7/site-packages/pgadmin4-web/pgadmin/__init__.py", line 241, in create_app
[Wed May 22 11:31:03.317714 2019] [wsgi:error] [pid 26817:tid 139957253187328] [remote 127.0.0.1:46516] create_app_data_directory(config)
[Wed May 22 11:31:03.317717 2019] [wsgi:error] [pid 26817:tid 139957253187328] [remote 127.0.0.1:46516] File "/usr/lib/python3.7/site-packages/pgadmin4-web/pgadmin/setup/data_directory.py", line 24, in create_app_data_directory
[Wed May 22 11:31:03.317719 2019] [wsgi:error] [pid 26817:tid 139957253187328] [remote 127.0.0.1:46516] os.chmod(os.path.dirname(config.SQLITE_PATH), 0o700)
[Wed May 22 11:31:03.317727 2019] [wsgi:error] [pid 26817:tid 139957253187328] [remote 127.0.0.1:46516] PermissionError: [Errno 13] Permission denied: '/var/lib/pgadmin'
###
I checked /var/lib/pgadmin permissions and seems right to me (the sh script sets the chown on `apache`):
drwx------. 4 apache apache 4096 May 22 11:30 pgadmin
Is there something to do with the apache user to solve this permission issue?
Thanks again,
Michael
Le mer. 22 mai 2019 à 07:00, Devrim Gündüz <devrim@gunduz.org> a écrit :
On Mon, 2019-05-20 at 10:52 +0200, Michael Monerau wrote:
>
> I can't see a pgadmin4 package in the Fedora 30 official RPM (
> https://www.pgadmin.org/download/pgadmin-4-rpm/).
>
> What is the best way to install pgadmin4 on Fedora 30, or is there a
> roadmap where pgadmin4 gets included in the RPM?
Pushed the packages the other day. Sorry for the delay.
Regards,
--
Devrim Gündüz
Open Source Solution Architect, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR
В списке pgadmin-support по дате отправления: