I have some dump AP setup my main router is still on V19 atm
I have a basic dump AP with ether Ksmbd or Samba4 network shearing for a usb drive
with minidlna for media shearing
these AP's are setup with DHCP to get Statically allocated Leases form my main router
the routers host name is the same as in the static lease
V19 works fine but V21 & Master branch has this problem
dnsmasq & odhcpd are disabled
wsdd2 is not showing in the logs at all
wsdd2 seems to stop or not start
I can manually start or restart the service & it works
it will stop at some point I'm thinking a new lease maybe stopping it
anyone else having this problem or know of a change between V19 & V21
I'm starting to think it's due to being attached to br-lan
it makes sense it's showed up with the change to DAS
it's like the interface up / down signals of the bridge
are different from a physical port or are wrong
I would imagine a successful dhcp transaction should restart the service but it's not
seem the interface change is detected & the service is restarted
both dhcp and wsddd2 start at the same time
but if the new ip has not been sorted it fails to have an ip to bind wsdd2 to
Thanks for posting these extremely helpful workarounds. I just realized restarting wsdd2 makes the computer reappear in the network overview on my installation and came here that way.
I am just wondering how to debug this a little bit.
If netinterface/dhcp changes (ipv6? Since ipv4 is static on most user's br-lan!) are triggering this:
Previously, on an OpenWRT snapshot from last year, I had samba+wsdd2 ran from a docker container: ServerContainers/samba. Its wsdd2 is from the same source as OpenWRT's one.
This one - including wsdd2 - was running flawlessly for months worth of uptime.
Since this container was started in host networking mode, how was it immune to what the native OpenWRT's one is not?
In my case the situation is appeared after new interface up, doesn' t matter which one, even ppp.
It is connected with that wsdd2 binary restarts itself after appearing new interface on the system for checking any changes and reloading settings/bindings.
I a patch that allow to behavior in this manner only if up interface which wsdd2 is currently binded to, for example, if it' s binded to lan and the interface is restarted via ifdown lan && ifup lan, then wsdd2 is restarted and reloads interface configuration and rebinded to lan again; if it is binded to lan, but wan is restarted, there is nothing.
But if interface is specified via -i switch.
If there is no an interface, the same way wsdd2 as was.
Seems like it's not fixed.
Currently I use it on my new router with kernel 6.1 with default settings.
After a few days the shares disappear from network shares on Windows PCs.
WSDD2 has to be restarted manually in order for the shares to appear again in Network.