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

John Chase johnjchase at gmail.com
Thu Mar 11 11:12:30 EST 2010


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
<mdeneen+tiles at saucontech.com> 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?
>
>



More information about the Tilecache mailing list