Page 1 sur 1

Wapt1.5 & debian 9

Publié : 22 janv. 2018 - 17:29
par spleen
Bonjour

Apres
/usr/bin/python /opt/wapt/waptserver/scripts/postconf.py

resultat

Code : Tout sélectionner

making a backup copy of the configuration file
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 523, in <module>
    main()
  File "/opt/wapt/waptserver/scripts/postconf.py", line 337, in main
    ensure_postgresql_db()
  File "/opt/wapt/waptserver/scripts/postconf.py", line 177, 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 65, in run
    return subprocess.check_output(*args, shell=True, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 219, 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
Quelqu'un a une idée

Merci

Re: Wapt1.5 & debian 9

Publié : 22 janv. 2018 - 22:07
par sfonteneau
Avez vous une version précise de la version 1.5 que vous avez installé ?

Le service postgresql démarre ?

service postgresql start

service postgresql status

Re: Wapt1.5 & debian 9

Publié : 23 janv. 2018 - 13:36
par spleen
Bonjour,

Merci pour votre retour

Pour l'installation, j'ai suivi la procédure

apt-get update && apt-get upgrade
apt-get install apt-transport-https lsb-release
wget -O - https://wapt.tranquil.it/debian/tiswapt-pub.gpg | apt-key add -
echo "deb https://wapt.tranquil.it/debian/wapt-1.5/ $(lsb_release -c -s) main" > /etc/apt/sources.list.d/wapt.list

puis

apt-get update
apt-get install tis-waptserver tis-waptrepo tis-waptsetup

quand je tape
service postgresql status

sur la console

postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor prese
Active: active (exited) since Mon 2018-01-22 17:01:25 CET; 20h ago
Main PID: 2560 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 4915)
CGroup: /system.slice/postgresql.service

Jan 22 17:01:25 swapt.yyy.xxx.fr systemd[1]: Starting PostgreSQL RDBMS...
Jan 22 17:01:25 swapt.yyy.xxx.fr systemd[1]: Started PostgreSQL RDBMS.


Quand je lance le script de config, toujours la même erreur

Avez-vous une idée

Merci pour votre aide

Re: Wapt1.5 & debian 9

Publié : 06 févr. 2018 - 19:51
par dcardon
spleen a écrit : 22 janv. 2018 - 17:29

Code : Tout sélectionner

making a backup copy of the configuration file
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):
[/quote]

Est ce que la socket /var/run/postgresql/.s.PGSQL.5432 existe bien?
Est ce que vous avez du selinux/apparmor activé
Qu'est ce que vous obtenez quand vous lancer 
[code]
sudo -u wapt ls -l /var/run/postgresql/.s.PGSQL.5432 
Denis

Re: Wapt1.5 & debian 9

Publié : 16 févr. 2018 - 20:08
par sfonteneau
Pouvez-vous lancer un:

Code : Tout sélectionner

localectl status
et nous donner le résultat ?