error : socket.gethostbyname(http_host)] : gaierror: [Errno -2] Name or service not known

2,410 views
Skip to first unread message

Carlos

unread,
Jul 16, 2012, 5:25:01 PM7/16/12
to web...@googlegroups.com
Hi,

Every now and then, I see the following error in my server logs:
 
 ERROR:web2py:Traceback (most recent call last):
     
File "/home/www-data/web2py/gluon/main.py", line 401, in wsgibase
       socket
.gethostbyname(http_host)]
   gaierror
: [Errno -2] Name or service not known

So far today I'm getting 10+ of these errors (although not from any of my requests, but other users').

How can this error be fixed?.

I'm using latest web2py, ubuntu 10.04, postgresql, nginx, uwsgi-python.

Thanks,

   Carlos

Massimo Di Pierro

unread,
Jul 16, 2012, 9:58:32 PM7/16/12
to web...@googlegroups.com
Never heard of this before. Fixed in trunk. Thanks for reporting it.

Rufus

unread,
Feb 28, 2016, 4:23:32 PM2/28/16
to web2py-users
I installed web2py on a remote ubuntu server 14.04 with Webmin package from APT function and the same error is happening for me.
I'll print the contents of http_host to check the value.

 Never mind, I just saw the APT function installed web2py 1.99.7 (2012-03-04).   I imagine a couple things have changed since then.

reinstalling web2py
Reply all
Reply to author
Forward
0 new messages