[Monitorix] upgrade to 3.14 fails (backup error)

My YunoHost server

Hardware: Distant x86 server
YunoHost version: 11.1.0.2
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : not related to this app or issue

Description of my issue

Hi,

Tried to upgrade Monitorix from 3.12.0~ynh2 to 3.14.0~ynh2

Script failed on the backup step ( see https://paste.yunohost.org/raw/udelehujax ), apparently related to Monitorix MySQL database :

WARNING - 1384 mysqldump: Got error: 1049: "Unknown database 'monitorix'" when selecting the database

Seems the database monitorix does not exist :

# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 341727
Server version: 10.5.15-MariaDB-0+deb11u1 Debian 11

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> SHOW DATABASES;
+--------------------+
| Database           |
+--------------------+
| gitea              |
| information_schema |
| mysql              |
| nextcloud          |
| performance_schema |
| roundcube          |
| ttrss              |
+--------------------+
7 rows in set (0.024 sec)

Should I manually create it, or is there a properer way to repair the app ?

1 Like

I have the same problem. Here is the log if it can help → https://paste.yunohost.org/raw/ubahisavey

I removed and reinstalled the app, but the database is still missing : issue will be back at the next app upgrade.

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