-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Often App Upgrades Fail When They InstallTo app/app #11641
Comments
I get hit by exactly this. Just got again today with the contacts 2.1.8 update. My apps setup is a little non-stock since my Nextcloud is in a Docker container, but the Apps folder is stored on a NFS share and mounted into /apps2/. Either way, when I click "update" the app appears in nextcloud/apps2/contacts/contacts. Then I get an error that Nextcloud can't read the appinfo file, followed by Nextcloud getting left in maintenance mode. I didn't write a script to fix it, but I just rm -rf the app, turn off maintenance mode and just download the app again. The data in SQL remains fine. My config.php
|
Thank you @cvandesande. I wonder why no one of the team cares about this annoying problem?!? |
As I cannot reproduce the original issue anymore, I will close this ticket. If this is still happening please make sure to upgrade to the latest version. After that, feel free to reopen. |
This just happened to me with calendar:2.0.3 on nextcloud 19.0.0.12. Thank you for the diagnosis and fix! |
Since this issue happened, I've learned that my NFS mount options seem to have an effect. Switching my NFS mounts from sync to async seemed to prevent this, however there have been consequences with upgrades. After a NC update, I run "occ upgrade", which turns off maintenance mode when complete. However maintenance still appears on after when I refresh NC. Fixing seems to be a simple PHP restart, (or docker restart in my case). Restarting PHP after an upgrade bothers me less than app errors, but I'm still interested in discovering what NFS mount options are the best for Nextcloud |
Often when I upgrade Apps from the GUI, the upgrade fails and Nextcloud goes to maintenance mode.
When I then look into the App's directory, I see, that the app is inside the app, e.g. currently it happens e.g. to contacts, calendar and notes. Then there is e.g. a directory
/var/www/nextcloud/apps/contacts/contacts
.To fix the issue, I remove the app, e.g.
/var/www/nextcloud/apps/contacts
, then callocc app:install contacts
.Since it happens often, I wrote a script.
APPSDIR
is set to/var/www/nextcloud/apps
:Steps to reproduce
Currently it happened in two installations with the following steps:
Expected behaviour
Upgrade should work without problems from the GUI.
Actual behaviour
New app is installed into the wrong directory.
Server configuration
Operating system: Ubuntu 18.04
Web server: Apache
Database: MySQL
PHP version: 7
Nextcloud version: 14.0.1 (also happened in 13)
Updated from an older Nextcloud/ownCloud or fresh install: update from 13
Where did you install Nextcloud from: latest.tar.gz, docker image mwaeckerlin/nextcloud
Client configuration
Browser: Firefox Quantum
Operating system: Ubuntu 18.04
The text was updated successfully, but these errors were encountered: