Can't restore nextcloud backup due to new domain name?

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.6
What app is this about: Nextcloud

Describe your issue

I’m migrating servers. So far, everything works smoothly. However, I’ve been running into a couple of problems with nextcloud.

On my old machine, I used rsync-ssh to transfer the 400GB of data on nextcloud to my new machine.
On the old machine, I did a nextcloud-backup via the web-admin interface without the data as decribed here: Include or exclude files | Yunohost Documentation
On the old machine, I used rsync-ssh to transfer the backups to the /yunohost.backup/archives/ directory on the new machine.

On the new machine, I had already installed nextcloud, but then I couldn’t restore the backup. So I uninstalled nextcloud and tried to restore the backup.

That operation failed.

Looking at the logs, that seems to be at least party due to using a new domain name on the new machine.
It’s true, I’ve been using a new domain name - but what do I do now?

Share relevant logs or error messages

https://paste.yunohost.org/raw/vakemamiba

But there’s more to this, copy-pasting from the web-admin log:

Konnte nextcloud nicht wiederherstellen: Ein unerwarteter Fehler ist aufgetreten
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/yunohost/backup.py", line 1436, in _restore_app
permission_create(
File "/usr/lib/python3/dist-packages/yunohost/log.py", line 480, in func_wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/yunohost/permission.py", line 450, in permission_create
permission_url(
File "/usr/lib/python3/dist-packages/yunohost/log.py", line 480, in func_wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/yunohost/permission.py", line 526, in permission_url
url = _validate_and_sanitize_permission_url(url, app_main_path, app)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/yunohost/permission.py", line 892, in _validate_and_sanitize_permission_url
_assert_domain_exists(domain_with_no_regex)
File "/usr/lib/python3/dist-packages/yunohost/domain.py", line 220, in _assert_domain_exists
raise YunohostValidationError("domain_unknown", domain=domain)

Have you tried installing Nextcloud cleanly on your server with the new domain name, then making a backup of your newly installed Nextcloud, then deleting it, after that, try restoring your 400GB backup?

Just add the old domain to the new machine, restore nextcloud, change url, remove the old domain

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.