[OSM-dev] Trouble getting mod_tile and apache talking
Rory McCann
rory at technomancy.org
Mon May 10 15:02:49 BST 2010
Hi,
I'm trying to set up my own mod_tile install. I'm using Ubuntu 8.04
Hardy. I've got mapnik installed and rendering tiles OK for the data I'm
interested in using the mapnik style I want. However when I try to go to
http://www.technomancy.org/openirishmap_tiles/0/0/0.png I get a standard
Apache 404 'file not found' error and I see nothing on the console of
"renderd -f".
I get the following error messages in my access log:
x.x.x.x - - [10/May/2010:14:00:17 +0000] "GET
/openirishmap_tiles/0/0/0.png HTTP/1.1" 404 526 "-" "Mozilla/5.0 (X11;
U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid)
Firefox/3.6.3"
and the following errors in my apache error log:
[Mon May 10 14:00:17 2010] [error] [client x.x.x.x] File does not exist:
/var/www/technomancy.org/openirishmap_tiles/0
I build the debian packages using dpkg-buildpackage and installed the
renderd and mod_tile debs.
My /etc/renderd.conf looks like this:
[renderd]
socketname=/var/run/renderd/renderd.sock
num_threads=4
tile_dir=/var/lib/mod_tile ; DOES NOT WORK YET
[mapnik]
plugins_dir=/usr/lib/mapnik/input
font_dir=/usr/share/fonts/truetype/ttf-dejavu
font_dir_recurse=false
[default]
URI=/openirishmap_tiles/
XML=/var/www/technomancy.org/openirishmap/mapnik/osm.xml
HOST=www.technomancy.org
;HTCPHOST=proxy.openstreetmap.org
The relevant section of my apache virtual host config file looks like this:
<VirtualHost *:80>
...
LoadModule tile_module modules/mod_tile.so
LoadTileConfigFile /etc/renderd.conf
AddTileConfig /openirishmap_tiles/ default
ModTileRenderdSocketName /var/run/renderd/renderd.sock
</VirtualHost>
There should be no permission problems on /var/run/renderd:
$ find /var/run/renderd/ -ls
3079531 0 drwxrwxrwx 2 root root 80 May 10 13:26
/var/run/renderd/
3387320 0 srwxrwxrwx 1 rory rory 0 May 10 13:26
/var/run/renderd/renderd.sock
3098853 0 -rwxrwxrwx 1 rory rory 0 May 9 21:11
/var/run/renderd/renderd.stats
And the permissions on /var/lib/mod_tile look OK:
$ find /var/lib/mod_tile/ -ls
2 4 drwxrwxrwx 4 rory rory 4096 May 10 13:21
/var/lib/mod_tile/
11 16 drwx------ 2 root root 16384 May 10 09:52
/var/lib/mod_tile/lost+found
1703937 4 drwxrwxrwx 2 root root 4096 May 10 13:21
/var/lib/mod_tile/default
Is there something simple I'm missing? How do I get apache talking to
mod_tile?
Thanks
Rory
More information about the dev
mailing list