[18:01:01]
<thatoo> Bonjour,
```
```
La mise à jour de nextcloud de 29.0.2 vers 29.0.5 vient d'échouer mais la restauration dit avoir réussi.
```
```
Pourtant, nc est en carafe et si je vais dans la webadmin, je trouve ça
```
```
```
Une erreur empêche l'affichage du panneau de configuration :
Échec de la lecture au retour du script /etc/yunohost/apps/nextcloud/scripts/config. Erreur : Fichier YAML corrompu en lecture depuis /tmp/tmpjj0vdxww/stdreturn (raison : mapping values are not allowed here<br> in "<unicode string>", line 9, column 66:<br> ... thrown: DoctrineDBALException: Failed to connect to the datab ... <br> ^). Contenu brut : fpm_footprint:<br> high<br>fpm_free_footprint:<br> 0<br>fpm_usage: 'medium'<br>maintenance_mode:<br> <br>system_addressbook_exposed:<br> An unhandled exception has been thrown: DoctrineDBALException: Failed to connect to the database: An exception occurred in the driver: could not find driver in /var/www/nextcloud/lib/private/DB/Connection.php:163 Stack trace: #0 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(453): OCDBConnection->connect() #1 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(411): DoctrineDBALConnection->getDatabasePlatformVersion() #2 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(318): DoctrineDBALConnection->detectDatabasePlatform() #3 /var/www/nextcloud/lib/private/DB/ConnectionAdapter.php(200): DoctrineDBALConnection->getDatabasePlatform() #4 /var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(121): OCDBConnectionAdapter->getDatabasePlatform() #5 /var/www/nextcloud/lib/private/AppConfig.php(1237): OCDBQueryBuilderQueryBuilder->expr() #6 /var/www/nextcloud/lib/private/AppConfig.php(262): OCAppConfig->loadConfig() #7 /var/www/nextcloud/lib/private/AppConfig.php(1378): OCAppConfig->searchValues() #8 /var/www/nextcloud/lib/private/App/AppManager.php(131): OCAppConfig->getValues() #9 /var/www/nextcloud/lib/private/App/AppManager.php(152): OCAppAppManager->getInstalledAppsValues() #10 /var/www/nextcloud/lib/private/legacy/OC_App.php(234): OCAppAppManager->getInstalledApps() #11 /var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php(90): OC_App::getEnabledApps() #12 /var/www/nextcloud/lib/base.php(706): OCAppFrameworkBootstrapCoordinator->runInitialRegistration() #13 /var/www/nextcloud/lib/base.php(1181): OC::init() #14 /var/www/nextcloud/console.php(48): require_once('...') #15 /var/www/nextcloud/occ(11): require_once('...') #16 {main}<br>
Merci de signaler cette erreur à l'équipe de YunoHost pour qu'elle soit corrigée !
```
[18:04:09]
<thatoo> Est-ce qu'un redémarrage pourrait aider?
[18:04:10]
<thatoo> les logs de la mise à jour qui a échoué sont là https://paste.yunohost.org/raw/qofeqanuxa
[18:07:04]
<thatoo> bon ben si je retente une mise à jour, je désactive polls d'abord mais là, le problème est de remettre nextcloud en état de marche.
[18:07:05]
<rodinux> les services mysql et php8.3-fpm tournent bien ?
[18:10:05]
<rodinux> ou php8.2-fpm ??
[18:10:05]
<rodinux> On dirait qu'il ne se connecte pas à la db...
[18:10:05]
<thatoo> oui
[18:10:06]
<thatoo> c'est ce que je comprends aussi
[18:10:06]
<thatoo> je peux les redémarrer peut-être
[18:13:40]
<thatoo> j'ai redémarré les services php-8.2 et mysql, ça n'apporte aucune amélioration
[18:17:23]
<thatoo> ```
cat /etc/php/8.2/fpm/pool.d/nextcloud.conf
[nextcloud]
user = nextcloud
group = nextcloud
chdir = /var/www/nextcloud
listen = /var/run/php/php8.2-fpm-nextcloud.sock
listen.owner = www-data
listen.group = www-data
pm = dynamic
pm.max_children = 16
pm.max_requests = 500
request_terminate_timeout = 1d
pm.start_servers = 6
pm.min_spare_servers = 5
pm.max_spare_servers = 8
; Additional php.ini defines, specific to this pool of workers.
env[PATH] = $PATH
php_admin_value[memory_limit] = 512M
php_value[upload_max_filesize] = 10G
php_value[post_max_size] = 10G
php_value[default_charset] = UTF-8
; OPcache is already activated by default
; php_value[opcache.enable]=1
; The following parameters are nevertheless recommended for Nextcloud
; see here: https://docs.nextcloud.com/server/20/admin_manual/installation/server_tuning.html#enable-php-opcache
php_value[opcache.enable_cli]=1
php_value[opcache.interned_strings_buffer]=32
php_value[opcache.max_accelerated_files]=10000
php_value[opcache.memory_consumption]=128
php_value[opcache.save_comments]=1
php_value[opcache.revalidate_freq]=60
; https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/caching_configuration.html#id1
php_value[apc.enabled]=1
php_value[apc.enable_cli]=1
```
[18:17:23]
<rodinux> * `/etc/php/8.3/fpm/pool.d/` plutôt...
[18:19:35]
<thatoo> Il y a bien une bdd qui s'appelle nextcloud dans mysql
[18:21:55]
<thatoo> Si je tente d'essayer d'utiliser la commande occ, j'obtiens une erreur sensiblement similaire
[18:21:56]
<thatoo> ```
# sudo -u nextcloud php8.2 --define apc.enable_cli=1 /var/www/nextcloud/occ
An unhandled exception has been thrown:
DoctrineDBALException: Failed to connect to the database: An exception occurred in the driver: could not find driver in /var/www/nextcloud/lib/private/DB/Connection.php:163
Stack trace:
#0 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(453): OCDBConnection->connect()
#1 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(411): DoctrineDBALConnection->getDatabasePlatformVersion()
#2 /var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(318): DoctrineDBALConnection->detectDatabasePlatform()
#3 /var/www/nextcloud/lib/private/DB/ConnectionAdapter.php(200): DoctrineDBALConnection->getDatabasePlatform()
#4 /var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(121): OCDBConnectionAdapter->getDatabasePlatform()
#5 /var/www/nextcloud/lib/private/AppConfig.php(1237): OCDBQueryBuilderQueryBuilder->expr()
#6 /var/www/nextcloud/lib/private/AppConfig.php(262): OCAppConfig->loadConfig()
#7 /var/www/nextcloud/lib/private/AppConfig.php(1378): OCAppConfig->searchValues()
#8 /var/www/nextcloud/lib/private/App/AppManager.php(131): OCAppConfig->getValues()
#9 /var/www/nextcloud/lib/private/App/AppManager.php(152): OCAppAppManager->getInstalledAppsValues()
#10 /var/www/nextcloud/lib/private/legacy/OC_App.php(234): OCAppAppManager->getInstalledApps()
#11 /var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php(90): OC_App::getEnabledApps()
#12 /var/www/nextcloud/lib/base.php(706): OCAppFrameworkBootstrapCoordinator->runInitialRegistration()
#13 /var/www/nextcloud/lib/base.php(1181): OC::init()
#14 /var/www/nextcloud/console.php(48): require_once('...')
#15 /var/www/nextcloud/occ(11): require_once('...')
```
[18:22:07]
<rodinux> ça ressemble à ce topic https://forum.yunohost.org/t/mysql-service-bug/29630
[18:22:07]
<rodinux> que renvoi `systemctl status mariadb.service`
[18:24:57]
<thatoo> aucune erreur
[18:25:17]
<thatoo> à cause du /tmp dans
```
Échec de la lecture au retour du script /etc/yunohost/apps/nextcloud/scripts/config. Erreur : Fichier YAML corrompu en lecture depuis /tmp/tmp054jedg1/stdreturn (raison : mapping values are not allowed here<br> in "<unicode string>", line 9, column 66:<br> ... thrown: DoctrineDBALException: Failed to connect to the datab ... <br> ^)
```
, j'ai bien envie de simplement tester si ça fonctionne après un reboot.
[18:27:57]
<rodinux> les logs de la restauration du backup ?
[18:27:57]
<rodinux> Tu as regarder le
[18:27:58]
<thatoo> non, comme ynh m'annonce un succès, j'ai pas regardé. Les voila : https://paste.yunohost.org/raw/atifutizoj
[18:27:58]
<thatoo> `` active (running) ``
[18:27:59]
<rodinux> le risque du reboot, c'est qu'il va vider le /tmp... mais bon peu-être aussi la solution...
[18:31:05]
<thatoo> c'est pour ça que je n'ai pas encore osé le reboot
[18:33:58]
<rodinux> Quand je lis le restore, je pense à une confusion, on dirait qu'il installe les dépendances pour php8.3....
[18:34:14]
<thatoo> curieux
[18:37:10]
<thatoo> mais
`` cat: /etc/php/8.3/fpm/pool.d/nextcloud.conf: Aucun fichier ou dossier de ce type ``
et dans le fichier conf nginx , c'est bien 8.2 aussi.
[18:40:12]
<rodinux> Au début du script `2024-08-21 19:53:37,453: DEBUG - Setting up nextcloud-ynh-deps (29.0.2~ynh1) ...
2024-08-21 19:53:37,489: DEBUG - + ynh_package_install --fix-broken` onvois qu'il installe et configure des modules php8.3...
[18:40:52]
<thatoo> oui, j'ai vu
[18:43:12]
<rodinux> Du coup, peut-être si tu essaye de faire une copie du `/etc/php/8.2/fpm/pool.d/nextcloud.conf` dans `/etc/php/8.3/fpm/pool.d/` , l'éditer pour qu'il écoute `listen = /var/run/php/php8.3-fpm-nextcloud.sock` et éditer le fichier nginx aussi... C'est peut-être casse-gueule comme suggestion ???
[18:45:51]
<thatoo> je tente
[18:50:49]
<thatoo> merci rodinux
[18:50:49]
<rodinux> 🎉
[18:50:49]
<thatoo> ça fonctionne
[18:53:25]
<thatoo> je tente l'update après désactiver polls
[19:48:59]
<thatoo> La mise à jour s'est bien passé et j'ai pu réactiver polls après la mise à jour.