[Zope] Problem with installation

Dieter Maurer dieter@handshake.de
Sat, 23 Feb 2002 13:43:43 +0100


francesco emmi writes:
 > I tried to install zope, but when I type " ./start" this line appear:
 > 
 > 2002-02-22T11:21:52 INFO(0) ZODB Opening database for mounting: 
 > '142274768_1014376912.884291'
 > ------
 > 2002-02-22T11:21:52 INFO(0) ZODB Mounted database 
 > '142274768_1014376912.884291' at /temp_folder
 > ------
 > 2002-02-22T11:22:15 INFO(0) Zope New disk product detected, determining if we 
 > need to fix up any ZClasses.
 > ------
 > 2002-02-22T11:22:15 PANIC(300) z2 Startup exception
 > Traceback (innermost last):
 >   File /usr/local/src/Zope-2.5.0-src/z2.py, line 556, in ?
 >   File /usr/local/src/Zope-2.5.0-src/ZServer/HTTPServer.py, line 320, in 
 > __init__
 >   File /usr/local/src/Zope-2.5.0-src/ZServer/medusa/http_server.py, line 578, 
 > in __init__
 > error: host not found
Someone else already suggested a work around.

I try to explain what happens:

  In line 578 of ".../ZServer/medusa/http_server.py" we find:

     socket.gethostbyname(socket.gethostname())

  This raises a "socket.error" exception "host not found".
  This means "socket.gethostname()" returns a host that
  "socket.gethostbyname" is unable to resolve into an
  IP address.

  This means: something is wrong with your networking setup.
    Either your hostname is configured wrongly or
    your "hosts" file, respectively DNS.


Dieter