Hi All,
I tried to set MapServer (http://switch2osm.org/serving-tiles/manually-building-a-tile-server-12-04/), the only change was that I replaced planet map with india map (with the same name as planet_osm.pbf).
I did all the steps as explained, once rendered and restarted the apache server...on accessing http://localhost/osm_tiles/0/0/0.png is giving me NOT FOUND ERROR.
When I run "renderd -f -c /usr/local/etc/renderd.conf" I am getting the following console output
sanal@sanal-virtual-machine:~/src/mapnik-style/inc$ renderd -f -c /usr/local/etc/renderd.conf
renderd[25743]: Rendering daemon started
renderd[25743]: Initiating reqyest_queue
renderd[25743]: Parsing section renderd
renderd[25743]: Parsing render section 0
renderd[25743]: Parsing section renderd01
renderd[25743]: Parsing render section 1
renderd[25743]: Parsing section renderd02
renderd[25743]: Parsing render section 2
renderd[25743]: Parsing section mapnik
renderd[25743]: Parsing section default
renderd[25743]: Parsing section style2
renderd[25743]: config renderd: unix socketname=/var/run/renderd/renderd.sock
renderd[25743]: config renderd: num_threads=4
renderd[25743]: config renderd: num_slaves=8
renderd[25743]: config renderd: tile_dir=/var/lib/mod_tile
renderd[25743]: config renderd: stats_file=/var/run/renderd/renderd.stats
renderd[25743]: config mapnik: plugins_dir=/usr/local/lib/mapnik/input
renderd[25743]: config mapnik: font_dir=/usr/share/fonts/truetype/ttf-dejavu
renderd[25743]: config mapnik: font_dir_recurse=1
renderd[25743]: config renderd(0): Active
renderd[25743]: config renderd(0): unix socketname=/var/run/renderd/renderd.sock
renderd[25743]: config renderd(0): num_threads=4
renderd[25743]: config renderd(0): tile_dir=/var/lib/mod_tile
renderd[25743]: config renderd(0): stats_file=/var/run/renderd/renderd.stats
renderd[25743]: config renderd(1): unix socketname=/var/run/renderd/renderd.sock
renderd[25743]: config renderd(1): num_threads=4
renderd[25743]: config renderd(1): tile_dir=/var/lib/mod_tile
renderd[25743]: config renderd(1): stats_file=(null)
renderd[25743]: config renderd(2): unix socketname=/var/run/renderd/renderd.sock
renderd[25743]: config renderd(2): num_threads=4
renderd[25743]: config renderd(2): tile_dir=/var/lib/mod_tile
renderd[25743]: config renderd(2): stats_file=(null)
renderd[25743]: config map 0: name(default) file(/home/sanal/src/mapnik-style/osm.xml) uri(/osm_tiles/) htcp() host(localhost)
renderd[25743]: config map 1: name(style2) file() uri() htcp() host()
renderd[25743]: Initialising unix server socket on /var/run/renderd/renderd.sock
renderd[25743]: Created server socket 5
renderd[25743]: Renderd is using mapnik version 3.0.0
renderd[25743]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Bold.ttf
renderd[25743]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf
renderd[25743]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
renderd[25743]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Oblique.ttf
renderd[25743]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf
renderd[25743]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
renderd[25743]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-BoldOblique.ttf
renderd[25743]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-ExtraLight.ttf
renderd[25743]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed-BoldItalic.ttf
renderd[25743]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf
renderd[25743]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Bold.ttf
renderd[25743]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed-Italic.ttf
renderd[25743]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-BoldOblique.ttf
renderd[25743]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed-Bold.ttf
renderd[25743]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed.ttf
renderd[25743]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Italic.ttf
renderd[25743]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-BoldOblique.ttf
renderd[25743]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed.ttf
renderd[25743]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
renderd[25743]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-BoldItalic.ttf
renderd[25743]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Oblique.ttf
Running in foreground mode...
renderd[25743]: Starting stats thread
renderd[25743]: Initialising unix client socket on /var/run/renderd/renderd.sock
renderd[25743]: socket /var/run/renderd/renderd.sock initialised to fd 6
renderd[25743]: Initialising unix client socket on /var/run/renderd/renderd.sock
debug: init_storage_backend: initialising file storage backend at: /var/lib/mod_tile
renderd[25743]: Initialising unix client socket on /var/run/renderd/renderd.sock
renderd[25743]: socket /var/run/renderd/renderd.sock initialised to fd 7
renderd[25743]: socket /var/run/renderd/renderd.sock initialised to fd 8
debug: init_storage_backend: initialising file storage backend at: /var/lib/mod_tile
debug: init_storage_backend: initialising file storage backend at: /var/lib/mod_tile
debug: init_storage_backend: initialising file storage backend at: /var/lib/mod_tile
renderd[25743]: Initialising unix client socket on /var/run/renderd/renderd.sock
renderd[25743]: socket /var/run/renderd/renderd.sock initialised to fd 9
renderd[25743]: Initialising unix client socket on /var/run/renderd/renderd.sock
renderd[25743]: socket /var/run/renderd/renderd.sock initialised to fd 10
renderd[25743]: Initialising unix client socket on /var/run/renderd/renderd.sock
renderd[25743]: socket /var/run/renderd/renderd.sock initialised to fd 11
renderd[25743]: DEBUG: Got incoming connection, fd 14, number 1
renderd[25743]: DEBUG: Got incoming connection, fd 15, number 2
renderd[25743]: DEBUG: Got incoming connection, fd 16, number 3
renderd[25743]: DEBUG: Got incoming connection, fd 17, number 4
renderd[25743]: Initialising unix client socket on /var/run/renderd/renderd.sock
renderd[25743]: DEBUG: Got incoming connection, fd 18, number 5
renderd[25743]: DEBUG: Got incoming connection, fd 20, number 6
renderd[25743]: socket /var/run/renderd/renderd.sock initialised to fd 19
renderd[25743]: DEBUG: Got incoming connection, fd 21, number 7
renderd[25743]: Initialising unix client socket on /var/run/renderd/renderd.sock
renderd[25743]: socket /var/run/renderd/renderd.sock initialised to fd 22
renderd[25743]: DEBUG: Got incoming connection, fd 23, number 8
renderd[25743]: Using web mercator projection settings
renderd[25743]: Using web mercator projection settings
renderd[25743]: Using web mercator projection settings
renderd[25743]: Using web mercator projection settings
> Blockquote
>
> Blockquote
and when I restarted apache server it gave me this
sanal@sanal-virtual-machine:/var/lib$ sudo /etc/init.d/apache2 restart
* Restarting web server apache2 [Wed Jun 12 16:21:35 2013] [warn] module tile_module is already loaded, skipping
[Wed Jun 12 16:21:35 2013] [warn] Could not determine host name of server to configure tile-json request. Using localhost instead
[Wed Jun 12 16:21:35 2013] [notice] Loading tile config default at /osm_tiles/ for zooms 0 - 20 from tile directory /var/lib/mod_tile with extension .png and mime type image/png
[Wed Jun 12 16:21:35 2013] [warn] Could not determine host name of server to configure tile-json request. Using localhost instead
[Wed Jun 12 16:21:35 2013] [notice] Loading tile config style2 at for zooms 0 - 20 from tile directory /var/lib/mod_tile with extension .png and mime type image/png
... waiting .[Wed Jun 12 16:21:37 2013] [warn] module tile_module is already loaded, skipping
[Wed Jun 12 16:21:37 2013] [warn] Could not determine host name of server to configure tile-json request. Using localhost instead
[Wed Jun 12 16:21:37 2013] [notice] Loading tile config default at /osm_tiles/ for zooms 0 - 20 from tile directory /var/lib/mod_tile with extension .png and mime type image/png
[Wed Jun 12 16:21:37 2013] [warn] Could not determine host name of server to configure tile-json request. Using localhost instead
[Wed Jun 12 16:21:37 2013] [notice] Loading tile config style2 at for zooms 0 - 20 from tile directory /var/lib/mod_tile with extension .png and mime type image/png
and my renderd.conf file contents is below
[renderd]
socketname=/var/run/renderd/renderd.sock
num_threads=4
tile_dir=/var/lib/mod_tile
stats_file=/var/run/renderd/renderd.stats
[renderd01]
;iphostname=::1
;ipport=7654
;num_threads=4
;tile_dir=rados://tiles/etc/ceph/ceph.conf
;stats_file=/var/run/renderd/renderd.stats
[renderd02]
;iphostname=::1
;ipport=7654
;num_threads=8
;tile_dir=memcached://
;stats_file=/var/run/renderd/renderd.stats
[mapnik]
plugins_dir=/usr/local/lib/mapnik/input
font_dir=/usr/share/fonts/truetype/ttf-dejavu
font_dir_recurse=1
[default]
URI=/osm_tiles/
TILEDIR=/var/lib/mod_tile
XML=/home/sanal/src/mapnik-style/osm.xml
HOST=localhost
TILESIZE=256
;HTCPHOST=proxy.openstreetmap.org
;MINZOOM=0
;MAXZOOM=18
;TYPE=png image/png
;DESCRIPTION=This is a description of the tile layer used in the tile json request
;ATTRIBUTION=©<a href=\"http://www.openstreetmap.org/\">OpenStreetMap</a> and <a href=\"http://wiki.openstreetmap.org/wiki/Contributors\">contributors</a>, <a href=\"http://opendatacommons.org/licenses/odbl/\">ODbL</a>
;SERVER_ALIAS=http://localhost/
;CORS=http://www.openstreetmap.org
[style2]
;URI=/osm_tiles2/
;TILEDIR=rados://tiles/etc/ceph/ceph.conf
;TILESIZE=512
;XML=/home/jburgess/osm/svn.openstreetmap.org/applications/rendering/mapnik/osm-local2.xml
;HOST=tile.openstreetmap.org
;HTCPHOST=proxy.openstreetmap.org
;MINZOOM=0
;MAXZOOM=22
;TYPE=png image/png
;DESCRIPTION=This is a description of the tile layer used in the tile json request
;ATTRIBUTION=©<a href=\"http://www.openstreetmap.org/\">OpenStreetMap</a> and <a href=\"http://wiki.openstreetmap.org/wiki/Contributors\">contributors</a>, <a href=\"http://opendatacommons.org/licenses/odbl/\">ODbL</a>
;SERVER_ALIAS=http://localhost/
;CORS=*
Please help me in fixing this...thanks in advance
asked
12 Jun '13, 12:02
Sanal
16●1●1●1
accept rate:
0%
What does "ls -al /var/lib/mod_tile/" return?
I have changed the permissions of mod_tile drwxrwxrwx 2 sanal root 4096 Jun 12 10:54 mod_tile
That should allow you to write to it, sure! For info what you should see in the renderd debug output in response to browsing to http://yourserveraddress/osm_tiles/0/0/0.png is something like:
@SomeoneElse
This is the output to
on render the output is
Unfortunately, the next step is probably to try and add some more debug to the rendering code to try and see what's not working.
Even if you're not a C programmer this needn't be too scary since you should be able to copy some of the existing debug messages, and the "make" instructions are contained on the switch2osm page.
I m also facing the same problem someone please answer this question
i am also having same problem, i did every thing as given in http://switch2osm.org/serving-tiles/manually-building-a-tile-server-12-04/ help me to get out of this issue