it's been weeks since i have been trying to build my own openstreet maps tile server after following dozens tutorials i have been able to install renderd and mod_tile and i have successfully uploaded data in postgresql-server. Now i am stuck at this problem my mod_tile is running and my renderd is also running but both are not communicating? if i run generate_tiles.py it will generate tiles successfully but everytime i request tiles by hhtp://myserver/osm_tile/0/0/0.png it reposnd wiht 404. My renderd.conf file
[renderd] socketname=/var/run/renderd/renderd.sock num_threads=4 tile_dir=/var/lib/mod_tile stats_file=/var/run/renderd/renderd.stats [mapnik] plugins_dir=/usr/lib64/mapnik/input font_dir=/usr/lib64/mapnik/fonts font_dir_recurse=1 [default] URI=/osm_tiles/ TILEDIR=/var/lib/mod_tile XML=/home/gis/mapnik/osm.xml HOST=localhost TILESIZE=256 and here is mod_tile.conf file
# This is the Apache server configuration file for providing OSM tile support # through mod_tile LoadModule tile_module /usr/lib64/httpd/modules/mod_tile.so ServerName localhost ServerAlias a.tile.openstreetmap.org b.tile.openstreetmap.org c.tile.openstreetmap.org d.tile.openstreetmap.org DocumentRoot /var/www/html ModTileTileDir /var/lib/mod_tile LoadTileConfigFile /usr/local/etc/renderd.conf ModTileEnableStats On ModTileBulkMode Off ModTileRequestTimeout 3 ModTileMissingRequestTimeout 10 ModTileMaxLoadOld 16 ModTileMaxLoadMissing 50 ModTileVeryOldThreshold 31536000000000 ModTileRenderdSocketName /var/run/renderd/renderd.sock # ModTileRenderdSocketAddr renderd.mydomain.com 7653 #ModTileCacheExtendedHostname cache.tile.openstreetmap.org #ModTileCacheExtendedDuration 2592000 ModTileCacheDurationMax 604800 ModTileCacheDurationDirty 900 ModTileCacheDurationMinimum 10800 ModTileCacheDurationMediumZoom 13 86400 ModTileCacheDurationLowZoom 9 518400 ModTileCacheLastModifiedFactor 0.20 ModTileEnableTileThrottling Off ModTileEnableTileThrottlingXForward 0 ModTileThrottlingTiles 10000 1 ModTileThrottlingRenders 128 0.2 LogLevel debug This is output when i run my renderd
/usr/local/bin/renderd -f -c /usr/local/etc/renderd.conf renderd[29317]: Rendering daemon started renderd[29317]: Initiating reqyest_queue iniparser: syntax error in /usr/local/etc/renderd.conf (7): -> ;[renderd01] iniparser: syntax error in /usr/local/etc/renderd.conf (14): -> ;[renderd02] iniparser: syntax error in /usr/local/etc/renderd.conf (33): -> ;** config options used by mod_tile, but not renderd ** iniparser: syntax error in /usr/local/etc/renderd.conf (44): -> ;[style2] iniparser: syntax error in /usr/local/etc/renderd.conf (51): -> ;** config options used by mod_tile, but not renderd ** renderd[29317]: Parsing section renderd renderd[29317]: Parsing render section 0 renderd[29317]: Parsing section mapnik renderd[29317]: Parsing section default renderd[29317]: config renderd: unix socketname=/var/run/renderd/renderd.sock renderd[29317]: config renderd: num_threads=4 renderd[29317]: config renderd: num_slaves=0 renderd[29317]: config renderd: tile_dir=/var/lib/mod_tile renderd[29317]: config renderd: stats_file=/var/run/renderd/renderd.stats renderd[29317]: config mapnik: plugins_dir=/usr/lib64/mapnik/input renderd[29317]: config mapnik: font_dir=/usr/lib64/mapnik/fonts renderd[29317]: config mapnik: font_dir_recurse=1 renderd[29317]: config renderd(0): Active renderd[29317]: config renderd(0): unix socketname=/var/run/renderd/renderd.sock renderd[29317]: config renderd(0): num_threads=4 renderd[29317]: config renderd(0): tile_dir=/var/lib/mod_tile renderd[29317]: config renderd(0): stats_file=/var/run/renderd/renderd.stats renderd[29317]: config map 0: name(default) file(/home/gis/mapnik/osm.xml) uri(/osm_tiles/) htcp() host(localhost) renderd[29317]: Initialising unix server socket on /var/run/renderd/renderd.sock renderd[29317]: Created server socket 4 renderd[29317]: Renderd is using mapnik version 2.2.0 renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSans.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSerif-Italic.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSans-Oblique.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSans-ExtraLight.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSans-BoldOblique.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSerifCondensed-Bold.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSansCondensed-Bold.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSerif-BoldItalic.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSerifCondensed.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSansMono-BoldOblique.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/unifont-5.1.20080907.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSansMono.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSansMono-Bold.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSerif-Bold.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSerif.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSansCondensed-BoldOblique.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSerifCondensed-BoldItalic.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSans-Bold.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSansCondensed-Oblique.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSerifCondensed-Italic.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSansMono-Oblique.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSansCondensed.ttf Running in foreground mode... 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[29317]: Starting stats thread debug: init_storage_backend: initialising file storage backend at: /var/lib/mod_tile renderd[29317]: Loading parameterization function for renderd[29317]: Loading parameterization function for debug: init_storage_backend: initialising file storage backend at: /var/lib/mod_tile renderd[29317]: Loading parameterization function for renderd[29317]: Loading parameterization function for renderd[29317]: Using web mercator projection settings renderd[29317]: Using web mercator projection settings renderd[29317]: Using web mercator projection settings renderd[29317]: Using web mercator projection settings Help me out here and point any mistake in configuration or anything?
أكثر...
[renderd] socketname=/var/run/renderd/renderd.sock num_threads=4 tile_dir=/var/lib/mod_tile stats_file=/var/run/renderd/renderd.stats [mapnik] plugins_dir=/usr/lib64/mapnik/input font_dir=/usr/lib64/mapnik/fonts font_dir_recurse=1 [default] URI=/osm_tiles/ TILEDIR=/var/lib/mod_tile XML=/home/gis/mapnik/osm.xml HOST=localhost TILESIZE=256 and here is mod_tile.conf file
# This is the Apache server configuration file for providing OSM tile support # through mod_tile LoadModule tile_module /usr/lib64/httpd/modules/mod_tile.so ServerName localhost ServerAlias a.tile.openstreetmap.org b.tile.openstreetmap.org c.tile.openstreetmap.org d.tile.openstreetmap.org DocumentRoot /var/www/html ModTileTileDir /var/lib/mod_tile LoadTileConfigFile /usr/local/etc/renderd.conf ModTileEnableStats On ModTileBulkMode Off ModTileRequestTimeout 3 ModTileMissingRequestTimeout 10 ModTileMaxLoadOld 16 ModTileMaxLoadMissing 50 ModTileVeryOldThreshold 31536000000000 ModTileRenderdSocketName /var/run/renderd/renderd.sock # ModTileRenderdSocketAddr renderd.mydomain.com 7653 #ModTileCacheExtendedHostname cache.tile.openstreetmap.org #ModTileCacheExtendedDuration 2592000 ModTileCacheDurationMax 604800 ModTileCacheDurationDirty 900 ModTileCacheDurationMinimum 10800 ModTileCacheDurationMediumZoom 13 86400 ModTileCacheDurationLowZoom 9 518400 ModTileCacheLastModifiedFactor 0.20 ModTileEnableTileThrottling Off ModTileEnableTileThrottlingXForward 0 ModTileThrottlingTiles 10000 1 ModTileThrottlingRenders 128 0.2 LogLevel debug This is output when i run my renderd
/usr/local/bin/renderd -f -c /usr/local/etc/renderd.conf renderd[29317]: Rendering daemon started renderd[29317]: Initiating reqyest_queue iniparser: syntax error in /usr/local/etc/renderd.conf (7): -> ;[renderd01] iniparser: syntax error in /usr/local/etc/renderd.conf (14): -> ;[renderd02] iniparser: syntax error in /usr/local/etc/renderd.conf (33): -> ;** config options used by mod_tile, but not renderd ** iniparser: syntax error in /usr/local/etc/renderd.conf (44): -> ;[style2] iniparser: syntax error in /usr/local/etc/renderd.conf (51): -> ;** config options used by mod_tile, but not renderd ** renderd[29317]: Parsing section renderd renderd[29317]: Parsing render section 0 renderd[29317]: Parsing section mapnik renderd[29317]: Parsing section default renderd[29317]: config renderd: unix socketname=/var/run/renderd/renderd.sock renderd[29317]: config renderd: num_threads=4 renderd[29317]: config renderd: num_slaves=0 renderd[29317]: config renderd: tile_dir=/var/lib/mod_tile renderd[29317]: config renderd: stats_file=/var/run/renderd/renderd.stats renderd[29317]: config mapnik: plugins_dir=/usr/lib64/mapnik/input renderd[29317]: config mapnik: font_dir=/usr/lib64/mapnik/fonts renderd[29317]: config mapnik: font_dir_recurse=1 renderd[29317]: config renderd(0): Active renderd[29317]: config renderd(0): unix socketname=/var/run/renderd/renderd.sock renderd[29317]: config renderd(0): num_threads=4 renderd[29317]: config renderd(0): tile_dir=/var/lib/mod_tile renderd[29317]: config renderd(0): stats_file=/var/run/renderd/renderd.stats renderd[29317]: config map 0: name(default) file(/home/gis/mapnik/osm.xml) uri(/osm_tiles/) htcp() host(localhost) renderd[29317]: Initialising unix server socket on /var/run/renderd/renderd.sock renderd[29317]: Created server socket 4 renderd[29317]: Renderd is using mapnik version 2.2.0 renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSans.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSerif-Italic.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSans-Oblique.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSans-ExtraLight.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSans-BoldOblique.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSerifCondensed-Bold.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSansCondensed-Bold.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSerif-BoldItalic.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSerifCondensed.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSansMono-BoldOblique.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/unifont-5.1.20080907.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSansMono.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSansMono-Bold.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSerif-Bold.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSerif.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSansCondensed-BoldOblique.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSerifCondensed-BoldItalic.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSans-Bold.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSansCondensed-Oblique.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSerifCondensed-Italic.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSansMono-Oblique.ttf renderd[29317]: DEBUG: Loading font: /usr/lib64/mapnik/fonts/DejaVuSansCondensed.ttf Running in foreground mode... 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[29317]: Starting stats thread debug: init_storage_backend: initialising file storage backend at: /var/lib/mod_tile renderd[29317]: Loading parameterization function for renderd[29317]: Loading parameterization function for debug: init_storage_backend: initialising file storage backend at: /var/lib/mod_tile renderd[29317]: Loading parameterization function for renderd[29317]: Loading parameterization function for renderd[29317]: Using web mercator projection settings renderd[29317]: Using web mercator projection settings renderd[29317]: Using web mercator projection settings renderd[29317]: Using web mercator projection settings Help me out here and point any mistake in configuration or anything?
أكثر...