je cherche à faire un essai de WAPT version Community avant de faire un essai de la version entreprise.
Je suis la documentationi d'installation du logiciel sur Debian mais je rencontre un problème d'installation lors du passage du script d'installation : /opt/wapt/waptserver/scripts/postconf.sh
j'ai regardé le forum avant d'écrire ce sujet sans avoir vraiment vu une réponse à tester.
Auriez-vous s'il vous plait une idée du problème de fonctionnement avec psql ? problème de pare-feu ? fichier de conf psql à modifier manuellement?
![Troublé :?](./images/smilies/icon_e_confused.gif)
merci d'avance !
![Clin d’œil ;)](./images/smilies/icon_e_wink.gif)
j'ai l'erreur ci-dessous en compte root :
Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable postgresql
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Traceback (most recent call last):
File "/opt/wapt/waptserver/scripts/postconf.py", line 702, in <module>
main()
File "/opt/wapt/waptserver/scripts/postconf.py", line 423, in main
ensure_postgresql_db(db_name=server_config['db_name'],db_owner=server_config['db_name'],db_password=server_config['db_password'])
File "/opt/wapt/waptserver/scripts/postconf.py", line 191, in ensure_postgresql_db
val = run(""" sudo -u postgres psql template1 -c " select usename from pg_catalog.pg_user where usename='wapt';" """, cwd='/opt/wapt')
File "/opt/wapt/waptserver/scripts/postconf.py", line 66, in run
return subprocess.check_output(*args, shell=True, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 223, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command ' sudo -u postgres psql template1 -c " select usename from pg_catalog.pg_user where usename='wapt';" ' returned non-zero exit status 2
debug :
root@WAPTC:~# psql
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
-------------
service postgresql status
● postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)
Active: active (exited) since Mon 2020-03-02 14:13:19 CET; 13min ago
Main PID: 486 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 2346)
Memory: 0B
CGroup: /system.slice/postgresql.service
Mar 02 14:13:19 WAPTC.****.*** systemd[1]: Starting PostgreSQL RDBMS...
Mar 02 14:13:19 WAPTC.****.*** systemd[1]: Started PostgreSQL RDBMS.
----------
root@WAPTC:~# localectl status
System Locale: LANG=en_US.UTF-8
VC Keymap: n/a
X11 Layout: fr
X11 Model: pc105
X11 Variant: latin9