Restore app on other machine -> YunohostValidationError "domain_name_unknown"

Yes, that’s the solution for the domain problem…

The “permission_already_exist” problem still exists. I look around and found similar problems here:

I also tried to remove “pyinventory.main” with:

sudo yunohost user permission remove pyinventory.main

This doesn’t work, too and sudo yunohost user permission list still list “pyinventory.main”

A work-a-round from: No migration ? · Issue #137 · YunoHost-Apps/vaultwarden_ynh · GitHub doesn’t work, too:

jens@rpi:~ $ sudo yunohost tools shell
Warning: The ldap interface is available in this context
Warning: You don't have IPython installed, consider installing it as it is way better than the standard shell.
Warning: Falling back on the standard shell.
Python 3.7.3 (default, Jan 22 2021, 20:04:44) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> 
KeyboardInterrupt
>>> from yunohost.permission import permission_delete
>>> permission_delete("pyinventory.main")
Traceback (most recent call last):
  File "/usr/lib/moulinette/yunohost/tools.py", line 743, in tools_shell
    from IPython import embed
ModuleNotFoundError: No module named 'IPython'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/usr/lib/moulinette/yunohost/log.py", line 380, in func_wrapper
    result = func(*args, **kwargs)
  File "/usr/lib/moulinette/yunohost/permission.py", line 615, in permission_delete
    raise YunohostValidationError("permission_cannot_remove_main")
yunohost.utils.error.YunohostValidationError: Removing a main permission is not allowed
>>> 

EDIT: I run system upgrade… e.g.: Yunohost v4.2.7 → 4.2.8.3 … The i will retry the remove commands…