What type of hardware are you using: Virtual machine
What YunoHost version are you running: 12.0.11+202502031815 (unstable)
How are you able to access your server: The webadmin
SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: nope
Describe your issue
Hi,
since few weeks, I have a problem that seems relevant to Python. My Yunohost is in a Freebox VM, and when using its console I always have an Python error,always coming over my console. But when connecting through SSH I did not see anything.
Trying the Upnp function with my server, I have :
Erreur: “500”
Action: “PUT” /yunohost/api/firewall/upnp/enable
An the log you can see below.
It seems breaking my yunohost-portal-api and my nftables.
Thanks for your help!
Share relevant logs or error messages
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/moulinette/interfaces/api.py”, line 430, in process
ret = self.actionsmap.process(arguments, timeout=30, route=_route)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/moulinette/actionsmap.py”, line 579, in process
return func(**arguments)
^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/firewall.py”, line 481, in firewall_upnp
if upnp.refresh(firewall):
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/firewall.py”, line 243, in refresh
for port, info in ports.items():
^^^^^^^^^^^
AttributeError: ‘bool’ object has no attribute ‘items’