How to manage failed automatic update in Nextcloud snap

Resolve failed automatic update in Nextcloud snap

Resolve failed automatic update issues in Nextcloud snap
Resolve integrity check failure
Nextcloud snap FAQ’s

1. Check your logs to discover the cause of the update failure

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 update happened.

see How to revert Nextcloud snap after failed update

→ Backup your running snap now!

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/snapshots to wherever

see How to backup, restore and migrate Nextcloud snap

3. Resolve auto-update issues

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:

  1. List apps: sudo nextcloud.occ app:list
  2. Disable app: sudo nextcloud.occ app:disable <appname>
    • Remove app: sudo nextcloud.occ app:remove <appname>

4. Manually update = refresh Nextcloud snap

sudo snap refresh nextcloud

Resolve integrity check failure – “Integrity check failed… invalid files”

Some files have not passed the integrity check. Further information on how to resolve this issue can be found in the documentation :arrow_upper_right:. (List of invalid files…)

If you get a message that the integrity check has failed due to invalid files, check your logs for the invalid files. There is usually a link in the integrity failure message with a list of invalid files causing integrity failure. Within that listing there is usually a reference to the directory from which you may deduce the app name (i.e “spreed”).

IMPORTANT!

Read the documentation
See the link to list of invalid files :check_mark:

Steps to resolve integrity check failure

1. Find the files causing the issue

Review your logs or by following the link list of invalid files in the message and discover which app (<appname>) those files reference

2. Double check the app name in question:

sudo nextcloud.occ app:list

3. Remove the app causing the integrity check failure:

sudo nextcloud.occ app::remove <appname>

4. Reinstall the app:

sudo nextcloud.occ app:enable <appname>

5. Run the integrity check manually and see output:

sudo nextcloud.occ integrity:check-core

6. Run the integrity check on the app:

sudo nextcloud.occ integrity:check-app <appname>

7. Manually update = refresh Nextcloud snap

sudo snap refresh nextcloud

The message should disappear. You may want to truncate your logs.


see How to manage Nextcloud snap with snap
see How to manage automatic updates in Nextcloud snap

1 Like
Android Nextcloud app upload errors
Error in Desktop Notifications for Nextcloud Progressive Web App instance
Nextcloud Snap server stops working after installing custom SSL certificate from GoDaddy
Let nextcloud listen on one IP address only
Cookbook and reverse proxy
Let's Encrypt Zertifikat abgelaufen
Nextcloud (Snap) 0770 Permission Denied on rclone Google Drive Mount (chown has no effect)
Unable to see added storage of 2TB hdd within System disk free space.
Photos tab groups a JST JPEG under the next month despite EXIF OffsetTimeOriginal=+09:00 — known issue?
Cannot login with correct password and no error message
Snap updated to 32.0.9snap1 and encountering internal server error, reverting does not fix.
Snap updated to 32.0.9snap1 and encountering internal server error, reverting does not fix.
Snap updated to 32.0.9snap1 and encountering internal server error, reverting does not fix.
How to change SNAP_DATA
Snap: Can't update, add, or remove apps
Snap: Can't update, add, or remove apps
temporary 2fa code generated by 2fa admin tools not accepted when client uses it
Nextcloud Snap with Collabora Online - Android problems
No Log file rotation even when set, logs excessive size crashed server
Nextcloud Snap Ai message in overwiev
On Core24 with NC31 and after a snap restore: Missing nextcloud.log
Delete spreed signaling server account on Nextcloud Snap
Using Acme/LetsEncrypt for TLS Certificate for NextCloud and for VPN on Firewall
Limiting RAM Use
How-to/FAQ WIKI
Internal server error: "no app in context"
always use HTTPS on production servers - where is the Apache VirtualHosts configuration file
Unable to log in and not able to understand the log in nextcloud/data/
How to manage automatic updates in Nextcloud snap
Nextcloud snap, welcome - missing support template
Calendar app on Android does not sync with NextCloud anymore
INVALID_HASH of Collabora_Online.AppImage
Nextcloud SNAP install suddenly satuats WAN on connection to github
MySql crashes on startup - Snap installation