Re: pgadmin 4 wont start on redhat 8 - Mailing list pgadmin-hackers

From Aditya Toshniwal
Subject Re: pgadmin 4 wont start on redhat 8
Date
Msg-id CAM9w-_n3SF+Wwcke1QZMKcy7Gm+zeTTZ-c=Augu2Qtb83B8ANg@mail.gmail.com
Whole thread Raw
In response to pgadmin 4 wont start on redhat 8  (Andre Steyn <tuddy001@gmail.com>)
List pgadmin-hackers
[Kindly use reply all]

Hi Andre,

Seems like your initial setup is not run for pgAdmin. Try below:
1) Stop pgAdmin service if running.
2) On a terminal, run - /usr/bin/python3 /usr/lib/python3.6/site-packages/pgadmin4-web/setup.py
3) You should be prompted for email and password.
4) After it is complete, start the pgAdmin service.

On Thu, Jan 23, 2020 at 5:07 PM Andre Steyn <tuddy001@gmail.com> wrote:
Ok, thank you, here is a cut and paste

[root@localhost system]# more pgadmin4.service
# It's not recommended to modify this file in-place, because it will be
# overwritten during package upgrades.  If you want to customize, the
# best way is to create a file "/etc/systemd/system/pgadmin4.service",
# containing
# .include /usr/lib/systemd/system/pgadmin4.service
# ...make your changes here...
# For more info about custom unit files, see
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F

[Unit]
Description=pgAdmin4 Server Mode
Documentation=https://www.pgadmin.org/docs/
After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/python3 /usr/lib/python3.6/site-packages/pgadmin4-web/pgAdmin4.py
ExecReload=/bin/kill -HUP $MAINPID
KillMode=mixed
KillSignal=SIGINT

[Install]
WantedBy=multi-user.target


On Thu, Jan 23, 2020 at 12:32 PM Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote:

On Thu, Jan 23, 2020 at 3:17 PM Andre Steyn <tuddy001@gmail.com> wrote:
pgadmin4.service is the service running on redhat 8, not a file


On Thu, Jan 23, 2020 at 11:26 AM Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote:
Hi Andre,

Could you please share the contents of the pgadmin4.service file ?

On Thu, Jan 23, 2020 at 2:49 PM Andre Steyn <tuddy001@gmail.com> wrote:
no does not give me that option, when i start the service, i get that error i mailed

On Thu, Jan 23, 2020 at 11:04 AM Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote:
Hi Andre,

Are you typing "Email address:" value or pasting ? Try typing manually.

On Thu, Jan 23, 2020 at 1:09 PM Andre Steyn <tuddy001@gmail.com> wrote:
I get these messages each time i startup, i have removed and re-installed, but get the same issues

[root@localhost ~]# systemctl status pgadmin4.service
● pgadmin4.service - pgAdmin4 Server Mode
   Loaded: loaded (/usr/lib/systemd/system/pgadmin4.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2020-01-23 08:25:36 SAST; 1h 14min ago
     Docs: https://www.pgadmin.org/docs/
 Main PID: 5237 (code=exited, status=1/FAILURE)

Jan 23 08:25:36 localhost.localdomain python3[5237]:     self.get_context().run_migrations(**kw)
Jan 23 08:25:36 localhost.localdomain python3[5237]:   File "/usr/lib/python3.6/site-packages/alembic/runtime/migration.py", line 362, in run_migrations
Jan 23 08:25:36 localhost.localdomain python3[5237]:     step.migration_fn(**kw)
Jan 23 08:25:36 localhost.localdomain python3[5237]:   File "/usr/lib/python3.6/site-packages/pgadmin4-web/migrations/versions/fdc58d9bd449_.py", line 43, in upgrade
Jan 23 08:25:36 localhost.localdomain python3[5237]:     email, password = user_info()
Jan 23 08:25:36 localhost.localdomain python3[5237]:   File "/usr/lib/python3.6/site-packages/pgadmin4-web/pgadmin/setup/user_info.py", line 55, in user_info
Jan 23 08:25:36 localhost.localdomain python3[5237]:     email = input("Email address: ")
Jan 23 08:25:36 localhost.localdomain python3[5237]: EOFError: EOF when reading a line
Jan 23 08:25:36 localhost.localdomain systemd[1]: pgadmin4.service: Main process exited, code=exited, status=1/FAILURE
Jan 23 08:25:36 localhost.localdomain systemd[1]: pgadmin4.service: Failed with result 'exit-code'.

--

 can you please assist?


Regards


Andre Steyn | NTR | Email:  mailto:tuddy001@gmail.com

 

cid:image001.jpg@01C922E1.F264D450

 

Intellectual growth should commence at birth and cease only at death” - Albert Einstein

 



--
Thanks and Regards,
Aditya Toshniwal
pgAdmin Hacker | Sr. Software Engineer | EnterpriseDB India | Pune
"Don't Complain about Heat, Plant a TREE"


--

 

Regards


Andre Steyn | NTR | Email:  mailto:tuddy001@gmail.com

 

cid:image001.jpg@01C922E1.F264D450

 

Intellectual growth should commence at birth and cease only at death” - Albert Einstein

 



--
Thanks and Regards,
Aditya Toshniwal
pgAdmin Hacker | Sr. Software Engineer | EnterpriseDB India | Pune
"Don't Complain about Heat, Plant a TREE"


--

 

Regards


Andre Steyn | NTR | Email:  mailto:tuddy001@gmail.com

 

cid:image001.jpg@01C922E1.F264D450

 

Intellectual growth should commence at birth and cease only at death” - Albert Einstein

 



--
Thanks and Regards,
Aditya Toshniwal
pgAdmin Hacker | Sr. Software Engineer | EnterpriseDB India | Pune
"Don't Complain about Heat, Plant a TREE"


--

 

Regards


Andre Steyn | NTR | Email:  mailto:tuddy001@gmail.com

 

cid:image001.jpg@01C922E1.F264D450

 

Intellectual growth should commence at birth and cease only at death” - Albert Einstein

 



--
Thanks and Regards,
Aditya Toshniwal
pgAdmin Hacker | Sr. Software Engineer | EnterpriseDB India | Pune
"Don't Complain about Heat, Plant a TREE"

pgadmin-hackers by date:

Previous
From: Aditya Toshniwal
Date:
Subject: Re: [pgAdmin][RM2554] declarative partitioning - support for multi-level partition
Next
From: Akshay Joshi
Date:
Subject: pgAdmin 4 commit: Added support for a multi-level partitioned table. Fi