Why not ask your question on the new OpenStreetMap Community Forum?


I've been trying to install OSM on a CentOS 6.5 VM. I believe all of the pieces work correctly but when I try to have a tile rendered from the browser, the tile is not created.

The httpd error log says: [Sat Apr 11 00:42:52 2015] [warn] [client ::1] socket connect failed for: /var/run/renderd/renderd.sock with reason: Permission denied [Sat Apr 11 00:42:52 2015] [notice] [client ::1] Failed to connect to renderer

Here's the directory listing: [root@localhost 9.3]# ll /var/run/renderd/ total 8 -rw-r--r--. 1 osm osm 6 Apr 11 00:22 renderd.pid srwxrwxrwx. 1 osm osm 0 Apr 11 00:22 renderd.sock -rw-r--r--. 1 osm osm 1168 Apr 11 17:01 renderd.stats

Apache works

Renderd works - generate_tiles.py runs successfully

Mod_tile seems to work - http://localhost/mod_tile returns the stats page

The python installation test to import mapnik was successful.

Any help would be greatly appreciated. Thanks!

asked 11 Apr '15, 22:25

jgllo's gravatar image

accept rate: 0%

edited 12 Apr '15, 01:09

aseerel4c26's gravatar image

aseerel4c26 ♦

generate_tiles.py working does not mean that renderd is working, because this program renders tiles directly without involving renderd.

You should try if one of the renderd client programs, e.g .render_list, is working; that would be an indication of renderd doing its job right.

The most likely cause of your problem is that renderd is running all right, but with the socket not being writable for the unix user under which Apache is running, the web server cannot send messages through the socket. One possible solution would be a chmod a+w /var/run/renderd/renderd.sock but this will only fix things until the next restart of renderd. Normally renderd takes care to create this socket in a world-writable fashion (cf. https://github.com/openstreetmap/mod_tile/blob/master/src/daemon.c#L445) and it is unclear why this should not be the case on your system.

permanent link

answered 12 Apr '15, 00:09

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%

Thanks! Appreciate your reply!

render_list did work!

[osm@localhost renderd]$ render_list -a -z 0 -Z 5 -f -t /var/lib/mod_tile -s /var/run/renderd/renderd.sock debug: init_storage_backend: initialising file storage backend at: /var/lib/mod_tile Rendering client Starting 1 rendering threads Rendering all tiles from zoom 0 to zoom 5 Rendering all tiles for zoom 0 from (0, 0) to (0, 0) Rendering all tiles for zoom 1 from (0, 0) to (1, 1) Rendering all tiles for zoom 2 from (0, 0) to (3, 3) Rendering all tiles for zoom 3 from (0, 0) to (7, 7) Rendering all tiles for zoom 4 from (0, 0) to (15, 15) Rendering all tiles for zoom 5 from (0, 0) to (31, 31) Waiting for rendering threads to finish

Total for all tiles rendered Meta tiles rendered: Rendered 24 tiles in 18.17 seconds (1.32 tiles/s) Total tiles rendered: Rendered 1536 tiles in 18.17 seconds (84.54 tiles/s) Total tiles handled: Rendered 24 tiles in 18.17 seconds (1.32 tiles/s)

Zoom 00: min: 0.6 avg: 0.6 max: 0.6 over a total of 0.6s in 1 requests Zoom 01: min: 0.6 avg: 0.6 max: 0.6 over a total of 0.6s in 1 requests Zoom 02: min: 0.9 avg: 0.9 max: 0.9 over a total of 0.9s in 1 requests Zoom 03: min: 1.3 avg: 1.3 max: 1.3 over a total of 1.3s in 1 requests Zoom 04: min: 0.4 avg: 0.9 max: 1.3 over a total of 3.4s in 4 requests Zoom 05: min: 0.2 avg: 0.7 max: 3.4 over a total of 11.3s in 16 requests

But chmod a+w /var/run/renderd/renderd.sock did not make a difference. Still can't get the browser to initiate tile rendering.

(12 Apr '15, 06:13) jgllo

Are you still getting '/var/run/renderd/renderd.sock with reason: Permission denied'? Is it possible that you have SELinux enabled? If yes, try disabling it and re-try.

(12 Apr '15, 13:50) Frederik Ramm ♦

Disabling SELinux did it!

Really appreciate your help, Frederik. I've been working on this for weeks!


(12 Apr '15, 16:13) jgllo
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 11 Apr '15, 22:25

question was seen: 7,739 times

last updated: 15 Apr '15, 13:28

powered by OSQA