Re: [Resin-interest] Resin 3.1.1 httpd is failing to bind to "*" - solved (for now)

2007-06-07 Thread Gary Zhu

>  the application is to be used in an
> appliance, which is just plugged into a network served by a
> DHCP server and expected to work.
>

Sounds like an interesting project, with Resin.

___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Resin 3.1.1 httpd is failing to bind to "*"

2007-06-07 Thread Andy Duplain
Sounds to me like you need to have your DHCP Server reserve that IP address
for "box".  That way everyone knows what IP address it will be assigned and
will make everything easier.  This is simply done by associating the MAC
address of "box" with the IP address...

Andy

On Wed, Jun 06, 2007 at 01:41:30PM -0400, Sam wrote:
> > Date: Sat, May 26, 2007 at 11:26:24AM +
> > Subject: [Resin-interest] Resin 3.1.1 httpd is failing to bind to "*"
> >
> > Hi,
> > 
> > I'm trying out Resin 3.1.1 (Open Source) on a Damn Small Linux system
> > (DSL 3.3, with default hostname "box") configured as a DHCP client.
> > When my /etc/hosts file contains the line
> > 
> > 192.168.0.15 box
> > 
> > (where 192.168.0.15 is the address handed out by the DHCP server),
> > everything works as expected (in resin.conf, I have  > port="80"/>). However, if I comment out that line in /etc/hosts [so
> > that gethostbymame() or InetAddress.getLocalHost() would fail], Resin
> > fails to bind to the address, despite specifying "*". The watchdog
> > stops Resin because of a socket accept timeout. Is this a known
> > problem, or am I doing something wrong? I don't believe anything is
> > wrong with the rest of the config - my unit tests
> > work fine with that /etc/hosts line left uncommented.
> > 
> > Clearly, I can't have the line in /etc/hosts in a deployment (I mean
> > non-development) environment, since on the next DHCP lease renewal,
> > the DHCP server might dole out a different address.
> 
> Do you have a line like this in /etc/hosts?
> 
> 127.0.0.1   localhost
> 
> -- Sam
> 
> 
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest

-- 
trojanfoe


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Resin 3.1.1 httpd is failing to bind to "*" (Sam)

2007-06-06 Thread Vinay Sajip

> Do you have a line like this in /etc/hosts?
>
> 127.0.0.1   localhost
>
> -- Sam

Yes, Sam, I do have such a line. I don't understand why it would have a bearing 
on the problem, though :-(

Regards,

Vinay Sajip






  ___ 
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today 
http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html 


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Resin 3.1.1 httpd is failing to bind to "*"

2007-06-06 Thread Sam
> Date: Sat, May 26, 2007 at 11:26:24AM +
> Subject: [Resin-interest] Resin 3.1.1 httpd is failing to bind to "*"
>
> Hi,
> 
> I'm trying out Resin 3.1.1 (Open Source) on a Damn Small Linux system
> (DSL 3.3, with default hostname "box") configured as a DHCP client.
> When my /etc/hosts file contains the line
> 
> 192.168.0.15 box
> 
> (where 192.168.0.15 is the address handed out by the DHCP server),
> everything works as expected (in resin.conf, I have  port="80"/>). However, if I comment out that line in /etc/hosts [so
> that gethostbymame() or InetAddress.getLocalHost() would fail], Resin
> fails to bind to the address, despite specifying "*". The watchdog
> stops Resin because of a socket accept timeout. Is this a known
> problem, or am I doing something wrong? I don't believe anything is
> wrong with the rest of the config - my unit tests
> work fine with that /etc/hosts line left uncommented.
> 
> Clearly, I can't have the line in /etc/hosts in a deployment (I mean
> non-development) environment, since on the next DHCP lease renewal,
> the DHCP server might dole out a different address.

Do you have a line like this in /etc/hosts?

127.0.0.1   localhost

-- Sam


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest