NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi Everyboy,

Thanks for reading this and for any help you can provide!

I am trying to setup my own tile server on Ubuntu 14.04 following the following guide link text.

I believe i followed the instructions and everything completed without error. However, i am getting 404 responses when trying to download tiles (both through slippymap and through /osm_tiles/0/0/0.png).

Looking at the comments on that guide, it seems lots of people are having a similar problem to me but no solutions have been posted :-(

Any help would be greatly appreciated!

Commands and log output

I have gone to the mod_tile/renderd status page at /mod_tile/. It displays correctly but shows 0 tiles have been rendered.

I have started renderd in the forground to watch its messages. There where no obvious error messages but there are also no messages displayed when i request tiles.

 
chris@www:~$ renderd -f
renderd[2355]: Rendering daemon started
renderd[2355]: Initiating reqyest_queue
renderd[2355]: Parsing section renderd
renderd[2355]: Parsing render section 0
renderd[2355]: Parsing section mapnik
renderd[2355]: Parsing section default
renderd[2355]: config renderd: unix socketname=/var/run/renderd/renderd.sock
renderd[2355]: config renderd: num_threads=4
renderd[2355]: config renderd: num_slaves=0
renderd[2355]: config renderd: tile_dir=/var/lib/mod_tile
renderd[2355]: config renderd: stats_file=/var/run/renderd/renderd.stats
renderd[2355]: config mapnik:  plugins_dir=/usr/lib/mapnik/2.2/input
renderd[2355]: config mapnik:  font_dir=/usr/share/fonts/truetype/
renderd[2355]: config mapnik:  font_dir_recurse=1
renderd[2355]: config renderd(0): Active
renderd[2355]: config renderd(0): unix socketname=/var/run/renderd/renderd.sock
renderd[2355]: config renderd(0): num_threads=4
renderd[2355]: config renderd(0): tile_dir=/var/lib/mod_tile
renderd[2355]: config renderd(0): stats_file=/var/run/renderd/renderd.stats
renderd[2355]: config map 0:   name(default) file(/etc/mapnik-osm-carto-data/osm.xml) uri(/osm/) htcp() host()
renderd[2355]: Initialising unix server socket on /var/run/renderd/renderd.sock
renderd[2355]: Created server socket 4
renderd[2355]: Renderd is using mapnik version 2.2.0
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//padauk/Padauk-bold.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//padauk/Padauk.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//padauk/Padauk-bookbold.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//padauk/Padauk-book.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-dejavu/DejaVuSans-Oblique.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-dejavu/DejaVuSans-BoldOblique.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-dejavu/DejaVuSansMono-Oblique.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-dejavu/DejaVuSerifCondensed-BoldItalic.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-dejavu/DejaVuSansCondensed-Bold.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-dejavu/DejaVuSans.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-dejavu/DejaVuSansMono-Bold.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-dejavu/DejaVuSerifCondensed-Italic.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-dejavu/DejaVuSerif-Bold.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-dejavu/DejaVuSansCondensed-BoldOblique.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-dejavu/DejaVuSerif-BoldItalic.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-dejavu/DejaVuSerifCondensed.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-dejavu/DejaVuSerifCondensed-Bold.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-dejavu/DejaVuSansMono-BoldOblique.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-dejavu/DejaVuSansMono.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-dejavu/DejaVuSans-ExtraLight.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-dejavu/DejaVuSans-Bold.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-dejavu/DejaVuSansCondensed-Oblique.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-dejavu/DejaVuSerif-Italic.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-dejavu/DejaVuSerif.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-dejavu/DejaVuSansCondensed.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-khmeros/KhmerOSbattambang.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-khmeros/KhmerOSmuolpali.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-khmeros/KhmerOSmetalchrieng.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-khmeros/KhmerOSfreehand.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-khmeros/KhmerOSmuollight.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-khmeros/KhmerOSmuol.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-khmeros/KhmerOSsiemreap.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-khmeros/KhmerOSfasthand.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-khmeros/KhmerOSbokor.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-khmeros/KhmerOScontent.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//dejavu/DejaVuSans-Oblique.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//dejavu/DejaVuSans-BoldOblique.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//dejavu/DejaVuSansMono-Oblique.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//dejavu/DejaVuSerifCondensed-BoldItalic.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//dejavu/DejaVuSansCondensed-Bold.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//dejavu/DejaVuSans.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//dejavu/DejaVuSansMono-Bold.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//dejavu/DejaVuSerifCondensed-Italic.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//dejavu/DejaVuSerif-Bold.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//dejavu/DejaVuSansCondensed-BoldOblique.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//dejavu/DejaVuSerif-BoldItalic.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//dejavu/DejaVuSerifCondensed.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//dejavu/DejaVuSerifCondensed-Bold.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//dejavu/DejaVuSansMono-BoldOblique.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//dejavu/DejaVuSansMono.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//dejavu/DejaVuSans-ExtraLight.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//dejavu/DejaVuSans-Bold.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//dejavu/DejaVuSansCondensed-Oblique.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//dejavu/DejaVuSerif-Italic.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//dejavu/DejaVuSerif.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//dejavu/DejaVuSansCondensed.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-kannada-fonts/Kedage-t.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-kannada-fonts/Malige-i.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-kannada-fonts/lohit_kn.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-kannada-fonts/Malige-t.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-kannada-fonts/Kedage-i.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-khmeros-core/KhmerOSsys.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-khmeros-core/KhmerOS.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-indic-fonts-core/lohit_bn.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-indic-fonts-core/Pothana2000.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-indic-fonts-core/Vemana.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-indic-fonts-core/gargi.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-indic-fonts-core/lohit_ta.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-indic-fonts-core/MuktiNarrowBold.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-indic-fonts-core/Meera_04.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-indic-fonts-core/Malige-n.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-indic-fonts-core/lohit_hi.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-indic-fonts-core/Kedage-b.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-indic-fonts-core/Rachana_04.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-indic-fonts-core/utkal.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-indic-fonts-core/lohit_gu.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-indic-fonts-core/MuktiNarrow.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-indic-fonts-core/Malige-b.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-indic-fonts-core/Kedage-n.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-indic-fonts-core/Rekha.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//ttf-tamil-fonts/Samyak-Tamil.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//droid/DroidSansJapanese.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//droid/DroidSansArmenian.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//droid/DroidSerif-Regular.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//droid/DroidNaskh-Bold.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//droid/DroidSans-Bold.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//droid/DroidSansEthiopic-Regular.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//droid/DroidSerif-Bold.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//droid/DroidSansHebrew-Regular.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//droid/DroidSansFallbackFull.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//droid/DroidNaskh-Regular.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//droid/DroidSans.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//droid/DroidSerif-BoldItalic.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//droid/DroidSansEthiopic-Bold.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//droid/DroidSansMono.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//droid/DroidSerif-Italic.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//droid/DroidSansThai.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//droid/DroidSansHebrew-Bold.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//droid/DroidSansGeorgian.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//unifont/unifont_sample.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//unifont/unifont.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//arundina/ArundinaSansMono-Oblique.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//arundina/ArundinaSansMono-Bold.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//arundina/ArundinaSerif-Bold.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//arundina/ArundinaSerif.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//arundina/ArundinaSans-BoldOblique.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//arundina/ArundinaSans-Bold.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//arundina/ArundinaSansMono.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//arundina/ArundinaSans-Oblique.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//arundina/ArundinaSans.ttf
renderd[2355]: DEBUG: Loading font: /usr/share/fonts/truetype//arundina/ArundinaSansMono-BoldOblique.ttf
Running in foreground mode...
renderd[2355]: Starting stats thread
debug: init_storage_backend: initialising file storage backend at: /var/lib/mod_tile
renderd[2355]: Loading parameterization function for debug: init_storage_backend: initialising file storage backend at: /var/lib/mod_tile
renderd[2355]: Loading parameterization function for

debug: init_storage_backend: initialising file storage backend at: /var/lib/mod_tile
renderd[2355]: Loading parameterization function for
debug: init_storage_backend: initialising file storage backend at: /var/lib/mod_tile
renderd[2355]: Loading parameterization function for

renderd[2355]: Using web mercator projection settings
renderd[2355]: Using web mercator projection settings
renderd[2355]: Using web mercator projection settings
renderd[2355]: Using web mercator projection settings

ls -la /var/lib/mod_tile shows folder "default" and planet-import-complete; all owned by www-data.

 
drwxr-xr-x  3 www-data www-data 4096 Jul 29 19:16 default
-rw-r--r--  1 www-data www-data    0 Jul 29 22:36 planet-import-complete

Apache 2 shows the following on restart:

  * Restarting web server apache2                                                [Wed Jul 30 19:04:57.877419 2014] [tile:notice] [pid 2499:tid 140236885788544] Loading tile config default at /osm/ for zooms 0 - 20 from tile directory /var/lib/mod_tile with extension .png and mime type image/png
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message

Let me know if there is anything else i can post that would help.

asked 30 Jul '14, 19:20

BobBobson's gravatar image

BobBobson
21112
accept rate: 0%

edited 30 Jul '14, 19:21


Your renderd claims to serve the default style under /osm:

renderd[2355]: config map 0:   name(default) file(/etc/mapnik-osm-carto-data/osm.xml) uri(/osm/) htcp() host()

Therefore your tile URL is not /osm_tiles/0/0/0.png but /osm/0/0/0.png.

If you've done that right and still encounter problems, look at the Apache log file and check if there's maybe a communications problem between mod_tile and renderd.

permanent link

answered 30 Jul '14, 21:07

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

2

Ok, i feel a bit silly now but I'm very happy its working :-) The /osm/ line in the render logs sticks out as clear as day, but I've spent the last two days looking at this and didnt spot it.

I have updated slippymap accordingly and its working perfectly. I will post a comment on the tutorial incase the others are having the same problem.

Many thanks for your help!

Bob

(30 Jul '14, 22:14) BobBobson

Follow this question

By Email:

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

By RSS:

Answers

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:

×204
×123
×105
×80
×75

question asked: 30 Jul '14, 19:20

question was seen: 10,912 times

last updated: 30 Jul '14, 22:14

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum