What app is this about, and its version: Nextcloud 31.0.11~ynh1 What YunoHost version are you running: YunoHost 12.1.39 (stable). What type of hardware are you using: Old laptop or computer
Describe your issue
I am unable to uograde my current version of Nextcloud. In the past this was always a simple one to upgrade but that is no longer the case. I have made sure that all Apps within Nextcloud are up to date, all my YNH is up to date and all is working well. However, every time I try to upgrade it fails. Previously the automated restore from backup would fail but that now seems to be fixed after I applied som other fixes (e.g. Yarn key) . I’ve hit a bit of a brickwall and can’t see anything similar in other cases. Any help is really welcomed!
I just spotted this buried in the logs “installed_apps_not_compatible_with_future_version=”. Now I do seem to remember another case on here refering to something similar and mentioning some setting you can apply through the Nextcloud UI to highlight these Apps but I cannot find any such switch. Has anyone else seen this before?
I found a match !! app_api . But what does it do and can I live without it? I suppose there is only one way of finding out…
I have disabled the App called app_api in the Nextcloud app interface. Let’s see if I can live without it operating for a day and then see if the upgrade works. If not I can use the command to remove the app from Nextcloud. I suggest the latter as I see upgrades sometimes fail if an app is incompatible and disabled !
Of course, it could be that I do need this app and I suppose I will then have to avoid upgrading until the app developers have upgraded their code to be compatiblle with Nextcloud v32 .
It all seemed to be working OK so I couldn’t wait and tried the update again. This time it failed with a fairly fundamental problem. Not sure what is wrong, perhaps I will try again later.
Darn it, I cant delete that app either with or without it being enabled. Apparently it’s a “shipped app” so can’t be deleted. Yet if I am correct and thats the app that is stopping the upgrade then I’m stuck.
Result with it enabled:-
root@giliker:/var/www/nextcloud# sudo -u nextcloud php --define apc.enable_cli=1 /var/www/nextcloud/occ app:remove app_api
app_api could not be removed as it is a shipped app
And result with it disabled:-
root@giliker:/var/www/nextcloud# sudo -u nextcloud php --define apc.enable_cli=1 /var/www/nextcloud/occ app:remove app_api
app_api is not enabled
Has anyone got any suggestions? Have I gone down a rabbit hole? Is there a simple answer?
Marc, I ran that command through an SSH terminal. It seemed to work OK, at least no errors appeared. I then ran the upgrade from the YNH UI. Sadly it failed “An error occured inside the app upgrade script”.
Otm, that seems to make sense to me but I am not sure how to use this insight. Is it something that needs to tweaked in the YNH upgrade script for NC v32. I am still an amateur on Linux (I did code on Unix with Cobol, Pascal and Coral-66 a lifetime ago) but I’m not sure how to use this insight. Any advice…