Página 1 de 1

Wapt1.5 y Debian 9

Publicado: 22 de enero de 2018 - 17:29
por el bazo
Buen día

Después
/usr/bin/python /opt/wapt/waptserver/scripts/postconf.py

resultado

Código: Seleccionar todo

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
¿Alguien tiene alguna idea?

GRACIAS

Re: Wapt1.5 y Debian 9

Publicado: 22 de enero de 2018 - 22:07
por sfonteneau
¿Tiene instalada una versión específica de la versión 1.5? ¿Se está

iniciando el servicio PostgreSQL? (

service postgresql start)

(service postgresql status)

Re: Wapt1.5 y Debian 9

Publicado: 23 de enero de 2018 - 13:36
por el bazo
Hola,

gracias por sus comentarios

. Para la instalación, seguí el procedimiento

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

luego

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

cuando escribo
service postgresql status

sur la console

la consola de postgresql.service - PostgreSQL RDBMS
Cargado: cargado (/lib/systemd/system/postgresql.service; habilitado; proveedor presente
Activo: activo (salió) desde el lunes 22 de enero de 2018 17:01:25 CET; hace 20 h
PID principal: 2560 (código=salió, estado=0/ÉXITO)
Tareas: 0 (límite: 4915)
CGroup: /system.slice/postgresql.service

22 de enero 17:01:25 swapt.yyy.xxx.fr systemd[1]: Iniciando PostgreSQL RDBMS...
22 de enero 17:01:25 swapt.yyy.xxx.fr systemd[1]: PostgreSQL RDBMS iniciado.


Al ejecutar el script de configuración, sigo recibiendo el mismo error.

¿Tienes alguna idea?

Gracias por tu ayuda.

Re: Wapt1.5 y Debian 9

Publicado: 6 de febrero de 2018 - 19:51
por dcardon
spleen escribió: 22 de enero de 2018 - 17:29

Código: Seleccionar todo

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 y Debian 9

Publicado: 16 de febrero de 2018 - 20:08
por sfonteneau
¿Puedes lanzar un:

Código: Seleccionar todo

localectl status
¿y darnos el resultado?