I am not getting host name. I can run web2py on local host. When I go to my 
test deployment machine with ML Server I first get an error saying that 
wsgihandler.py file does not have exec permission. After I give permission 
on the file, chmod a+x, it says gives me an error saying premature end of 
script headers. On ML Server, I am using the same include configuration 
file on the virtual host as I used with success on LION Server. I will try 
the trunk version now as suggested by Massimo Di Pierro.

Here is the a copy of the log error:

[Tue Jul 31 18:18:07 2012] [error] [client 10.0.1.18] Premature end of 
script headers: wsgihandler.py
[Tue Jul 31 18:19:10 2012] [info] mod_wsgi (pid=6388): Shutdown requested 
'web2py443'.
[Tue Jul 31 18:19:10 2012] [info] mod_wsgi (pid=6388): Stopping process 
'web2py443'.
[Tue Jul 31 18:19:10 2012] [info] mod_wsgi (pid=6388): Destroying 
interpreters.
[Tue Jul 31 18:19:10 2012] [info] mod_wsgi (pid=6388): Cleanup interpreter 
''.
[Tue Jul 31 18:19:10 2012] [info] mod_wsgi (pid=6388): Terminating Python.
[Tue Jul 31 18:19:10 2012] [info] mod_wsgi (pid=6388): Python has shutdown.
[Tue Jul 31 18:19:10 2012] [notice] caught SIGTERM, shutting down
[Tue Jul 31 18:19:14 2012] [notice] Apache/2.2.22 (Unix) mod_wsgi/3.3 
Python/2.7.2 mod_ssl/2.2.22 OpenSSL/0.9.8r DAV/2 configured -- resuming 
normal operations

Thank you for your help.
Em sexta-feira, 27 de julho de 2012 03h16min30s UTC-3, pbreit escreveu:
>
> This change is preventing me from starting web2py because of a problem 
> with socket.gethostbyname():
>
> http://code.google.com/p/web2py/source/detail?r=36139e7a6c9c14983e0d09f626959beb8fcf9320
>
> I'm on a Mac where I'm not exactly sure how hostnaming 
> works. socket.getfqdn() is returning some weird stuff, possibly IPv6 
> addresses.
>
> Right now, socket.getfqdn() returns 'pb-dev' which socket.gethostbyname_ex 
> is choking on. I tried changing the HostName with scutil but got an even 
> weirded 
> hostname: 
> '1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa'
>
> Note, this is on Mountain Lion with Xcode 4.4 installed.
>
>
> Traceback (most recent call last):
>   File "web2py.py", line 25, in <module>
>     gluon.widget.start(cron=True)
>   File "/Users/pbreit/web2py/gluon/widget.py", line 895, in start
>     (options, args) = console()
>   File "/Users/pbreit/web2py/gluon/widget.py", line 803, in console
>     options.ips = [ip for ip in 
> socket.gethostbyname_ex(socket.getfqdn())[2]
> socket.gaierror: [Errno 8] nodename nor servname provided, or not known
>

-- 



Reply via email to