An error occurred: <urlopen error (-3, 'Temporary failure in name resolution')>

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

An error occurred: <urlopen error (-3, 'Temporary failure in name resolution')>

John Chase-3
All,

I recently installed TileCache 2.10 as a CGI in a RHEL environment and
am receiving the following error when I try to access:
http://myhost/tilecache/tilecache.cgi?LAYERS=basic&SERVICE=WMS%20&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&BBOX=-180,-90,0,90%20&WIDTH=256&HEIGHT=256

An error occurred: <urlopen error (-3, 'Temporary failure in name resolution')>
  File "/var/www/tilecache/TileCache/Service.py", line 323, in cgiHandler
    format, image = service.dispatchRequest( params, path_info,
req_method, host )
  File "/var/www/tilecache/TileCache/Service.py", line 208, in dispatchRequest
    return self.renderTile(tile, params.has_key('FORCE'))
  File "/var/www/tilecache/TileCache/Service.py", line 138, in renderTile
    data = layer.render(tile, force=force)
  File "/var/www/tilecache/TileCache/Layer.py", line 443, in render
    return self.renderTile(tile)
  File "/var/www/tilecache/TileCache/Layers/WMS.py", line 29, in renderTile
    tile.data, response = wms.fetch()
  File "/var/www/tilecache/TileCache/Client.py", line 58, in fetch
    response = self.client.open(urlrequest)
  File "/usr/lib64/python2.4/urllib2.py", line 358, in open
    response = self._open(req, data)
  File "/usr/lib64/python2.4/urllib2.py", line 376, in _open
    '_open', req)
  File "/usr/lib64/python2.4/urllib2.py", line 337, in _call_chain
    result = func(*args)
  File "/usr/lib64/python2.4/urllib2.py", line 1032, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib64/python2.4/urllib2.py", line 1006, in do_open
    raise URLError(err)

When I access http://myhost/tilecache/index.html I see map controls
and a bunch of tiles showing broken link icons.

I'm using the default tilecache.cfg, and I can't find any immediately
obvious permission problems to explain the issue.  Any ideas?

Thanks,
John
_______________________________________________
Tilecache mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/tilecache
Reply | Threaded
Open this post in threaded view
|

Re: An error occurred: <urlopen error (-3, 'Temporary failure in name resolution')>

Mark Deneen-2
John Chase wrote:

> All,
>
> I recently installed TileCache 2.10 as a CGI in a RHEL environment and
> am receiving the following error when I try to access:
> http://myhost/tilecache/tilecache.cgi?LAYERS=basic&SERVICE=WMS%20&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&BBOX=-180,-90,0,90%20&WIDTH=256&HEIGHT=256
>
> An error occurred: <urlopen error (-3, 'Temporary failure in name resolution')>
>
>
> I'm using the default tilecache.cfg, and I can't find any immediately
> obvious permission problems to explain the issue.  Any ideas?
>
> Thanks,
> John
>
>  
Check your DNS and / or hosts file.

Mark
_______________________________________________
Tilecache mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/tilecache
Reply | Threaded
Open this post in threaded view
|

Re: An error occurred: <urlopen error (-3, 'Temporary failure in name resolution')>

John Chase-3
Mark,

The error says its a name resolution problem, but lookups seem to be
working fine on the machine, at least from the command line.

'$ dig labs.metacarta.com'
;; ANSWER SECTION:
labs.metacarta.com.     300     IN      A       208.80.140.143

I'm puzzled...

John


On Wed, Mar 10, 2010 at 5:26 PM, Mark Deneen
<[hidden email]> wrote:

> John Chase wrote:
>> All,
>>
>> I recently installed TileCache 2.10 as a CGI in a RHEL environment and
>> am receiving the following error when I try to access:
>> http://myhost/tilecache/tilecache.cgi?LAYERS=basic&SERVICE=WMS%20&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&BBOX=-180,-90,0,90%20&WIDTH=256&HEIGHT=256
>>
>> An error occurred: <urlopen error (-3, 'Temporary failure in name resolution')>
>>
>>
>> I'm using the default tilecache.cfg, and I can't find any immediately
>> obvious permission problems to explain the issue.  Any ideas?
>>
>> Thanks,
>> John
>>
>>
> Check your DNS and / or hosts file.
>
> Mark
>
_______________________________________________
Tilecache mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/tilecache
Reply | Threaded
Open this post in threaded view
|

Re: An error occurred: <urlopen error (-3, 'Temporary failure in name resolution')>

John Chase-3
Mark & All,

Adding labs.metacarta.com to /etc/hosts changed the error, providing
the clue to figure out what was wrong.  The error changed to a
permission error: "An error occurred: <urlopen error (13, 'Permission
denied')>"

The root of the issue turned out to be SELinux. By default, SELinux
disallows outbound network connections for httpd. Because of this, the
name resolution failed until labs.metacarta.com was added to the hosts
file.  Once this change was made, the name lookup worked okay, but the
actual request failed due to the permissions problem.  The fix was:

"$ setsebool -P httpd_can_network_connect=1" and then an apache restart.

Thanks for the help!
John

On Thu, Mar 11, 2010 at 10:40 AM, Mark Deneen
<[hidden email]> wrote:

> John Chase wrote:
>> Mark,
>>
>> The error says its a name resolution problem, but lookups seem to be
>> working fine on the machine, at least from the command line.
>>
>> '$ dig labs.metacarta.com'
>> ;; ANSWER SECTION:
>> labs.metacarta.com.     300     IN      A       208.80.140.143
>>
>> I'm puzzled...
>>
>> John
>>
>>
>>
>
> John,
>
> What is in /etc/resolv.conf?  Does the behavior change if you put
> "208.80.140.143 labs.metacarta.com" in /etc/hosts?
>
>
_______________________________________________
Tilecache mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/tilecache