What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.14
What app is this about: Nextcloud
Describe your issue
I recently upgraded my Yunohost from 11 to the latest 12. Everything went smoothly except for my Nextcloud (version 25.0.6~ynh1) installation which was suddenly inaccessible and unable to update to the latest version from the Yunohost admin portal. Unfortunately I didn’t grab any full logs for this, but when trying to update I got this error:
Warning: /usr/share/yunohost/helpers.v1.d/mysql: line 154: mysqldump: command not found
Error: Could not back up nextcloud
Which causes the update to fail.
No big deal, it’s a big update I thought, I’ll just delete the app and try again from scratch. Nextcloud was removed successfully.
But when I try to reinstall the latest Nextcloud it also fails seemingly due to a mySQL error:
2025-04-17 13:47:21,357: DEBUG - + sudo -u nextcloud env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 php8.3 --define apc.enable_cli=1 occ --no-interaction --no-ansi maintenance:install --database mysql --database-name nextcloud --database-user nextcloud --database-pass ********** --admin-user admin --admin-pass ********** --data-dir /home/yunohost.app/nextcloud/data
2025-04-17 13:47:21,606: DEBUG - Error while trying to create admin account: An exception occurred in the driver: SQLSTATE[HY000] [1045] Access denied for user 'nextcloud'@'localhost' (using password: YES)
I have root shell access to the system, so I’m happy to try digging around in there if needed.