Problems installing recognize dependencies

Hey @GeirS, welcome to the Nextcloud community and thanks for supporting Nextcloud snap :handshake:

Sorry to hear you’re having issues with your Nextcloud snap automatic update. The following steps will get you up and running again… but you’ll need to discover some log reference to resolve the cause of the failed automatic update.

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 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

see How to backup, restore and migrate Nextcloud snap

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:

  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>
  3. 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

see How to manage Nextcloud snap with snap