[Zope] Strange Linux Behavior

Eric Walstad eric@walstads.net
Thu, 12 Jul 2001 14:32:28 -0700


Hi Jason,
It's a shot in the dark, but have you tried specifying your IP in the z2.py
file?
It looks like http_server can't find your IP and is trying to look it up by
hostname, which Python can't find:
-----8<-- Start Snip --8<-----
        if not ip:
            self.log_info('Computing default hostname', 'warning')
*** -->     ip = socket.gethostbyname (socket.gethostname())
----->8-- End Snip -->8-----

*** is where it's failing.

Even if specifying the IP works, it is probably a good idea to figure out
why Python doesn't know about the new hostname.

Eric.

> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Jason
> Joy
> Sent: Thursday, July 12, 2001 1:21 PM
> To: zope@zope.org
> Subject: [Zope] Strange Linux Behavior
>
>
> I have set up Zope on a RedHat 7.1 distribution and had everything working
> terrifically until...
>
> I changed the hostname of the machine from "foo" to "bar" ... now
> when it is
> as "bar", I get a z2 startup exception:
>
> File /usr/local/Zope/z2.py, line 623, in ?
> File /usr/local/Zope/ZServer/HTTPServer.py, line 391, in __init__
> File /usr/local/Zope/ZServer/medusa/http_server.py, line 550, in __init__
>
> Error: host not found
>
> Any ideas?
>
> Jason
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )