Nextcloud upgrade fails -- db permissions? 33.0.4 to 34.0.1

What app is this about, and its version: Nextcloud 33.0.4~ynh1
What YunoHost version are you running: 12.1.40.1
What type of hardware are you using: VPS bought online

Describe your issue

After previous upgrade failure, Nextcloud appears to be successfully restored. However! Attempting to upgrade again runs into the issue shown below.

Full upgrade log: https://paste.yunohost.org/raw/ocahazarot

Nextcloud 33 is still usable but I’ll probably want to update at some point. How fix? Thanks!

Share relevant logs or error messages

2026-07-05 21:31:31,516: DEBUG - 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:238

Can you run sudo mysql -e “SELECT Host, User FROM mysql.user;” and share the output ?

+-----------+--------------+
| Host      | User         |
+-----------+--------------+
| localhost | mariadb.sys  |
| localhost | mysql        |
| localhost | nextcloud    |
| localhost | root         |
+-----------+--------------+

Check if dbpassword in /var/www/nextcloud/config/config.php is the same as db_pwd in /etc/yunohost/apps/nextcloud/settings.yml

They are the same

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