The Basics
- Nextcloud Server version (e.g., 29.x.x):
30.0.8snap1
- Operating system and version (e.g., Ubuntu 24.04):
Ubuntu 24.04 lts (HV-Gen2)
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
Hyperv VM Gen2
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
no
Summary of the issue you are facing:
just migrated to a new VM from Ubuntu 22.04 (HV-Gen1)
with
On the old server:
- Stop nextcloud-snap
sudo snap stop nextcloud
- Create snapshot. This will create a .zip file in
/var/lib/snapd/snapshots/
. In my case its name was3_nextcloud_30.0.8snap1_xxxxx.zip
This File is relatively big (350GB) but I had no problems to transfer it to the new Server.
sudo snap save nextcloud
transfer the file to the new server
On the new server:
- Install nextcloud-snap
sudo snap install nextcloud
2a. first try: just leave as it is
2b. second try: configured all addons identical to the old setup
- Restore snapshot. Replace
<n>
with the first number of the .zip file, in my case3
.
sudo snap restore <n>
- Disable maintenance mode
sudo nextcloud.occ maintenance:mode --off
- Make sure everything is working fine
no its not.
nextcloud delivers the login page where i can enter username and password. After I hit Login, it loads the error message, that Nextcloud is in maintenance mode
Wartungsmodus
Diese Instanz der cloud.tld.de - befindet sich gerade im Wartungsmodus, was eine Weile dauern kann. Diese Seite aktualisiert sich automatisch, sobald die Nextcloud-Instanz wieder verfügbar ist.
Kontaktiere die Systemadministration, wenn diese Meldung dauerhaft oder unerwartet erscheint.
I tried to turn mm off and on and off with
nextcloud.occ maintenance:mode --off
nextcloud.occ maintenance:mode --on
nextcloud.occ maintenance:mode --off
without success.
I also compared the config.php with the “old” still working instance. there are no diferences, the IPs are corresponding to the system, where the file is.
Now I need input on how to proceed.
or should I wait a day or two because of the big amount of data?
Thanks in Advance.