Hey @MonkeyFrog, welcome to the Nextcloud community and thanks for supporting Nextcloud snap
Sorry to hear you are having issues with your Nextcloud snap installation. If you’ve come this far, you’re on the right track! There is a good chance someone in the community has had a similar issue and knows how to resolve it. That depends on how you request assistance. So read your request for tone, avoiding hyperbole and assuming good intentions.
In order to help you we’ll need some Information to get an Idea of your setup, so complete the required support template if you haven’t done so already or run the debugging script and post the result here.
Below are some links to how-to’s answering frequently asked questions and may help you help yourself;
- How to install Nextcloud snap
- How to configure Nextcloud snap
- How to edit config.php for Nextcloud snap
- How to use OCC management console for Nextcloud snap
- How to revert Nextcloud snap after failed update
- How to manage failed automatic update in Nextcloud snap
- Nextcloud snap wiki and support
Meanwhile if you’re having automatic update issues…
1. Check your logs to discover the cause of the update failure
- How to manage Nextcloud snap logs
- How to run the debugging script
- How to discover and disable incompatible third party apps
2. Revert to last known good revision
Snaps were designed to have a robust upgrade story. In the case of the Nextcloud snap, every time it refreshes (updates), it takes a snapshot of the database and other version-specific things (not the raw data though, e.g. pictures and documents) and holds them alongside the old revision of the snap.
sudo snap revert nextcloud
With that command, you should be back up and running right at the moment before the automatic update happened.
see How to revert Nextcloud snap after failed update
Backup your running snap now!
This would be the perfect occasion to create a complete Nextcloud snap backup including configuration, apps, certificates, database and data.
- stop Nextcloud snap
sudo snap stop nextcloud
- save Nextcloud snap
sudo snap save nextcloud
- start Nextcloud snap
sudo snap start nextcloud
- copy/move snapshot (*.zip) in
/var/lib/snapd/snapshots
to wherever
3. Resolve automatic update issues
A prevalent cause of automatic update issues is attributed to incompatible third party apps due to snap confinement. Any apps requiring access to executable binaries will fail since these are not included in the snap. Disabling the misbehaving apps frequently resolves the automatic update issue. Sometimes apps can be re-installed or re-enabled after successful manual refresh (update)… but may recur during the next automatic update.
If your Nextcloud interface is not available or your Nextcloud is in “Maintenance mode”, you can disable apps using the OCC management console or command line:
- List apps:
sudo nextcloud.occ app:list
- Disable app:
sudo nextcloud.occ app:disable <appname>
- Remove app:
sudo nextcloud.occ app:remove <appname>
- Remove app:
- Enable app:
sudo nextcloud.occ app:enable <appname>
see How to manage automatic updates in Nextcloud snap
4. Manually update = refresh Nextcloud snap
sudo snap refresh nextcloud