You are not logged in.

#26 2022-05-11 02:23:21

matrs
Member
Registered: 2013-05-14
Posts: 13

Re: pgAdmin 4: Unable to start program, fresh install

I personally use conda environments for almost everything (R, python and others), included plenty of compiled software (c/c++, etc), but for databases isn't the best choice, and in this case, pip is well supported.

Last edited by matrs (2022-05-11 02:23:57)

Offline

#27 2022-06-03 00:25:30

cengique
Member
Registered: 2018-01-28
Posts: 2

Re: pgAdmin 4: Unable to start program, fresh install

Taz-Mania wrote:

$ sudo mkdir /var/lib/pgadmin
$ sudo mkdir /var/log/pgadmin
$ sudo chown $USER /var/lib/pgadmin
$ sudo chown $USER /var/log/pgadmin
$ python3 -m venv pgadmin4
$ source pgadmin4/bin/activate
(pgadmin4) $ pip install pgadmin4
...
(pgadmin4) $ pgadmin4
NOTE: Configuring authentication for SERVER mode.

Enter the email address and password to use for the initial pgAdmin user account:

Email address: user@domain.com
Password:
Retype password:
Starting pgAdmin 4. Please navigate to http://127.0.0.1:5050 in your browser.
* Serving Flask app "pgadmin" (lazy loading)
* Environment: production
   WARNING: Do not use the development server in a production environment.
   Use a production WSGI server instead.
* Debug mode: off

I like this solution as it's safer to run it under a regular user. It worked on Manjaro.

Offline

#28 2023-01-20 08:17:11

heigre
Member
Registered: 2023-01-20
Posts: 2

Re: pgAdmin 4: Unable to start program, fresh install

giddie wrote:

For what it's worth, I'm switching to `docker-compose` for pgAdmin, since it's pretty easy to add to my existing work configuration:

https://www.pgadmin.org/docs/pgadmin4/l … yment.html

Compose code in original post

Ended up going the same route, thanks!

Offline

Board footer

Powered by FluxBB