Hi, 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 aseerel4c26 ♦ |
You should try if one of the renderd client programs, e.g . 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 answered 12 Apr '15, 00:09 Frederik Ramm ♦ 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
3
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 ♦
3
Disabling SELinux did it! Really appreciate your help, Frederik. I've been working on this for weeks! Jeff
(12 Apr '15, 16:13)
jgllo
|