Same error here …
I did the following: via web admin:
- Diagnosis
- Firewall >>> uPnP enable
- Returned error as this

Error: "500"
Action: "PUT" /yunohost/api/firewall/upnp/enable
Error message:
Could not open port via UPnP
While processing the action the server said:
Firewall reloaded
Port 1900 is already closed for IPv4 connections
Port 1900 is already closed for IPv6 connections
Firewall reloaded
- Went to terminal access via ssh and gave following commands:
yunohost firewall allow -4 Both port 1900
yunohost firewall upnp enable
Returned this:
Warning: Port 1900 is already opened for IPv6 connections
Success! Firewall reloaded
Warning: Port 1900 is already closed for IPv4 connections
Success! Firewall reloaded
Error: Could not open port via UPnP
I then tried this command:
yunohost firewall allow -4 Both --no-upnp 1900
Warning: Port 1900 is already opened for IPv4 connections
Warning: Port 1900 is already closed for IPv6 connections
Success! Firewall reloaded
opened_ports:
- 22
- 25
- 53
- 80
- 194
- 443
- 587
- 993
- 1606
- 1900
- 5222
- 5269
- 5353
After all that I typed yunohost firewall upnp enable and it returned:
Success! Firewall reloaded
Warning: Port 1900 is already closed for IPv4 connections
Warning: Port 1900 is already closed for IPv6 connections
Success! Firewall reloaded
Error: Could not open port via UPnP
After that I gave up …