Nextcloud non accessible après restauration

Mon serveur YunoHost

Matériel: Raspberry Pi à la maison / Brique Internet avec VPN
Version de YunoHost: 11.0.9.7 (stable).
J’ai accès à mon serveur : En SSH | Par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modifiiations particulières sur votre instance ? : non

Description du problème

Bonjour,

J’ai installé la dernière version de Yunohost sur mon Pi suite à une migration impossible. Je restaure petit à petit mes applications et données depuis une sauvegarde faite avec Borg.

Mais Nextcloud n’est plus accessible malgré une restauration qui s’est bien déroulée. Je tombe sur une page :

502 Bad Gateway
nginx

Pourtant le service nginx est en marche.

Merci des conseils.

Hello,

I installed the latest version of Yunohost on my Pi due to an impossible migration. I gradually restore my applications and data from a backup made with Borg.

But NextCloud is no longer accessible despite a restoration that went well. I just have a page:

502 Bad Gateway
nginx

Yet the nginx service is running.

Thank you for any advice.

Quelle version de Nextcloud ?

La sauvegarde date donc d’avant Debian 11 ?

Que dit le fichier de log de Nextcloud ? (/var/www/nextcloud/data/nextcloud/log je crois)

1 Like

Ceci est peut-être en lien : Nextcloud - 502 Bad Gateway nginx après restauration de l'app

1 Like

C’était la dernière verion de Nextcloud pour Yunohost, oui d’avant Debian 11, juste avant la migration.

Que dit le fichier de log de Nextcloud ? (/var/www/nextcloud/data/nextcloud/log je crois)
Rien à cet emplacement.

Mais voici le log de la restauration de Nextcloud, qui s’est bien passée : https://paste.yunohost.org/raw/asicanoduk

Running sudo sed -i 's/php7.3/php7.4/g' /etc/nginx/conf.d/*/nextcloud.conf should fix the issue. Edit: and sudo systemctl reload nginx

The underlying bug was fixed in a recent micro update of Yunohost

1 Like

Merci, mais que faire si c’est un problème de php ?
Ma version de Nextcloud est 22.2.10~ynh1.

I have the same problem. I have run this command line and the issue is not fixed.

Thank you. It didn’t change anything for me.

For my part php7.x is mentioned once, and is already php7.4 : fastcgi_pass unix:/var/run/php/php7.4-fpm-nextcloud.sock;

It is working again!

Great ! What is the solution ?

It seems the solution is the one given by Aleks:

sudo sed -i 's/php7.3/php7.4/g' /etc/nginx/conf.d/*/nextcloud.conf should fix the issue. Edit: and `sudo systemctl reload nginx

It didn’t work then, however it worked when I restarted my Yunohost server (I didn’t touch anything else so I presume restarting did something).

1 Like

Probably because I didn’t advised to systemctl reload nginx

3 Likes

It works for me too ! Thanks !
:champagne: :partying_face:

1 Like

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