Failed nextcloud update - cant access the app anymore

What app is this about, and its version: Nextcloud 31.0.9~ynh2
What YunoHost version are you running: 12.1.40.1 (stable)
What type of hardware are you using: VPS bought online

Describe your issue

I tried to install the pending nextcloud update from 31.0.9~ynh2 to 34.0.1~ynh1 and it failed.

Now when I try to access the app I get this error :

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

Share relevant logs or error messages

Update log - 1st try

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

2nd try
https://paste.yunohost.org/raw/manasopoce

Dans un premier temps, essaie ceci pour voir si tu peux récupérer l’accès à la version restaurée:

yunohost app shell nextcloud 
php occ maintenance:repair

Par ailleurs, l’upgrade est bloqué par une application (‘mail’) non compatible avec la version 34 : il faut la désactiver avant de retenter l’upgrade.
Enfin, le saut de deux versions majeures peut poser problème.

J’ai pu accéder à l’interface web, désactiver l’app ‘mail’ que je n’utilise pas vraiment et finalement l’upgrade s’est bien déroulée. Merci !