[00:47:10]
<Paprika> I assume YunoHost does not update the api_key for Radarr/Sonarr if you reset the key in settings for them, right? Had an issue where I couldn't use their API due to error 401 and realized it might be an API_KEY mismatch, and it was indeed.
[06:22:01]
<tituspijean> Paprika: correct, this is not magically auto-updated. Did you encounter an issue because you either upgraded them afterwards and the old API keys was applied again? Or are you using Bazarr where I added a key retrieval function upon its installation?
[06:41:58]
<Thomas[m]> > <@botagiuks:tiesiog.lt> I assume YunoHost does not update the api_key for Radarr/Sonarr if you reset the key in settings for them, right? Had an issue where I couldn't use their API due to error 401 and realized it might be an API_KEY mismatch, and it was indeed.
Indeed, you have to also update the api_key by cli with something like yunohost app settings set xxx
[17:42:14]
<morkr> Hello,
I wanted to migrate from sd-card (ynh 11) to an ssd and ynh 12. According to https://forum.yunohost.org/t/question-restore-from-different-version-backup/35598/2 this should be possible all at once.
I flashed the image (ynh 12) to the ssd via Balena Etcher, copied my backup over, booted, everything worked as expected. I login via ssh as root, run `yunohost backup restore 20250312-140042`. Afterwards the system is installed, old users are present etc, Version is 12 as expected, but none of my apps got restored.
In the initial restore the error at the end was:
```
Info: Running migration 0028_delete_legacy_xmpp_permission…
Info: Creating a backup of LDAP database and apps settings prior to the actual migration.
Info: The operation 'Delete permission 'xmpp'' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20250312-164300-permission_delete-xmpp' to get help
Warning: Could not migrate… trying to roll back the system.
Info: System rolled back.
Error: Migration 0028_delete_legacy_xmpp_permission did not complete, aborting. Error: Could not find nextcloud in the list of installed apps:
*
Error: Could not find nextcloud in the list of installed apps:
*
```
The following trials to restore only apps both via GUI (as old/new admin acoount) and via ssh as root aborted as well with errors like this: https://paste.yunohost.org/raw/yaluvaruvu
It complains about already present permissions, basically. And that Nextclopud is not in the list of installed apps ('course not).
Any ideas how I can solve that are greatly appreciated
[17:45:57]
<morkr> I already tried:
- updated the system succesfully
- tried to remove permissions as recommended here: https://forum.yunohost.org/t/how-to-manually-remove-permission-from-system/32104/2 : got error as follows: https://paste.yunohost.org/raw/vamihuzudi
[17:46:10]
<Aleks (he/him/il/lui)> hmm so what state is your server in right now ? in terms of currently installed apps ?
[17:46:26]
<morkr> no installed apps
[17:49:31]
<Aleks (he/him/il/lui)> mokay so not sure what's all the business with the permission but not the first time i see this and 12.1 should prevent that kind of stuff, but anyway there's this more "low level" way of removing permissions which should be helpful :
`sudo yunohost tools shell -c 'ldap.remove(f"cn=syncthing.main,ou=permission")'` ... here for syncthing.main, but it looks like you may have several of these in the ldap DB, which you may be able to list using `slapcat | grep ou=permission`
[17:50:00]
<morkr> thanks :-) Will try
[17:51:10]
<morkr> I have permissions for all my previously installed apps, it seems, according to yunohost user permission list
[17:54:05]
<morkr> seems to take a while. Now I have problems connecting via ssh. Have to figure that out first
[17:55:15]
<Aleks (he/him/il/lui)> uuuuuh
[17:55:33]
<Aleks (he/him/il/lui)> well don't delete everything listed, there are some special perms such as ssh.main / sftp.main for example
[17:56:05]
<Aleks (he/him/il/lui)> do you happen to have a lot of users ?
[18:04:29]
<morkr> a reboot did help with the ssh access.
syncthin.main permision was apparently already gone (?) Error `Error: error during LDAP delete operation with: rdn='cn=syncthing.main,ou=permission' and exception {'msgtype': 107, 'msgid': 3, 'result': 32, 'desc': 'No such object', 'ctrls': [], 'matched': 'ou=permission,dc=yunohost,dc=org'}`
Doing it with grafan.main worked.
deleting others that I know I installed myself now. I already guessed that I shouldn't touch the ssh, mail etc stuf
[18:04:37]
<morkr> I have only four users
[18:09:11]
<morkr> I left in 2 permissions of my apps and will try to restore piece by piece. Starting with lufi, whose permission I removed.
[18:10:19]
<morkr> ok, that got me this
```
$ sudo yunohost backup restore 20250312-140042 --apps lufi
Info: Preparing archive for restoration…
Info: Restoring lufi…
Error: Could not restore lufi: 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 nextcloud in the list of installed apps:
* lufi
Info: The operation 'Restore 'lufi' from a backup archive' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20250312-180844-backup_restore_app-lufi' to get help
Error: Could not find nextcloud in the list of installed apps:
*
```
[18:10:46]
<Aleks (he/him/il/lui)> sounds like nextcloud perm is still somewhere in there
[18:11:11]
<morkr> it is
[18:11:24]
<morkr> will remove next. was one I left in
[18:15:51]
<morkr> interestingly, the lufi permission is back after the failed restore. Removed it again.
Now the lufi restore seems to work (provisioning apt)
[18:16:16]
<morkr> Can I safely remove the xmpp.main perm? didn't use it
[18:17:27]
<Aleks (he/him/il/lui)> hmmm i guess you can try yes
[18:18:32]
<morkr> For documentation purposes: nextcloud was the only app that had .api permision set. Others had .main or .admin
[18:18:55]
<morkr> I wish I had removed nc perm first to see if only that was the culprit
[18:21:48]
<morkr> lufi restore failed again, but at least differently ;-): https://paste.yunohost.org/raw/utavujepay
[18:26:20]
<morkr> I will be away for a bit now. If you have any more suggestions what I could try, I am glad to test them later.
Otherwise I will go back to the sd card for now and try again later maybe restoring on ynh 11 and updateing afterwards or so.