Bug#1033479: closed by Thomas Goirand (Re: Bug#1033479: minissdpd: Service fails to start on boot with "Error parsing address/mask...")

2023-06-02 Thread Thomas Goirand

On 6/1/23 17:44, Facundo Gaich wrote:
On Thu, Jun 1, 2023 at 11:54 AM Debian Bug Tracking System 
mailto:ow...@bugs.debian.org>> wrote:


Hi,

This is IMO a missconfiguration, not a bug. Closing accordingly.

Cheers,

Thomas Goirand (zigo)


  Hi Thomas,

Thanks, although, isn't it still a bug if it arrived at a misconfigured 
state without user interaction?


Indeed. Please see the debconf thingy as only a helper to get a first 
configuration in. If for a reason, the system has change state, there's 
not much the package can do without user manual configuration.


Cheers,

Thomas Goirand (zigo)



Bug#1033479: closed by Thomas Goirand (Re: Bug#1033479: minissdpd: Service fails to start on boot with "Error parsing address/mask...")

2023-06-01 Thread Facundo Gaich
On Thu, Jun 1, 2023 at 11:54 AM Debian Bug Tracking System <
ow...@bugs.debian.org> wrote:

> Hi,
>
> This is IMO a missconfiguration, not a bug. Closing accordingly.
>
> Cheers,
>
> Thomas Goirand (zigo)
>

 Hi Thomas,

Thanks, although, isn't it still a bug if it arrived at a misconfigured
state without user interaction?


Bug#1033479: minissdpd: Service fails to start on boot with "Error parsing address/mask..."

2023-06-01 Thread Thomas Goirand

On 6/1/23 10:07, Jonathan Dowland wrote:

But I suggest to the maintainer (Hi Thomas!): If you're confident that
you can guess the right interface at install time, why not do that at
service start up time instead? That way it will adjust to changing
environments.


I don't think it'd be such a great idea. I prefer let the user do what 
they feel is correct.


FYI, it's also possible for interfaces being renamed from one udev 
version to the next. IMO, that's a case for filling a bug against udev, 
not minissdpd.


Cheers,

Thomas Goirand (zigo)



Bug#1033479: minissdpd: Service fails to start on boot with "Error parsing address/mask..."

2023-06-01 Thread Jonathan Dowland

I've hit something similar. In my case the error in the logs is

Mar 07 17:59:33 phobos minissdpd-systemd-wrapper[1302]: Error parsing 
address/mask (or interface name) : enp3s0
Mar 07 17:59:33 phobos minissdpd-systemd-wrapper[1302]: can't parse 
"enp3s0" as a valid address or interface name

and my /etc/default/minissdpd contained

MiniSSDPd_INTERFACE_ADDRESS="enp3s0"

Likewise, I have not edited that file myself. I guess it was populated
by the debconf template[1]

It was probably correct at the time I installed minissdpd (which I did
transitively: and as such I'm not very familiar with what it does or how
it works, since it's a dependency package of something else) and has
become incorrect later on, as I've moved enp3s0 onto a bridge interface.

My fix (the inverse of yours I guess) is to substitute 


MiniSSDPd_INTERFACE_ADDRESS="br0"

In the config file.

But I suggest to the maintainer (Hi Thomas!): If you're confident that
you can guess the right interface at install time, why not do that at
service start up time instead? That way it will adjust to changing
environments.


[1] 
https://salsa.debian.org/miniupnp-team/minissdpd/-/blob/debian-sid/debian/minissdpd.config#L45

--
  Jonathan Dowland
✎j...@debian.org
   https://jmtd.net



Bug#1033479: minissdpd: Service fails to start on boot with "Error parsing address/mask..."

2023-03-25 Thread Facundo Gaich
Package: minissdpd
Version: 1.6.0-1
Severity: important

Dear Maintainer,

The minissdpd service fails on boot with the following:

minissdpd[834]: ioctl(s, SIOCGIFFLAGS, ...): No such device
minissdpd-systemd-wrapper[834]: Error parsing address/mask (or interface name) 
: br-REDACTED
minissdpd-systemd-wrapper[834]: can't parse "br-REDACTED" as a valid interface 
name
minissdpd[834]: ioctl(s, SIOCGIFFLAGS, ...): No such device
minissdpd[834]: ioctl(s, SIOCGIFADDR, ...): Cannot assign requested address
minissdpd-systemd-wrapper[834]: Error parsing address/mask (or interface name) 
: docker0
minissdpd-systemd-wrapper[834]: can't parse "docker0" as a valid interface name
minissdpd-systemd-wrapper[834]: Error parsing address/mask (or interface name) 
: enp2s0
minissdpd-systemd-wrapper[834]: can't parse "enp2s0" as a valid interface name
minissdpd[834]: ioctl(s, SIOCGIFFLAGS, ...): No such device
minissdpd-systemd-wrapper[834]: Error parsing address/mask (or interface name) 
: vethREDACTED
minissdpd-systemd-wrapper[834]: can't parse "vethREDACTED" as a valid interface 
name
minissdpd[834]: ioctl(s, SIOCGIFFLAGS, ...): No such device
minissdpd-systemd-wrapper[834]: Error parsing address/mask (or interface name) 
: vethREDACTED
minissdpd-systemd-wrapper[834]: can't parse "vethREDACTED" as a valid interface 
name
minissdpd-systemd-wrapper[834]: Usage: /usr/sbin/minissdpd [-d] [-6] [-s 
socket] [-p pidfile] [-t TTL] [-f device] -i  [-i ] ...
minissdpd-systemd-wrapper[834]:is an interface name such as eth0.
minissdpd-systemd-wrapper[834]:   By default, socket will be open as 
/var/run/minissdpd.sock
minissdpd-systemd-wrapper[834]:   and pid written to file /var/run/minissdpd.pid
systemd[1]: minissdpd.service: Control process exited, code=exited, 
status=1/FAILURE
systemd[1]: minissdpd.service: Failed with result 'exit-code'.
systemd[1]: Failed to start minissdpd.service - keep memory of all UPnP devices 
that announced themselves.

If I try to start it manually after boot it succeeds:

systemd[1]: Starting minissdpd.service - keep memory of all UPnP devices that 
announced themselves...
minissdpd[3276]: ioctl(s, SIOCGIFFLAGS, ...): No such device
minissdpd-systemd-wrapper[3276]: Error parsing address/mask (or interface name) 
: br-REDACTED
minissdpd-systemd-wrapper[3276]: can't parse "br-REDACTED" as a valid interface 
name
minissdpd[3276]: ioctl(s, SIOCGIFFLAGS, ...): No such device
minissdpd-systemd-wrapper[3276]: Error parsing address/mask (or interface name) 
: vethREDACTED
minissdpd-systemd-wrapper[3276]: can't parse "vethREDACTED" as a valid 
interface name
minissdpd[3276]: ioctl(s, SIOCGIFFLAGS, ...): No such device
minissdpd-systemd-wrapper[3276]: Error parsing address/mask (or interface name) 
: vethREDACTED
minissdpd-systemd-wrapper[3276]: can't parse "vethREDACTED" as a valid 
interface name
systemd[1]: Started minissdpd.service - keep memory of all UPnP devices that 
announced themselves.

Note that it now worked for the docker0 and enp2s0 infterfaces, so
apparently the error on boot is because it can't find a single correct 
interface. The
bridge and veth interfaces are not configured anymore in my system, not
sure how they were added to /etc/default/minissdpd

-- System Information:
Debian Release: 12.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-7-amd64 (SMP w/6 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages minissdpd depends on:
ii  debconf [debconf-2.0]  1.5.82
ii  init-system-helpers1.65.2
ii  libc6  2.36-8
ii  libnfnetlink0  1.0.2-2
ii  lsb-base   11.6
ii  sysvinit-utils [lsb-base]  3.06-2

minissdpd recommends no packages.

minissdpd suggests no packages.

-- Configuration Files:
/etc/default/minissdpd changed [not included]

-- debconf information excluded