Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A unique URLError: <urlopen error timed out> Error I am getting

I am running my application on my production server and it is giving me this error:

File "/usr/lib/python2.6/urllib2.py", line 391, in open
   response = self._open(req, data)

 File "/usr/lib/python2.6/urllib2.py", line 409, in _open
   '_open', req)

 File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
   result = func(*args)

 File "/usr/lib/python2.6/urllib2.py", line 1161, in http_open
   return self.do_open(httplib.HTTPConnection, req)

 File "/usr/lib/python2.6/urllib2.py", line 1136, in do_open
   raise URLError(err)

URLError: <urlopen error timed out>

BTW I understand the error. But this is not interesting. The interesting part is that when I run this on my local machine or test server every thing is working great. It is just too annoying.

Every where I am using the same OS:

ubuntu 10.04

What could be the possible reason? Any help will be appreciated.

like image 722
scoparta Avatar asked Nov 14 '22 05:11

scoparta


1 Answers

Can you retrieve the URL in question with wget at your production server? This could be a firewall problem rather than a Python bug.

like image 120
dpq Avatar answered Nov 17 '22 07:11

dpq