Package: wwwoffle Version: 2.9d-3 I'm forwarding part of my conversation with wwwoffle author. The patch included below (I can attach it, if needed) fixes the problem.
> >> > after upgrading to lenny, I found out that wwwoffle sometimes does > >> > not start at boot. It reports the error: > >> > > >> > Apr 7 08:36:55 localhost wwwoffled[3271]: Unknown host '0.0.0.0' for > >> > server > >> > [Address family for hostname not supported]. > >> > Apr 7 08:36:55 localhost wwwoffled[3271]: Cannot create HTTP IPv4 server > >> > socket. This was ocasionally happening when my eth0 interface was configured as 'allow-hotplug' and always when i started using ifplugd and removing the allow-hotplug part. > > I have looked onto that a bit more deeply and it seems that this message > > is generated when eth0 interface is not configured, although ipv4 > > support is loaded and other services (e.g. sshd) are listening at > > wildcard interface. On 29.04.09 19:22, Andrew M. Bishop wrote: > I don't think that this is going to help here because the error is > that the address family is not supported. The hostname that you are > using is the wildcard IPv4 address already so no name lookup should be > needed. > > I have worked out a patch that might do something (if your WWWOFFLE is > compiled for IPv6 which I think that it must be). Yes, it's compiled with ipv6 support and Yes, this patch worked, thank you. I see similar piece of code in sockets4.c. Furthermore, when I blacklisted ipv6 kernel module (I don't have ipv6 connectivity), it worked even without this patch. However I think that this patch should be included into wwwoffle, for cases like mine. > -------------------- sockets6.c patch -------------------- > --- sockets6.c 2007/06/10 08:37:39 1.20 > +++ sockets6.c 2009/04/29 18:17:20 > @@ -171,7 +171,10 @@ > > sprintf(portstr,"%d",port&0xffff); > > - server=getaddrinfo_or_timeout(hoststr,portstr,AI_PASSIVE); > + if(!strcmp(hoststr,"0.0.0.0") || !strcmp(hoststr,"::")) > + server=getaddrinfo_or_timeout(NULL,portstr,AI_PASSIVE); > + else > + server=getaddrinfo_or_timeout(hoststr,portstr,AI_PASSIVE); > > if(!server) > { > -------------------- sockets6.c patch -------------------- > > If the specified address is the wildcard address then it will try > using a NULL hostname which is guaranteed to bypass any lookups. -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. Spam is for losers who can't get business any other way. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org