Bonjour,
Je viens de rencontrer une erreur sur une installation fraiche de Debian lors de la post-installation dont le retour erreur est le suivant :
Avant de reprendre l'installation de Debian au début, y a t'il
une solution moins radicale ?
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): │ Do you want to launch post │
File "/opt/wapt/waptserver/scripts/postconf.py", line 621, in <module>ool ? │
main() │ │
File "/opt/wapt/waptserver/scripts/postconf.py", line 421, 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 188, 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 > < No > │
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