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
(where 192.168.0.15 is the address handed out by the DHCP server), everything
works as expected (in resin.conf, I have <http address="*" port="80"/>).
However, if I comment out that line in /etc/hosts [so that gethostbymame() or
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.
In trials with Jetty 6 on the same box, there was no problem binding to the
DHCP-assigned address, even when the line in /etc/hosts was commented out.
Resin is being invoked with root privileges using "sudo".
Sorry if this has come up before - I didn't find it in a search of Google or
Gmane. I would appreciate any pointers.
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
resin-interest mailing list