Migration from 11 to 12 failed -yunohost api not working

What type of hardware are you using: Raspberry Pi 3, 4+
What YunoHost version are you running: 11.3
How are you able to access your server: SSH

Describe your issue

I started the migration from webadmin, after a while the browser could not connect to the server, so I connected via ssh and I restarted the migration which took some time, but it crashed.
Every command using yunohost crashes with same error.

Share relevant logs or error messages

sudo yunohost tools migrations run
Traceback (most recent call last):
File “/usr/lib/python3.11/logging/config.py”, line 389, in resolve
found = getattr(found, frag)
^^^^^^^^^^^^^^^^^^^^
AttributeError: module ‘moulinette.interfaces’ has no attribute ‘api’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/lib/python3.11/logging/config.py”, line 391, in resolve
self.importer(used)
File “/usr/lib/python3/dist-packages/moulinette/interfaces/api.py”, line 16, in
from bottle import redirect, request, response, Bottle, HTTPResponse, FileUpload
File “/usr/lib/python3/dist-packages/bottle.py”, line 44, in
from inspect import getargspec
ImportError: cannot import name ‘getargspec’ from ‘inspect’ (/usr/lib/python3.11/inspect.py)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/usr/lib/python3.11/logging/config.py”, line 562, in configure
handler = self.configure_handler(handlers[name])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/logging/config.py”, line 724, in configure_handler
klass = self.resolve(cname)
^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/logging/config.py”, line 396, in resolve
raise v from e
ValueError: Cannot resolve ‘moulinette.interfaces.api.APIQueueHandler’: cannot import name ‘getargspec’ from ‘inspect’ (/usr/lib/python3.11/inspect.py)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/usr/bin/yunohost”, line 77, in
yunohost.cli(
File “/usr/lib/python3/dist-packages/yunohost/init.py”, line 35, in cli
init_logging(interface=“cli”, debug=debug, quiet=quiet)
File “/usr/lib/python3/dist-packages/yunohost/init.py”, line 194, in init_logging
configure_logging(logging_configuration)
File “/usr/lib/python3/dist-packages/moulinette/utils/log.py”, line 66, in configure_logging
dictConfig(logging_config)
File “/usr/lib/python3.11/logging/config.py”, line 812, in dictConfig
dictConfigClass(config).configure()
File “/usr/lib/python3.11/logging/config.py”, line 569, in configure
raise ValueError('Unable to configure handler ’
ValueError: Unable to configure handler ‘api’

Similar issue / solution discussed in 🚀 YunoHost 12.0 (Bookworm) release / Sortie de YunoHost 12.0 (Bookworm) - #170 by Aleks

Thanks for your answer - my server runs and answers via web on the local IP, but the dynDNS is not working properly.
Diagnose says:
Einige DNS-Einträge für die Domäne lutzhoh.nohost.me fehlen oder sind nicht korrekt (Kategorie basic)

Die DNS-Konfiguration dieser Domäne sollte automatisch von YunoHost verwaltet werden. Andernfalls können Sie mittels yunohost dyndns update --force ein Update erzwingen.
Der folgende DNS Eintrag scheint nicht den empfohlenen Einstellungen zu entsprechen:
Typ: A
Name: @
Aktueller Wert: 87.176.92.36
Erwarteter Wert: 87.161.120.177
Der folgende DNS Eintrag scheint nicht den empfohlenen Einstellungen zu entsprechen:
Typ: AAAA
Name: @
Aktueller Wert: 2003:d5:6f14:dd00:14cf:3277:35df:98c0
Erwarteter Wert: 2003:d5:6f3d:9500:3e65:f34e:e651:4e3c

yunohost dyndns update --force
Error: Failed to resolve IPv4/IPv6 for [‘ns0.yunohost.org’, ‘ns1.yunohost.org’] ?

I can ping -4 ns0.yunohost.org and ns1.yunohost.org

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