Re: [Vserver] Problem binding to 0.0.0.0

From: Xavier Montagutelli <xavier.montagutelli_at_unilim.fr>
Date: Thu 23 Mar 2006 - 13:50:02 GMT
Message-Id: <200603231450.02748.xavier.montagutelli@unilim.fr>

On Thursday 23 March 2006 14:43, John Lyons wrote:
> This is what we've got
>
> Linux svr26.xxxxxxx 2.6.15-1.1833_FC4.vs2.0.2.0.rc10.1 #1 Thu Mar 2
> 12:57:13 EST 2006 i686 athlon i386 GNU/Linux
>
> util-vserver-devel-0.30.210-4.fc4
> util-vserver-build-0.30.210-4.fc4
> util-vserver-lib-0.30.210-4.fc4
> util-vserver-legacy-0.30.210-4.fc4
> util-vserver-0.30.210-4.fc4
> util-vserver-core-0.30.210-4.fc4
> util-vserver-sysv-0.30.210-4.fc4
>
>
> The problem is that v_httpd which calls
> /usr/lib/util-vserver/vsysvwrapper httpd start
> is binding to 0.0.0.0:80 on the host server so no vservers can start httpd
>
> If I stop v_httpd and start apache on a vserver then httpd starts on the
> vserver as 0.0.0.0:80 and neither the host nor any other vserver on the box
> can then start apache.
>
> If I set the listen and bind directives within the vservers httpd.conf file
> to set the vservers IP address and port 80 then apache fails with the error
> below even though there are no apache process running anywhere on the host
> or other vservers and nothing is bound to port 80
> [crit] (98)Address already in use: make_sock: could not bind to port 80
>

You should set the listen adress on the host, not on the guests. Then start
httpd with the regular init script.

> Any clues on a fix, I've spent the best part of 2 hours trying to figure
> out what the problem is.
>
> Regards
>
> John
>
>
>
> _______________________________________________
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver

-- 
Xavier Montagutelli                      Tel : +33 (0)5 55 45 77 20
Service Commun Informatique              Fax : +33 (0)5 55 45 77 60
Universite de Limoges
123, avenue Albert Thomas
87060 Limoges cedex
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Thu Mar 23 13:51:20 2006
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 23 Mar 2006 - 13:51:25 GMT by hypermail 2.1.8