Unable to log in and not able to understand the log in nextcloud/data/

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

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;

Meanwhile if you’re having automatic update issues…

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