Erreur postgresql à l'installation de Mastodon 2.4.5

Bonjour à tous et toutes

Je viens de tenter une nouvele installation de Mastodon 2.4.5 sur un Yunohost 3.1 fraichement installé et voici l’erreur que je rencontre :

Warning: Warning: apt-key output should not be parsed (stdout is not a terminal)
Warning: Warning: apt-key output should not be parsed (stdout is not a terminal)
Warning: psql: could not connect to server: No such file or directory
Warning: Is the server running locally and accepting
Warning: connections on Unix domain socket “/var/run/postgresql/.s.PGSQL. 5432”?
Warning: !!
Warning: mastodon’s script has encountered an error. Its execution was cancell ed.
Warning: !!
Warning:
Warning: dropdb: could not connect to database template1: could not connect to server: No such file or directory
Warning: Is the server running locally and accepting
Warning: connections on Unix domain socket “/var/run/postgresql/.s.PGSQL.5432”?
Warning: dropuser: could not connect to database postgres: could not connect to server: No such file or directory
Warning: Is the server running locally and accepting
Warning: connections on Unix domain socket “/var/run/postgresql/.s.PGSQL.5432”?
Warning: /var/www/mastodon wasn’t deleted because it doesn’t exist.
Warning: /etc/nginx/conf.d/mondomaine.tld.d/mastodon.conf wasn’t deleted because it doesn’t exist.
Warning: /etc/cron.d/mastodon wasn’t deleted because it doesn’t exist.
Warning: userdel: user ‘mastodon’ does not exist
Warning: mastodon has not been properly removed
Success! The SSOwat configuration has been generated
Error: Installation failed

Apparemment, cela doit venir de postgresql qui ne s’installe pas puisqu’il n’y a encore rien d’installé comme appli sur le serveur. Je rencontre le même souci avec Peertube.

Le serveur est sur une Debian Stretch 9.5

Je ne vois pas où se situe le problème

Merci de votre aide

Hi

Try previous version 3.4.3 if it work, then it can be upgraded.

$ yunohost app install https://github.com/YunoHost-Apps/mastodon_ynh/tree/20fe4996b6fdee3d1ff341ad953f21af0474e109

Re

Le problème reste identique avec la version 2.4.3

Do

$ psql --version

See the version and write in below command(for eg. if version is 9.6.10 then):

$ pg_createcluster 9.6.10 main --start

then

$ /etc/init.d/postgresql start

After this try to install the app again.

Voici les réponses que je reçoit :

psql --version
psql (PostgreSQL) 9.6.10

pg_createcluster 9.6.10 main --start
Error: invalid version ‘9.6.10’

/etc/init.d/postgresql start
[…] Starting postgresql (via systemctl): postgresql.serviceFailed to start postgresql.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and ‘systemctl status postgresql.service’ for details.
failed!

Do

$ pg_createcluster 9.6 main --start

then

$ /etc/init.d/postgresql start

The postgresql should start before you can install any app which uses postgresql. I don’t know why it fails sometimes for some users.