Nextcloud update issue leads to page Bad Gateway

I have searched the forum for similar issues

on

This category is for issues regarding specific apps, NOT general issues with YunoHost.

on

This form is written in English but feel free to write in French if you’re more comfortable!

on

What app is this about, and its version

Nextcloud, 34.0.4~ynh1

What YunoHost version are you running

12.1.41.2

What type of hardware are you using

Raspberry Pi 3, 4+

Describe your issue

Hello,

I tried to update Nexcloud from the version 34 to 35. Something went wrong during the upgrade. The log : https://paste.yunohost.org/raw/ogesiwotix

And now, when I go on the web app, I am facing this message on the page :

502 Bad Gateway
If you see this page, your connection with the server is working but the internal service providing this path is not responding.
Administrator, make sure that the service is running, and check its logs if it is not. The Services page is in your webadmin, under Tools > Services.
Thank you for using YunoHost.

All the services are correctly running under Tools > Services

How can I fix the page first, and then how succeed in update the app ?

Thanls for your help.

Share relevant logs or error messages

https://paste.yunohost.org/raw/ogesiwotix

 WARNING - E: Failed to fetch http://archive.raspberrypi.org/debian/dists/bookworm/InRelease  Temporary failure resolving 'archive.raspberrypi.org'

Seems to be a network issue. Did you retry the upgrade ?

I retired the update but it failed again. I tried to deploy a backup but it failed as well… So, now I desinstall totally nextcloud and reinstall it. The installation is ok, with the updated version. However, I don’t manage to read the data folder on the external storage. I create a symbolic link of /home/yunohost.app/nextcloud to the correct folder on my storage (/media/nextcloud) but my data are not reachable by the nextcloud installation…
The command I have executed :

ln -s /media/stockage/nextcloud_data/nextcloud /home/yunohost.app/nextcloud

It is probably due to permission but this folder has arleady the correct permissions because it worked onto the previous nextcloud installation.
Do you have a solution ?

You can try this

yunohost app shell nextcloud
php occ files:scan --all

Perfect, it works ! Great job ! Thank you !