Open mxchist opened 2 weeks ago
I think a few additional points should be mentioned:
/var/pgadmin/venv
. It was configured when the current Ubuntu release was 3.11.6. After the Ubuntu upgrade, the default interpreter became a 3.12, but /usr/pgadmin4/venv/bin/python
was still 3.11.6. The wsgi_mod of Apache also used python 3.12 ./usr/pgadmin
I think a few additional points should be mentioned:
- Before the installation, there is an old python interpreter in
/var/pgadmin/venv
. It was configured when the current Ubuntu release was 3.11.6. After the Ubuntu upgrade, the default interpreter became a 3.12, but/usr/pgadmin4/venv/bin/python
was still 3.11.6. The wsgi_mod of Apache also used python 3.12 . python venv is shipped along with installer. If the python version is changed, then it breaks pgadmin. Hence python version with which pgadmin is installed it marked as dependency and it will be kept.- The reinstallation aimed to fix this gap between the interpreters versions. You can try uninstall and then install again.
- When reinstalled, it is not only reinstall the pgAdmin version; it also upgraded the python version in
/usr/pgadmin
If the python version is changed, then it breaks pgadmin. Hence python version with which pgadmin is installed it marked as dependency and it will be kept
As I see, the default Python interpreter is 3.12 in Ubuntu Noble. If I correctly understood, it is not possible to upgrade Ubuntu from 23 to 24 without upgrading the default CPython version
For me, it helped to install sudo apt install python3.8
for web version on 24.04, but desktop version of pgadmin still doesn't open after upgrade.
pgAdmin requires a manual running of a setup.py script after reinstallation to a higher version The default pgAdmin4 web configuration is based on a standard Ubuntu Apache2 reverse proxy. After pgAdmin4 was reinstalled, and after the apache2 service was restarted, the Apache server requires to manually run
/usr/pgadmin4/web/setup.py
script.To Reproduce
Steps to reproduce the behavior:
https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/mantic pgadmin4 main
tohttps://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/noble pgadmin4 main
in a/etc/apt/sources.list.d/
sudo apt update
sudo apt reinstall pgadmin4 pgadmin4-server pgadmin4-web
sudo service apache2 restart
pgAdmin packages before re-installation:
pgAdmin packages after re-installation:
Expected behavior The web address
http://127.0.0.1/pgadmin4
opens a pgAdmin web interfaceError message
In my browser:
In Apache logs:
Desktop (please complete the following information):
ftp.postgresql.org/pub/pgadmin/
repositoryAdditional context However, the pgAdmin as it stands, works well on
127.0.0.1:5050
if you follow two steps:/usr/pgadmin4/
source venv
python web/pgAdmin.py