Ampache upgrade/removal failure

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.11 Stable
What app is this about: Ampache

Describe your issue

Ampache will not upgrade. It is currently at version 6.6.3~ynh1 and seems to be working fine, but when I attempt to update it via the command line, it does the pre-upgrade backup, starts to upgrade, then fails and backs itself out.

I fairly recently upgraded from Yunohost 11 to Yunohost 12 and I haven’t upgraded Ampache since I was running Yunohost version 11. I have no idea if this is related to the Yunohost upgrade or not.
Also, I’m not sure if this is relevant, but all of my other apps have been upgraded and seem to be working properly.

It looks like as part of the upgrade process it’s trying to remove the currently installed version, and that’s the part that’s failing.

There are two related logs, one for Ampache removal and another for Ampache upgrade. I’ll attach the pastes for both.

Share relevant logs or error messages

Log for “Upgrade the ampache app”: https://paste.yunohost.org/raw/ahohuvaweh

Log for “Remove the ampache app”: https://paste.yunohost.org/raw/emelizuwar

I finally resolved this myself.
Not a very elegant solution, but I was able to remove the corrupted version of Ampache that had been upgraded from Yunohost 11 from the command line via…

sudo yunohost app remove ampache

…then install the version from the Yunohost V12 app catalog. It installed with no problem. Then I just re-created my music catalogs and re-scanned / indexed them from the command line via…

sudo php8.2 /var/www/ampache/bin/cli run:updateCatalog

That took about 20 minutes to run. Now everything is fine and I can run a full sudo yunohost app upgrade from the command line without it choking when it gets to Ampache.

All good.

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