What type of hardware are you using: VPS bought online What YunoHost version are you running: 12.1.39 How are you able to access your server: SSH
Describe your issue
Today for the second time in a row, trying to upgrade NextCloud resulted in a failed upgrade (due to some NC apps apparently not being compatible with the new verssion) and also a failed uninstallation of NextCloud.
Why in the world would anyone want to remove their entire “cloud” based server system just because there was an error message about a routine upgrade? This should never happen. I won’t be upgrading NextCloud for a long time thanks to these problems.
Making matters worse, I can’t simply restore a backup, because “Nextcloud is already installed.” Which is it, installed or uninstalled? It’s definitely not working.
Removing nextcloud and restoring from backup results in SQL errors and another half-broken uninstallation attempt… it’s a nightmare.
Share relevant logs or error messages
paste.yunohost dot org/raw/wocebofima
And then when uninstalling the broken nextcloud I get:
./remove: line 22: ynh_config_remove_systemdnextcloud-notify-push: command not found
Failed to disable unit: Unit file nextcloud-notify-push-watcher.path does not exist.
‘/etc/systemd/system/nextcloud-notify-push-watcher.path’ wasn’t deleted because it doesn’t exist.
./remove: line 25: ynh_config_remove_systemdnextcloud-notify-push-watcher: command not found
And then restoring the backup I get an error about “Base table or view not found: 1146 Table ‘'‘nextcloud.oc_appconfig’'’ doesn’''t exist in /var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php:130”
paste.yunohost dot org/raw/ilotemanay
and of course that’s followed by a “uninstallation” that’s not complete: paste.yunohost dot org/raw/asujapukak
Update: after hitting multiple dead ends, it seems waiting really is the solution. Much like this thread: <forum.yunohost dot org/t/nextcloud-restore-fail-after-fail-update-from-31-0-11-ynh1-to-32-0-3-ynh1/41307/3> I uninstalled NextCloud (unsure if that’s necessary), restarted the server (unsure if that’s necessary) and waited multiple hours before and after the restart (apparently that’s what’s necessary) and then the backup restoration worked fine.
Regardless, since this is the second time in a row this has happened, I’ll likely not be upgrading NextCloud any time soon. Please stop uninstalling programs that fail to upgrade.
Also, it’d be really swell if new users were allowed to post links here, since we’re also supposed to provide log pastebins, so the overall effect is that new users can’t easily get good support. paste.yunohost and forum.yunohost should probably be in an allow-list.
I manage few nextcloud instances, not only with yunohost environments, and believe me if you can, it’s hard to maintain in all cases and not related only on how yunohost maintain this package. It is really more confortable a Nextcloud on a yunohost with the lot of contributions and helps…
The problem is when you add lot of modules, sometime not released or unsupported… and sometimes nextcloud having new bugs on their “stable“ version…
I am also waiting a module, ownpad, to be compatible before upgrading to 32… But I am thinking about remove it soon, the version 31 in now an unsupported version…