Impossible de réinstaller Mastodon (Freedombox)

Mon serveur YunoHost

Matériel: FreedomBox - ARM OLIMEX LIME2
Version de YunoHost: 3.7.1.3
J’ai accès à mon serveur : En SSH | Par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non
Si oui, expliquer:

Description du problème

Bonjour,
j’ai desinstallé Mastodon qui fonctionnait parfaitement bien, parceque je pensait qu’il prenait toute la CPU.

Aujourd’hui j’essaye de le reinstaller en ssh ou via la webadmin (je ne sais pas si c’est équivalent) sans succes.

le journal d’erreurs est ici :
https://paste.yunohost.org/raw/oxoduseciw

qui pourrai m’aider à trouver une solution

2020-05-11 20:34:35,223: DEBUG - + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql ''
2020-05-11 20:34:35,828: DEBUG - + ynh_exit_properly
2020-05-11 20:34:35,830: WARNING - psql: could not connect to server: No such file or directory

ça laisse penser qu’il y a un soucis avec postgreql …

Est-ce que tu peux regarder :

systemctl status postgresql
systemctl status postgresql@9.6-main

et si il y en a un marqué comme failed (ou en rouge), faire la même commande mais avec “restart” à la place de “status” ?

Bonsoir
systemctl status postgresql@9.6-main

était failed et la commande : systemctl restart postgresql@9.6-main renvoie :

Failed to restart postgresql@9.6-main.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and ‘systemctl status postgresql@9.6-main.service’ for details.

Hmmm ptete que c’est juste systemctl restart postgresql du coup
(j’suis pas 100% au clair sur la gestion des sous-services avec @9.6-main toussa là)

systemctl status postgresql renvoyait :

postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)
Active: active (exited) since Mon 2020-05-11 05:42:26 UTC; 17h ago
Main PID: 2043 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 4915)
CGroup: /system.slice/postgresql.service

systemctl restart postgresql renvoie :
Failed to restart postgresql.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and ‘systemctl status postgresql.service’ for details.

Est-ce que tu fais bien la commande en root ? (Ou avec sudo sinon ?)

je viens d’y penser et d’essayer , en root,
pour systemctl restart postgresql
–>aucun retour,

pour systemctl restart postgresql@9.6-main
–>message suivant : Job for postgresql@9.6-main.service failed because the control process exited with error code.
See “systemctl status postgresql@9.6-main.service” and “journalctl -xe” for details.

Hmokay, et systemctl status postgresql est toujours pas content ?

Okay … regardons ce que dit journalctl -u postgresql@9.6-main.service -n 40

May 11 22:56:50 zigoto.xyz systemd[1]: Starting PostgreSQL Cluster 9.6-main...
May 11 22:57:22 zigoto.xyz postgresql@9.6-main[30145]: The PostgreSQL server failed to start. Please check the log output.
May 11 22:57:22 zigoto.xyz systemd[1]: postgresql@9.6-main.service: Control process exited, code=exited status=1
May 11 22:57:22 zigoto.xyz systemd[1]: Failed to start PostgreSQL Cluster 9.6-main.
May 11 22:57:22 zigoto.xyz systemd[1]: postgresql@9.6-main.service: Unit entered failed state.
May 11 22:57:22 zigoto.xyz systemd[1]: postgresql@9.6-main.service: Failed with result 'exit-code'.
May 11 23:00:36 zigoto.xyz systemd[1]: Starting PostgreSQL Cluster 9.6-main...
May 11 23:01:08 zigoto.xyz postgresql@9.6-main[30224]: The PostgreSQL server failed to start. Please check the log output.
May 11 23:01:08 zigoto.xyz systemd[1]: postgresql@9.6-main.service: Control process exited, code=exited status=1
May 11 23:01:08 zigoto.xyz systemd[1]: Failed to start PostgreSQL Cluster 9.6-main.
May 11 23:01:08 zigoto.xyz systemd[1]: postgresql@9.6-main.service: Unit entered failed state.
May 11 23:01:08 zigoto.xyz systemd[1]: postgresql@9.6-main.service: Failed with result 'exit-code'.
May 11 23:06:15 zigoto.xyz systemd[1]: Starting PostgreSQL Cluster 9.6-main...
May 11 23:06:46 zigoto.xyz postgresql@9.6-main[30345]: The PostgreSQL server failed to start. Please check the log output.
May 11 23:06:46 zigoto.xyz systemd[1]: postgresql@9.6-main.service: Control process exited, code=exited status=1
May 11 23:06:46 zigoto.xyz systemd[1]: Failed to start PostgreSQL Cluster 9.6-main.
May 11 23:06:46 zigoto.xyz systemd[1]: postgresql@9.6-main.service: Unit entered failed state.
May 11 23:06:46 zigoto.xyz systemd[1]: postgresql@9.6-main.service: Failed with result 'exit-code'.
May 11 23:07:16 zigoto.xyz systemd[1]: Starting PostgreSQL Cluster 9.6-main...
May 11 23:07:47 zigoto.xyz postgresql@9.6-main[30379]: The PostgreSQL server failed to start. Please check the log output.
May 11 23:07:47 zigoto.xyz systemd[1]: postgresql@9.6-main.service: Control process exited, code=exited status=1
May 11 23:07:47 zigoto.xyz systemd[1]: Failed to start PostgreSQL Cluster 9.6-main.
May 11 23:07:47 zigoto.xyz systemd[1]: postgresql@9.6-main.service: Unit entered failed state.
May 11 23:07:47 zigoto.xyz systemd[1]: postgresql@9.6-main.service: Failed with result 'exit-code'.

Ugh alright let’s look at tail -n 50 /var/log/postgresql/postgresql-9.6-main.log :confused:

rien

@_@

Ptete journalctl -u postgresql -n 40 ?

Ou bien sinon regardons si y’a d’autres fichier de log pour postgresql avec find /var/log -name "*postgresql*"

journalctl -u postgresql -n 40 :
May 11 23:06:15 zigoto.xyz systemd[1]: Stopped PostgreSQL RDBMS.
May 11 23:06:15 zigoto.xyz systemd[1]: Stopping PostgreSQL RDBMS…
May 11 23:06:46 zigoto.xyz systemd[1]: Starting PostgreSQL RDBMS…
May 11 23:06:46 zigoto.xyz systemd[1]: Started PostgreSQL RDBMS.

find /var/log -name "*postgresql*" juste :
/var/log/postgresql
/var/log/postgresql/postgresql-9.6-main.log

Bon ben lancons le daemon a la main avec les options de debug…

su postgres -c "/usr/lib/postgresql/9.6/bin/postgres -d 3 -D /var/lib/postgresql/9.6/main -c config_file=/etc/postgresql/9.6/main/postgresql.conf"

J’ai l’impression qu’on boucle sur :

2020-05-11 23:41:11.670 UTC [31141] DEBUG: received inquiry for database 0
2020-05-11 23:41:11.670 UTC [31141] DEBUG: writing stats file “/var/run/postgresql/9.6-main.pg_stat_tmp/global.stat”
2020-05-11 23:42:11.709 UTC [31140] DEBUG: StartTransaction
2020-05-11 23:42:11.709 UTC [31140] DEBUG: name: unnamed; blockState: DEFAULT; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
2020-05-11 23:42:11.709 UTC [31140] DEBUG: CommitTransaction
2020-05-11 23:42:11.709 UTC [31140] DEBUG: name: unnamed; blockState: STARTED; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
2020-05-11 23:42:11.710 UTC [31141] DEBUG: received inquiry for database 0
2020-05-11 23:42:11.710 UTC [31141] DEBUG: writing stats file “/var/run/postgresql/9.6-main.pg_stat_tmp/global.stat”
2020-05-11 23:43:11.776 UTC [31140] DEBUG: StartTransaction
2020-05-11 23:43:11.776 UTC [31140] DEBUG: name: unnamed; blockState: DEFAULT; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
2020-05-11 23:43:11.776 UTC [31140] DEBUG: CommitTransaction
2020-05-11 23:43:11.776 UTC [31140] DEBUG: name: unnamed; blockState: STARTED; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:

je vais me coucher… merci pour tout.

Bonsoir Aleks,
Merci de t’être occupé de mon probleme,
comme je commence avec Yunohost et que je n’ai rien de bien indispensable sur ma freedombox, j’ai décidé de tout réinstaller.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.