Seite 1 von 1

Wapt 1.5 & Debian 9

Veröffentlicht: 22. Januar 2018 – 17:29 Uhr
durch Milz
Guten Morgen

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

Ergebnis

Code: Alle auswählen

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
Hat irgendjemand eine Idee?

DANKE

Betreff: Wapt 1.5 & Debian 9

Veröffentlicht: 22. Januar 2018 - 22:07 Uhr
von Sfonteneau
Ist eine bestimmte Version von PostgreSQL 1.5 installiert?

Läuft der PostgreSQL-Dienst? (

service postgresql start)

(service postgresql status)

Betreff: Wapt 1.5 & Debian 9

Veröffentlicht: 23. Januar 2018 – 13:36 Uhr
durch Milz
Hallo,

vielen Dank für Ihr Feedback

. Für die Installation bin ich folgendem Verfahren gefolgt:

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

then

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

Wenn ich
service postgresql status

sur la console

postgresql.service- Konsole eingebe, erhalte ich folgende Ausgabe: 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]: PostgreSQL RDBMS wird gestartet...
22. Jan. 17:01:25 swapt.yyy.xxx.fr systemd[1]: PostgreSQL RDBMS wurde gestartet.


Beim Ausführen des Konfigurationsskripts erhalte ich weiterhin denselben Fehler.

Haben Sie eine Idee, woran das liegen könnte?

Vielen Dank für Ihre Hilfe.

Betreff: Wapt 1.5 & Debian 9

Veröffentlicht: 6. Februar 2018 - 19:51 Uhr
von dcardon
spleen schrieb: 22. Jan. 2018 - 17:29 Uhr

Code: Alle auswählen

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

Betreff: Wapt 1.5 & Debian 9

Veröffentlicht: 16. Februar 2018 - 20:08 Uhr
von Sfonteneau
Können Sie Folgendes starten:

Code: Alle auswählen

localectl status
Und teilen Sie uns das Ergebnis mit?