-
-
Notifications
You must be signed in to change notification settings - Fork 238
Managing automatic updates
Nextcloud snap is designed to update (refresh) automatically by default.
You have full control to manage if and when your Nextcloud snap is updated with snapd daemon! See managing updates.
Note
Snaps update automatically, and by default, the snapd daemon checks for updates 4 times a day. Each update check is called a refresh. Updates can be set to occur on Friday at midnight, or for specific days of the month, such as only the third Monday, or even the last Friday of the month, between 23:00 to 01:00 the next day. They can even be postponed indefinitely, or for a set period of time. When, if, and how often, these updates occur is the job of the snap refresh command.
- See managing logs
- Run the debugging script
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 update happened.
see FAQ's
This would be the perfect opportunity 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/snapshotsto wherever
A prevalent cause of auto-update issues is attributed to incompatible third party apps due to snap confinement. Any apps requiring access to executable binaries will cause auto-updates to fail since these are not included in the snap. Disabling the misbehaving apps usually resolves the auto-update issue. Sometimes apps can be re-installed or re-enabled after successful manual refresh (update)... but may recur during the next auto-update.
If your Nextcloud interface is unavailable or in Maintenance mode, you can disable apps using the 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>
sudo snap refresh nextcloud
Nextcloud snap Wiki, use all information and scripts at own risk
- HTTP/HTTPS port configuration
- PHP configuration options
- Hosts & FQDN configuration
- Reverse proxy configuration
- CODE & Nextcloud Office configuration
- HPB client-push configuration
- Managing Nextcloud snap
- Managing automatic updates
- Managing automatic update issues
- Managing external media and storage
- Managing logs
- Managing services
- Managing cron
- Managing HTTP encryption
- OCC management console