Bug#1086692: gerbera: does not start without a global unicast IPv4 address
Package: gerbera
Version: 2.2.0+dfsg-1+b2
Severity: normal
Tags: ipv6
Dear Maintainer,
Gerbera fails to start without a global unicast IPv4 address on the
relevant interface.
I think it should be expected that a UPnP media application would:
a) provide parity of capability with IPv6 (i.e. a global unicast IPv6
address should be sufficient if a global unicast address is required.)
b) operate as best as possible in a zeroconf environment using link
local addresses, (i.e. not require a global unicast address.)
Attempt #1:
[ IPv4: link local address ]
[ IPv6: global unicast address ]
[ Result: failure ]
2024-11-03 21:27:39 info: Gerbera UPnP Server 2.2.0 - https://gerbera.io/
2024-11-03 21:27:39 info: Copyright 2016-2024 Gerbera Contributors.
2024-11-03 21:27:39 info: Gerbera is free software, covered by the GNU General Public License version 2
2024-11-03 21:27:39 info: Loading configuration from: /etc/gerbera/config.xml
2024-11-03 21:27:39 info: Parsing configuration...
2024-11-03 21:27:39 info: Configuration load succeeded.
2024-11-03 21:27:39 info: Validating configuration...
2024-11-03 21:27:39 info: Configuration check succeeded.
2024-11-03 21:27:39 info: Loading 0 configuration items from database
2024-11-03 21:27:40 info: Initialising UPnP with interface: eth0, port: <unset>
2024-11-03 21:27:40 info: IPv4: Server bound to: :0
2024-11-03 21:27:40 info: IPv6: Server bound to: fe80:db8::1:49152
2024-11-03 21:27:40 info: IPv6 ULA/GLA: Server bound to: 2001:db8::1:49153
2024-11-03 21:27:40 error: run: UpnpRegisterRootDevice2 failed
2024-11-03 21:27:40 error: Failed to start LibUPnP: UPNP_E_INVALID_URL error code: -108
2024-11-03 21:27:40 error: UpnpUnRegisterClient failed (-100)
2024-11-03 21:27:40 error: UpnpUnRegisterRootDevice failed (-100)
Attempt #2:
[ IPv4: link local address ]
[ IPv6: link local address ]
[ Result: failure ]
2024-11-03 21:30:17 info: Gerbera UPnP Server 2.2.0 - https://gerbera.io/
2024-11-03 21:30:17 info: Copyright 2016-2024 Gerbera Contributors.
2024-11-03 21:30:17 info: Gerbera is free software, covered by the GNU General Public License version 2
2024-11-03 21:30:17 info: Loading configuration from: /etc/gerbera/config.xml
2024-11-03 21:30:17 info: Parsing configuration...
2024-11-03 21:30:17 info: Configuration load succeeded.
2024-11-03 21:30:17 info: Validating configuration...
2024-11-03 21:30:17 info: Configuration check succeeded.
2024-11-03 21:30:17 info: Loading 0 configuration items from database
2024-11-03 21:30:18 info: Initialising UPnP with interface: eth0, port: <unset>
2024-11-03 21:30:18 warning: UPnP Init eth0:0 failed: UPNP_E_OUTOF_SOCKET (-205). Retrying in 1 seconds...
2024-11-03 21:30:19 warning: UPnP Init eth0:0 failed: UPNP_E_OUTOF_SOCKET (-205). Retrying in 2 seconds...
2024-11-03 21:30:21 warning: UPnP Init eth0:0 failed: UPNP_E_OUTOF_SOCKET (-205). Retrying in 3 seconds...
2024-11-03 21:30:24 warning: UPnP Init eth0:0 failed: UPNP_E_OUTOF_SOCKET (-205). Retrying in 4 seconds...
2024-11-03 21:30:28 error: run: UpnpInit failed with eth0 0
2024-11-03 21:30:28 error: Failed to start LibUPnP: UPNP_E_OUTOF_SOCKET error code: -205
2024-11-03 21:30:28 error: UpnpUnRegisterClient failed (-116)
2024-11-03 21:30:28 error: UpnpUnRegisterRootDevice failed (-116)
2024-11-03 21:30:28 error: UpnpFinish failed (-116)
Attempt #3:
[ IPv4: link local address ]
[ IPv6: link local address ]
[ Result: hang ]
2024-11-03 21:30:33 info: Gerbera UPnP Server 2.2.0 - https://gerbera.io/
2024-11-03 21:30:33 info: Copyright 2016-2024 Gerbera Contributors.
2024-11-03 21:30:33 info: Gerbera is free software, covered by the GNU General Public License version 2
2024-11-03 21:30:33 info: Loading configuration from: /etc/gerbera/config.xml
2024-11-03 21:30:33 info: Parsing configuration...
2024-11-03 21:30:33 info: Configuration load succeeded.
2024-11-03 21:30:33 info: Validating configuration...
2024-11-03 21:30:33 info: Configuration check succeeded.
Attempt #4:
[ IPv4: global unicast address ]
[ IPv6: link local address ]
[ Result: success ]
2024-11-03 21:30:00 info: Gerbera UPnP Server 2.2.0 - https://gerbera.io/
2024-11-03 21:30:00 info: Copyright 2016-2024 Gerbera Contributors.
2024-11-03 21:30:00 info: Gerbera is free software, covered by the GNU General Public License version 2
2024-11-03 21:30:00 info: Loading configuration from: /etc/gerbera/config.xml
2024-11-03 21:30:00 info: Parsing configuration...
2024-11-03 21:30:00 info: Configuration load succeeded.
2024-11-03 21:30:00 info: Validating configuration...
2024-11-03 21:30:00 info: Configuration check succeeded.
2024-11-03 21:30:00 info: Loading 0 configuration items from database
2024-11-03 21:30:00 info: Initialising UPnP with interface: eth0, port: <unset>
2024-11-03 21:30:00 info: IPv4: Server bound to: 172.31.254.1:49152
2024-11-03 21:30:00 info: IPv6: Server bound to: fe80::1:49152
2024-11-03 21:30:00 info: IPv6 ULA/GLA: Server bound to: :0
2024-11-03 21:30:00 info: The Web UI can be reached by following this link: http://172.31.254.1:49152
Thanks!
-- System Information:
Distributor ID: Devuan
Description: Devuan GNU/Linux 6 (excalibur/ceres)
Release: 6
Codename: excalibur ceres
Architecture: x86_64
Kernel: Linux 6.11.4-amd64 (SMP w/3 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: runit (via /run/runit.stopit)
Versions of packages gerbera depends on:
ii adduser 3.137
ii fonts-font-awesome 5.0.10+really4.7.0~dfsg-4.1
ii fonts-lato 2.015-1
ii init-system-helpers 1.67devuan1
ii libavcodec61 7:7.1-3
ii libavformat61 7:7.1-3
ii libavutil59 7:7.1-3
ii libc6 2.40-3
ii libcurl3t64-gnutls 8.10.1-2
ii libduktape207 2.7.0-2+b2
ii libebml5 1.4.5-1+b1
ii libexif12 0.6.24-1+b2
ii libexiv2-28 0.28.3+dfsg-2
ii libffmpegthumbnailer4v5 2.2.3-2
ii libfmt9 9.1.0+ds1-2
ii libgcc-s1 14.2.0-8
ii libixml11t64 1:1.14.19-2+b1
ii libjs-bootstrap4 4.6.1+dfsg1-4
ii libjs-jquery 3.6.1+dfsg+~3.5.14-1
ii libjs-jquery-ui 1.13.2+dfsg-1
ii libjs-popper.js 1.16.1+ds-6
ii libjs-prototype 1.7.3-1
ii libmagic1t64 1:5.45-3+b1
ii libmariadb3 1:11.4.3-1
ii libmatroska7 1.7.1-1+b2
ii libpugixml1v5 1.14-2
ii libspdlog1.12 [libspdlog1.12-fmt9] 1:1.12.0+ds-2+b2
ii libsqlite3-0 3.46.1-1
ii libstdc++6 14.2.0-8
ii libtag1v5 1.13.1-1+b2
ii libupnp17t64 1:1.14.19-2+b1
ii libuuid1 2.40.2-9devuan1
ii node-js-cookie 3.0.1+~3.0.0-3
gerbera recommends no packages.
Versions of packages gerbera suggests:
pn firefox-esr | www-browser <none>
pn gerbera-doc <none>
-- Configuration Files:
--- /etc/gerbera/config.xml.orig 2024-11-03 21:58:35.088000000 +0000
+++ /etc/gerbera/config.xml 2024-11-03 13:25:50.896000000 +0000
@@ -10,6 +10,7 @@
<account user="gerbera" password="gerbera"/>
</accounts>
</ui>
+ <interface>eth0</interface>
<name>gerbera</name>
<udn/>
<home>/var/lib/gerbera</home>
-- no debconf information
Reply to: