Nextcloud internal serveur error après Update echouée et restauration de save cassée

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.17
What app is this about: nextcloud 31 0 7 Ynh2

Describe your issue

Bonjour
Après avoir subit une erreur sur la mise à jour de Nextcloud, j’ai un

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.

Le probleme est que j’ai retenté la MàJ juste après, ce qui a automatique écrasé la sauvegrade fonctionelle pour la remplacer par celle qui me donne le probleme.

Les services nginx et mysql semblent fonctionels.

Je ne suis pas certain de savoir par où commencer l’investigation ni quels logs partager.

Share relevant logs or error messages

voici les log de la mise à jour echouée
https://paste.yunohost.org/raw/maceriqohu

Essai ceci

yunohost app shell nextcloud
php occ app:update --all
exit
yunohost app upgrade nextcloud

ça ne répare pas installation courante de nextcloud et le shell nextcloud me donne des erreurs:

➜  nextcloud yunohost app shell nextcloud
nextcloud@mydomain:~$ php occ app:update --all
An unhandled exception has been thrown:
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [1045] Access denied for user 'nextcloud'@'localhost' (using password: YES) in /var/www/nextcloud/lib/private/DB/Connection.php:237
Stack trace:
#0 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(458): OC\DB\Connection->connect()
#1 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(416): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(323): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /var/www/nextcloud/lib/private/DB/Connection.php(903): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /var/www/nextcloud/lib/private/DB/ConnectionAdapter.php(235): OC\DB\Connection->getDatabaseProvider()
#5 /var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(96): OC\DB\ConnectionAdapter->getDatabaseProvider()
#6 /var/www/nextcloud/lib/private/AppConfig.php(1226): OC\DB\QueryBuilder\QueryBuilder->expr()
#7 /var/www/nextcloud/lib/private/AppConfig.php(243): OC\AppConfig->loadConfig()
#8 /var/www/nextcloud/lib/private/AppConfig.php(1366): OC\AppConfig->searchValues()
#9 /var/www/nextcloud/lib/private/App/AppManager.php(136): OC\AppConfig->getValues()
#10 /var/www/nextcloud/lib/private/App/AppManager.php(157): OC\App\AppManager->getInstalledAppsValues()
#11 /var/www/nextcloud/lib/private/legacy/OC_App.php(188): OC\App\AppManager->getInstalledApps()
#12 /var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php(48): OC_App::getEnabledApps()
#13 /var/www/nextcloud/lib/base.php(675): OC\AppFramework\Bootstrap\Coordinator->runInitialRegistration()
#14 /var/www/nextcloud/lib/base.php(1171): OC::init()
#15 /var/www/nextcloud/console.php(28): require_once('...')
#16 /var/www/nextcloud/occ(33): require_once('...')

toujours le internal serveur error, et ensuite la mise à jour echoue aussi:
https://paste.yunohost.org/raw/ucigunevam

bon alors la premiere erreur citée ci dessus je l’ai resolue en suivant la même methode que j’avais eu la derniere fois

ce qui me fait penser qu’il y a un quack dans le script d’upgrade de nextcloud quand ça plante. je pense que le script ne restore pas l’user nextcloud dans mariadb.

bon par contre ça n’a pas résolu mon problème, j’ai toujours un internal server error et je ne vois rien de pertinent dans le log nextcloud de var/log/netxcloud

edit : après avoir réparé l’user nextcloud dans mariadb comme expliqué dans le post ci dessus, j’ai refait :

yunohost app shell nextcloud
php occ app:update --all
exit
yunohost app upgrade nextcloud

et ça a résolu le problème

merci @jarod5001

1 Like

Merci pour ton post, il m’a grandement aidé je viens de dépanner ma mise à jour grâce à toi!

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