What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.10
How are you able to access your server: SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: No! It is a fresh install and I am trying to restore from a backup after upgrade failure
Describe your issue
Backup restore fails with backup file across a migration. I Backup’d a yunohost running on Debian 11. Tried to upgrade and had an unusable system through the WebUI. So I reinstalled to Debian 12, and am trying to restore my backups.
Even if I only try and restore the System files first, I fail due to permissions errors in ldap for apps that aren’t even installed yet. I am trying to delete those entries in ldap, but don’t know how because ldap does not seem to recognize my admin user’s password.
Is there another user and password I should be using to delete ldap entries with ldapdelete? If not, what credentials should I be using with my admin user? The password it uses to access the web interface or for ssh does not work. I am at a loss here.
— errors from cli execution of backup command
# yunohost backup restore 20250111-055211 --apps
Info: Preparing archive for restoration…
Info: Restoring agendav…
Error: Could not restore agendav: Something unexpected went wrong:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/yunohost/backup.py”, line 1433, in _restore_app
permission_create(
File “/usr/lib/python3/dist-packages/yunohost/log.py”, line 486, in func_wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/permission.py”, line 404, in permission_create
raise YunohostValidationError(“permission_already_exist”, permission=permission)
yunohost.utils.error.YunohostValidationError: Permission ‘agendav.main’ already exists
Info: The operation ‘Restore ‘agendav’ from a backup archive’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20250112-225657-backup_restore_app-agendav’ to get help
Info: Restoring baikal…
Error: Could not restore baikal: Something unexpected went wrong:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/yunohost/backup.py”, line 1449, in _restore_app
permission_sync_to_user()
File “/usr/lib/python3/dist-packages/yunohost/permission.py”, line 693, in permission_sync_to_user
app_ssowatconf()
File “/usr/lib/python3/dist-packages/yunohost/app.py”, line 1702, in app_ssowatconf
app_settings = _get_app_settings(app_id)
^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/app.py”, line 2066, in _get_app_settings
_assert_is_installed(app)
File “/usr/lib/python3/dist-packages/yunohost/app.py”, line 2759, in _assert_is_installed
raise YunohostValidationError(
yunohost.utils.error.YunohostValidationError: Could not find calibreweb in the list of installed apps:
- baikal
Info: The operation ‘Restore ‘baikal’ from a backup archive’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20250112-225657-backup_restore_app-baikal’ to get help
Info: Restoring calibreweb…
Error: Could not restore calibreweb: Something unexpected went wrong:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/yunohost/backup.py”, line 1433, in _restore_app
permission_create(
File “/usr/lib/python3/dist-packages/yunohost/log.py”, line 486, in func_wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/permission.py”, line 404, in permission_create
raise YunohostValidationError(“permission_already_exist”, permission=permission)
yunohost.utils.error.YunohostValidationError: Permission ‘calibreweb.kobo’ already exists
Info: The operation ‘Restore ‘calibreweb’ from a backup archive’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20250112-225658-backup_restore_app-calibreweb’ to get help
Info: Restoring conduit…
Error: Could not restore conduit: Something unexpected went wrong:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/yunohost/backup.py”, line 1433, in _restore_app
permission_create(
File “/usr/lib/python3/dist-packages/yunohost/log.py”, line 486, in func_wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/permission.py”, line 404, in permission_create
raise YunohostValidationError(“permission_already_exist”, permission=permission)
yunohost.utils.error.YunohostValidationError: Permission ‘conduit.main’ already exists
Info: The operation ‘Restore ‘conduit’ from a backup archive’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20250112-225658-backup_restore_app-conduit’ to get help
Info: Restoring coturn…
Error: Could not restore coturn: Something unexpected went wrong:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/yunohost/backup.py”, line 1433, in _restore_app
permission_create(
File “/usr/lib/python3/dist-packages/yunohost/log.py”, line 486, in func_wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/permission.py”, line 404, in permission_create
raise YunohostValidationError(“permission_already_exist”, permission=permission)
yunohost.utils.error.YunohostValidationError: Permission ‘coturn.main’ already exists
Info: The operation ‘Restore ‘coturn’ from a backup archive’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20250112-225658-backup_restore_app-coturn’ to get help
Info: Restoring send…
Error: Could not restore send: Something unexpected went wrong:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/yunohost/backup.py”, line 1433, in _restore_app
permission_create(
File “/usr/lib/python3/dist-packages/yunohost/log.py”, line 486, in func_wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/permission.py”, line 404, in permission_create
raise YunohostValidationError(“permission_already_exist”, permission=permission)
yunohost.utils.error.YunohostValidationError: Permission ‘send.api’ already exists
Info: The operation ‘Restore ‘send’ from a backup archive’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20250112-225658-backup_restore_app-send’ to get help
Info: Restoring unattended_upgrades…
Error: Could not restore unattended_upgrades: Something unexpected went wrong:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/yunohost/backup.py”, line 1433, in _restore_app
permission_create(
File “/usr/lib/python3/dist-packages/yunohost/log.py”, line 486, in func_wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/permission.py”, line 404, in permission_create
raise YunohostValidationError(“permission_already_exist”, permission=permission)
yunohost.utils.error.YunohostValidationError: Permission ‘unattended_upgrades.main’ already exists
Info: The operation ‘Restore ‘unattended_upgrades’ from a backup archive’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20250112-225658-backup_restore_app-unattended_upgrades’ to get help
Info: Restoring zerotier…
Error: Could not restore zerotier: Something unexpected went wrong:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/yunohost/backup.py”, line 1433, in _restore_app
permission_create(
File “/usr/lib/python3/dist-packages/yunohost/log.py”, line 486, in func_wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/permission.py”, line 404, in permission_create
raise YunohostValidationError(“permission_already_exist”, permission=permission)
yunohost.utils.error.YunohostValidationError: Permission ‘zerotier.main’ already exists
Info: The operation ‘Restore ‘zerotier’ from a backup archive’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20250112-225658-backup_restore_app-zerotier’ to get help
Info: Restoring ztncui…
Error: Could not restore ztncui: Something unexpected went wrong:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/yunohost/backup.py”, line 1433, in _restore_app
permission_create(
File “/usr/lib/python3/dist-packages/yunohost/log.py”, line 486, in func_wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/permission.py”, line 404, in permission_create
raise YunohostValidationError(“permission_already_exist”, permission=permission)
yunohost.utils.error.YunohostValidationError: Permission ‘ztncui.main’ already exists
Info: The operation ‘Restore ‘ztncui’ from a backup archive’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20250112-225658-backup_restore_app-ztncui’ to get help
Error: Could not find calibreweb in the list of installed apps:
root@x-sm:/home/aia# yunohost backup restore 20250111-055211 --system
Warning: YunoHost is already installed
Do you really want to restore an already installed system? [y/N]: N
Error: Could not restore system
— error from ldapdelete
ldapdelete -x -D “cn=,dc=yunohost,dc=org” -w ‘map4$&ynh.xs.N^0’ -f dn-list.txt
ldap_bind: Invalid credentials (49)
'<admin>' was originally the username for my admin user.
Thanks for your time and attention.
Share relevant logs or error messages
Logs from webui failure to restore apps: https://paste.yunohost.org/raw/ofumozicey