Stuck on "Nextcloud will be updated to version..." page

Nextcloud was installed with a fresh installation of ubuntu using snaps. Every time snap automatically updates Nextcloud I get taken to the page saying “Nextcloud will be updated to version…”. I can click the “Start update” button, then it says “The update was successful. Redirecting you to Nextcloud in 3 seconds.” Then it backs me back to the “Nextcloud will be updated to version…” page in an endless loop.

In order to continue using Nextcloud I’ve had to revert back to the previous version.
sudo snap revert nextcloud --revision 32537

Everyone few days snap upgrades to a new version and I can’t use Nextcloud until I revert back again.

I also tried updating from the command line. But I’m not sure this is correct.

sudo nextcloud.occ upgrade
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Turned on maintenance mode
Updating database schema
Updated database
Starting code integrity check...
Finished code integrity check
Update successful
Turned off maintenance mode
Resetting log level

Nextcloud version (eg, 20.0.5): 24.0.9
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04.1

The snap thing really leaves me unsure how to troubleshoot this or where to find appropriate log files. What I can see says the upgrade was successful in every case, but I just can’t get past the “Nextcloud will be updated to version…” page.