Mageia Bugzilla – Attachment 13319 Details for
Bug 29066
Cannot start pgadmin4; missing dependency for python3-simplejson; missing /var/lib/pgadmin?
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
konsole output while trying to apply updates, and get pgadmin4 running.
29066 (text/plain), 10.29 KB, created by
Pierre Fortin
on 2022-07-02 08:14:40 CEST
(
hide
)
Description:
konsole output while trying to apply updates, and get pgadmin4 running.
Filename:
MIME Type:
Creator:
Pierre Fortin
Created:
2022-07-02 08:14:40 CEST
Size:
10.29 KB
patch
obsolete
>$ urpmi python3-py-bcrypt > > >installing python3-py-bcrypt-0.4-20.mga8.x86_64.rpm from /var/cache/urpmi/rpms >Preparing... ############################################################################################################################################################################################# > 1/1: python3-py-bcrypt ############################################################################################################################################################################################# > >$ urpmi python3-psycopg2 >Package python3-psycopg2-2.8.6-1.mga8.x86_64 is already installed > >$ urpmi urpmi python3-flask-gravatar >Package urpmi-8.125-1.mga8.noarch is already installed > > >installing python3-flask-gravatar-0.5.0-4.mga8.noarch.rpm from /var/cache/urpmi/rpms >Preparing... ############################################################################################################################################################################################# > 1/1: python3-flask-gravatar > ############################################################################################################################################################################################# > >$ urpmi python3-flask-security >To satisfy dependencies, the following packages are going to be installed: > Package Version Release Arch >(medium "Core Release") > python3-bcrypt 3.1.7 4.mga8 x86_64 > python3-flask-security 3.0.0 1.mga8 noarch >1.1MB of additional disk space will be used. >310KB of packages will be retrieved. >Proceed with the installation of the 2 packages? (Y/n) > > > http://mirrors.mageia.org/api/mageia.8.x86_64.list: media/core/release/python3-bcrypt-3.1.7-4.mga8.x86_64.rpm > http://mirrors.mageia.org/api/mageia.8.x86_64.list: media/core/release/python3-flask-security-3.0.0-1.mga8.noarch.rpm >installing python3-bcrypt-3.1.7-4.mga8.x86_64.rpm python3-flask-security-3.0.0-1.mga8.noarch.rpm from /var/cache/urpmi/rpms >Preparing... ############################################################################################################################################################################################# >Installation failed: file /usr/lib64/python3.8/site-packages/bcrypt/__init__.py from install of python3-bcrypt-3.1.7-4.mga8.x86_64 conflicts with file from package python3-py-bcrypt-0.4-20.mga8.x86_64 > file /usr/lib64/python3.8/site-packages/bcrypt/__pycache__/__init__.cpython-38.opt-1.pyc from install of python3-bcrypt-3.1.7-4.mga8.x86_64 conflicts with file from package python3-py-bcrypt-0.4-20.mga8.x86_64 > file /usr/lib64/python3.8/site-packages/bcrypt/__pycache__/__init__.cpython-38.pyc from install of python3-bcrypt-3.1.7-4.mga8.x86_64 conflicts with file from package python3-py-bcrypt-0.4-20.mga8.x86_64 > >$ urpmi python3-sshtunnel >To satisfy dependencies, the following packages are going to be installed: > Package Version Release Arch >(medium "Core Release") > python3-bcrypt 3.1.7 4.mga8 x86_64 > python3-paramiko 2.7.2 1.mga8 noarch > python3-sshtunnel 0.1.5 1.mga8 noarch >1.5MB of additional disk space will be used. >362KB of packages will be retrieved. >Proceed with the installation of the 3 packages? (Y/n) y > > > http://mirrors.mageia.org/api/mageia.8.x86_64.list: media/core/release/python3-sshtunnel-0.1.5-1.mga8.noarch.rpm > http://mirrors.mageia.org/api/mageia.8.x86_64.list: media/core/release/python3-paramiko-2.7.2-1.mga8.noarch.rpm >installing python3-bcrypt-3.1.7-4.mga8.x86_64.rpm python3-paramiko-2.7.2-1.mga8.noarch.rpm python3-sshtunnel-0.1.5-1.mga8.noarch.rpm from /var/cache/urpmi/rpms >Preparing... ############################################################################################################################################################################################# >Installation failed: file /usr/lib64/python3.8/site-packages/bcrypt/__init__.py from install of python3-bcrypt-3.1.7-4.mga8.x86_64 conflicts with file from package python3-py-bcrypt-0.4-20.mga8.x86_64 > file /usr/lib64/python3.8/site-packages/bcrypt/__pycache__/__init__.cpython-38.opt-1.pyc from install of python3-bcrypt-3.1.7-4.mga8.x86_64 conflicts with file from package python3-py-bcrypt-0.4-20.mga8.x86_64 > file /usr/lib64/python3.8/site-packages/bcrypt/__pycache__/__init__.cpython-38.pyc from install of python3-bcrypt-3.1.7-4.mga8.x86_64 conflicts with file from package python3-py-bcrypt-0.4-20.mga8.x86_64 > >$ urpmi python3-paramiko >Marking python3-paramiko as manually installed, it won't be auto-orphaned >writing /var/lib/rpm/installed-through-deps.list >To satisfy dependencies, the following packages are going to be installed: > Package Version Release Arch >(medium "Core Release") > python3-bcrypt 3.1.7 4.mga8 x86_64 > python3-paramiko 2.7.2 1.mga8 noarch >1.3MB of additional disk space will be used. >317KB of packages will be retrieved. >Proceed with the installation of the 2 packages? (Y/n) > > >installing python3-paramiko-2.7.2-1.mga8.noarch.rpm python3-bcrypt-3.1.7-4.mga8.x86_64.rpm from /var/cache/urpmi/rpms >Preparing... ############################################################################################################################################################################################# >Installation failed: file /usr/lib64/python3.8/site-packages/bcrypt/__init__.py from install of python3-bcrypt-3.1.7-4.mga8.x86_64 conflicts with file from package python3-py-bcrypt-0.4-20.mga8.x86_64 > file /usr/lib64/python3.8/site-packages/bcrypt/__pycache__/__init__.cpython-38.opt-1.pyc from install of python3-bcrypt-3.1.7-4.mga8.x86_64 conflicts with file from package python3-py-bcrypt-0.4-20.mga8.x86_64 > file /usr/lib64/python3.8/site-packages/bcrypt/__pycache__/__init__.cpython-38.pyc from install of python3-bcrypt-3.1.7-4.mga8.x86_64 conflicts with file from package python3-py-bcrypt-0.4-20.mga8.x86_64 > >$ urpmi python3-sqlparse > > >installing python3-sqlparse-0.3.1-1.mga8.noarch.rpm from /var/cache/urpmi/rpms >Preparing... ############################################################################################################################################################################################# > 1/1: python3-sqlparse ############################################################################################################################################################################################# > > > >$ systemctl status pgadmin4 >â pgadmin4.service - pgAdmin4 > Loaded: loaded (/usr/lib/systemd/system/pgadmin4.service; disabled; vendor preset: disabled) > Active: failed (Result: exit-code) since Sat 2022-07-02 01:02:25 EDT; 27min ago > Process: 3232620 ExecStart=/usr/bin/python3 /usr/lib/python3.8/site-packages/pgadmin4-web/pgAdmin4.py (code=exited, status=1/FAILURE) > Main PID: 3232620 (code=exited, status=1/FAILURE) > CPU: 544ms > >Jul 02 01:02:25 prf.pfortin.com python3[3232620]: Traceback (most recent call last): >Jul 02 01:02:25 prf.pfortin.com python3[3232620]: File "/usr/lib/python3.8/site-packages/pgadmin4-web/pgAdmin4.py", line 85, in <module> >Jul 02 01:02:25 prf.pfortin.com python3[3232620]: exec(open(file_quote(setup_py), 'r').read()) >Jul 02 01:02:25 prf.pfortin.com python3[3232620]: File "<string>", line 409, in <module> >Jul 02 01:02:25 prf.pfortin.com python3[3232620]: File "<string>", line 341, in setup_db >Jul 02 01:02:25 prf.pfortin.com python3[3232620]: File "/usr/lib/python3.8/site-packages/pgadmin4-web/pgadmin/setup/data_directory.py", line 42, in create_app_data_directory >Jul 02 01:02:25 prf.pfortin.com python3[3232620]: os.chmod(config.SESSION_DB_PATH, 0o700) >Jul 02 01:02:25 prf.pfortin.com python3[3232620]: PermissionError: [Errno 1] Operation not permitted: '/var/lib/pgadmin/sessions' >Jul 02 01:02:25 prf.pfortin.com systemd[1]: pgadmin4.service: Main process exited, code=exited, status=1/FAILURE >Jul 02 01:02:25 prf.pfortin.com systemd[1]: pgadmin4.service: Failed with result 'exit-code'. > > > ># chmod -R 700 /var/lib/pgadmin > >This gets me past above error; but now, back to package issues... > >$ systemctl status pgadmin4 >â pgadmin4.service - pgAdmin4 > Loaded: loaded (/usr/lib/systemd/system/pgadmin4.service; disabled; vendor preset: disabled) > Active: failed (Result: exit-code) since Sat 2022-07-02 01:54:03 EDT; 2s ago > Process: 3276544 ExecStart=/usr/bin/python3 /usr/lib/python3.8/site-packages/pgadmin4-web/pgAdmin4.py (code=exited, status=1/FAILURE) > Main PID: 3276544 (code=exited, status=1/FAILURE) > CPU: 169ms > >Jul 02 01:54:03 prf.pfortin.com python3[3276544]: Traceback (most recent call last): >Jul 02 01:54:03 prf.pfortin.com python3[3276544]: File "/usr/lib/python3.8/site-packages/pgadmin4-web/pgAdmin4.py", line 34, in <module> >Jul 02 01:54:03 prf.pfortin.com python3[3276544]: import config >Jul 02 01:54:03 prf.pfortin.com python3[3276544]: File "/usr/lib/python3.8/site-packages/pgadmin4-web/config.py", line 26, in <module> >Jul 02 01:54:03 prf.pfortin.com python3[3276544]: from pgadmin.utils import env, IS_WIN, fs_short_path >Jul 02 01:54:03 prf.pfortin.com python3[3276544]: File "/usr/lib/python3.8/site-packages/pgadmin4-web/pgadmin/__init__.py", line 25, in <module> >Jul 02 01:54:03 prf.pfortin.com python3[3276544]: from flask_security import Security, SQLAlchemyUserDatastore, current_user >Jul 02 01:54:03 prf.pfortin.com python3[3276544]: ModuleNotFoundError: No module named 'flask_security' >Jul 02 01:54:03 prf.pfortin.com systemd[1]: pgadmin4.service: Main process exited, code=exited, status=1/FAILURE >Jul 02 01:54:03 prf.pfortin.com systemd[1]: pgadmin4.service: Failed with result 'exit-code'.
$ urpmi python3-py-bcrypt installing python3-py-bcrypt-0.4-20.mga8.x86_64.rpm from /var/cache/urpmi/rpms Preparing... ############################################################################################################################################################################################# 1/1: python3-py-bcrypt ############################################################################################################################################################################################# $ urpmi python3-psycopg2 Package python3-psycopg2-2.8.6-1.mga8.x86_64 is already installed $ urpmi urpmi python3-flask-gravatar Package urpmi-8.125-1.mga8.noarch is already installed installing python3-flask-gravatar-0.5.0-4.mga8.noarch.rpm from /var/cache/urpmi/rpms Preparing... ############################################################################################################################################################################################# 1/1: python3-flask-gravatar ############################################################################################################################################################################################# $ urpmi python3-flask-security To satisfy dependencies, the following packages are going to be installed: Package Version Release Arch (medium "Core Release") python3-bcrypt 3.1.7 4.mga8 x86_64 python3-flask-security 3.0.0 1.mga8 noarch 1.1MB of additional disk space will be used. 310KB of packages will be retrieved. Proceed with the installation of the 2 packages? (Y/n) http://mirrors.mageia.org/api/mageia.8.x86_64.list: media/core/release/python3-bcrypt-3.1.7-4.mga8.x86_64.rpm http://mirrors.mageia.org/api/mageia.8.x86_64.list: media/core/release/python3-flask-security-3.0.0-1.mga8.noarch.rpm installing python3-bcrypt-3.1.7-4.mga8.x86_64.rpm python3-flask-security-3.0.0-1.mga8.noarch.rpm from /var/cache/urpmi/rpms Preparing... ############################################################################################################################################################################################# Installation failed: file /usr/lib64/python3.8/site-packages/bcrypt/__init__.py from install of python3-bcrypt-3.1.7-4.mga8.x86_64 conflicts with file from package python3-py-bcrypt-0.4-20.mga8.x86_64 file /usr/lib64/python3.8/site-packages/bcrypt/__pycache__/__init__.cpython-38.opt-1.pyc from install of python3-bcrypt-3.1.7-4.mga8.x86_64 conflicts with file from package python3-py-bcrypt-0.4-20.mga8.x86_64 file /usr/lib64/python3.8/site-packages/bcrypt/__pycache__/__init__.cpython-38.pyc from install of python3-bcrypt-3.1.7-4.mga8.x86_64 conflicts with file from package python3-py-bcrypt-0.4-20.mga8.x86_64 $ urpmi python3-sshtunnel To satisfy dependencies, the following packages are going to be installed: Package Version Release Arch (medium "Core Release") python3-bcrypt 3.1.7 4.mga8 x86_64 python3-paramiko 2.7.2 1.mga8 noarch python3-sshtunnel 0.1.5 1.mga8 noarch 1.5MB of additional disk space will be used. 362KB of packages will be retrieved. Proceed with the installation of the 3 packages? (Y/n) y http://mirrors.mageia.org/api/mageia.8.x86_64.list: media/core/release/python3-sshtunnel-0.1.5-1.mga8.noarch.rpm http://mirrors.mageia.org/api/mageia.8.x86_64.list: media/core/release/python3-paramiko-2.7.2-1.mga8.noarch.rpm installing python3-bcrypt-3.1.7-4.mga8.x86_64.rpm python3-paramiko-2.7.2-1.mga8.noarch.rpm python3-sshtunnel-0.1.5-1.mga8.noarch.rpm from /var/cache/urpmi/rpms Preparing... ############################################################################################################################################################################################# Installation failed: file /usr/lib64/python3.8/site-packages/bcrypt/__init__.py from install of python3-bcrypt-3.1.7-4.mga8.x86_64 conflicts with file from package python3-py-bcrypt-0.4-20.mga8.x86_64 file /usr/lib64/python3.8/site-packages/bcrypt/__pycache__/__init__.cpython-38.opt-1.pyc from install of python3-bcrypt-3.1.7-4.mga8.x86_64 conflicts with file from package python3-py-bcrypt-0.4-20.mga8.x86_64 file /usr/lib64/python3.8/site-packages/bcrypt/__pycache__/__init__.cpython-38.pyc from install of python3-bcrypt-3.1.7-4.mga8.x86_64 conflicts with file from package python3-py-bcrypt-0.4-20.mga8.x86_64 $ urpmi python3-paramiko Marking python3-paramiko as manually installed, it won't be auto-orphaned writing /var/lib/rpm/installed-through-deps.list To satisfy dependencies, the following packages are going to be installed: Package Version Release Arch (medium "Core Release") python3-bcrypt 3.1.7 4.mga8 x86_64 python3-paramiko 2.7.2 1.mga8 noarch 1.3MB of additional disk space will be used. 317KB of packages will be retrieved. Proceed with the installation of the 2 packages? (Y/n) installing python3-paramiko-2.7.2-1.mga8.noarch.rpm python3-bcrypt-3.1.7-4.mga8.x86_64.rpm from /var/cache/urpmi/rpms Preparing... ############################################################################################################################################################################################# Installation failed: file /usr/lib64/python3.8/site-packages/bcrypt/__init__.py from install of python3-bcrypt-3.1.7-4.mga8.x86_64 conflicts with file from package python3-py-bcrypt-0.4-20.mga8.x86_64 file /usr/lib64/python3.8/site-packages/bcrypt/__pycache__/__init__.cpython-38.opt-1.pyc from install of python3-bcrypt-3.1.7-4.mga8.x86_64 conflicts with file from package python3-py-bcrypt-0.4-20.mga8.x86_64 file /usr/lib64/python3.8/site-packages/bcrypt/__pycache__/__init__.cpython-38.pyc from install of python3-bcrypt-3.1.7-4.mga8.x86_64 conflicts with file from package python3-py-bcrypt-0.4-20.mga8.x86_64 $ urpmi python3-sqlparse installing python3-sqlparse-0.3.1-1.mga8.noarch.rpm from /var/cache/urpmi/rpms Preparing... ############################################################################################################################################################################################# 1/1: python3-sqlparse ############################################################################################################################################################################################# $ systemctl status pgadmin4 â pgadmin4.service - pgAdmin4 Loaded: loaded (/usr/lib/systemd/system/pgadmin4.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Sat 2022-07-02 01:02:25 EDT; 27min ago Process: 3232620 ExecStart=/usr/bin/python3 /usr/lib/python3.8/site-packages/pgadmin4-web/pgAdmin4.py (code=exited, status=1/FAILURE) Main PID: 3232620 (code=exited, status=1/FAILURE) CPU: 544ms Jul 02 01:02:25 prf.pfortin.com python3[3232620]: Traceback (most recent call last): Jul 02 01:02:25 prf.pfortin.com python3[3232620]: File "/usr/lib/python3.8/site-packages/pgadmin4-web/pgAdmin4.py", line 85, in <module> Jul 02 01:02:25 prf.pfortin.com python3[3232620]: exec(open(file_quote(setup_py), 'r').read()) Jul 02 01:02:25 prf.pfortin.com python3[3232620]: File "<string>", line 409, in <module> Jul 02 01:02:25 prf.pfortin.com python3[3232620]: File "<string>", line 341, in setup_db Jul 02 01:02:25 prf.pfortin.com python3[3232620]: File "/usr/lib/python3.8/site-packages/pgadmin4-web/pgadmin/setup/data_directory.py", line 42, in create_app_data_directory Jul 02 01:02:25 prf.pfortin.com python3[3232620]: os.chmod(config.SESSION_DB_PATH, 0o700) Jul 02 01:02:25 prf.pfortin.com python3[3232620]: PermissionError: [Errno 1] Operation not permitted: '/var/lib/pgadmin/sessions' Jul 02 01:02:25 prf.pfortin.com systemd[1]: pgadmin4.service: Main process exited, code=exited, status=1/FAILURE Jul 02 01:02:25 prf.pfortin.com systemd[1]: pgadmin4.service: Failed with result 'exit-code'. # chmod -R 700 /var/lib/pgadmin This gets me past above error; but now, back to package issues... $ systemctl status pgadmin4 â pgadmin4.service - pgAdmin4 Loaded: loaded (/usr/lib/systemd/system/pgadmin4.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Sat 2022-07-02 01:54:03 EDT; 2s ago Process: 3276544 ExecStart=/usr/bin/python3 /usr/lib/python3.8/site-packages/pgadmin4-web/pgAdmin4.py (code=exited, status=1/FAILURE) Main PID: 3276544 (code=exited, status=1/FAILURE) CPU: 169ms Jul 02 01:54:03 prf.pfortin.com python3[3276544]: Traceback (most recent call last): Jul 02 01:54:03 prf.pfortin.com python3[3276544]: File "/usr/lib/python3.8/site-packages/pgadmin4-web/pgAdmin4.py", line 34, in <module> Jul 02 01:54:03 prf.pfortin.com python3[3276544]: import config Jul 02 01:54:03 prf.pfortin.com python3[3276544]: File "/usr/lib/python3.8/site-packages/pgadmin4-web/config.py", line 26, in <module> Jul 02 01:54:03 prf.pfortin.com python3[3276544]: from pgadmin.utils import env, IS_WIN, fs_short_path Jul 02 01:54:03 prf.pfortin.com python3[3276544]: File "/usr/lib/python3.8/site-packages/pgadmin4-web/pgadmin/__init__.py", line 25, in <module> Jul 02 01:54:03 prf.pfortin.com python3[3276544]: from flask_security import Security, SQLAlchemyUserDatastore, current_user Jul 02 01:54:03 prf.pfortin.com python3[3276544]: ModuleNotFoundError: No module named 'flask_security' Jul 02 01:54:03 prf.pfortin.com systemd[1]: pgadmin4.service: Main process exited, code=exited, status=1/FAILURE Jul 02 01:54:03 prf.pfortin.com systemd[1]: pgadmin4.service: Failed with result 'exit-code'.
View Attachment As Raw
Actions:
View
Attachments on
bug 29066
: 13319 |
13320