openstreetmap / mod_tile

Renders map tiles with mapnik and serves them using apache
http://wiki.openstreetmap.org/wiki/Mod_tile
GNU General Public License v2.0
288 stars 190 forks source link

sudo renderd -f -c /etc/renderd.conf #373

Open simwin opened 8 months ago

simwin commented 8 months ago

sudo renderd -f -c /etc/renderd.conf

** (process:50560): ERROR **: 22:09:19.783: An error occurred while loading the map layer 'ajt': Shape Plugin: shapefile '/var/osm/openstreetmap-carto-AJT/data/simplified-land-polygons-complete-3857/simplified_land_polygons.shp' does not exist  encountered during parsing of layer 'world' in Layer at line 241 of '/var/osm/openstreetmap-carto-AJT/mapnik.xml'

** (process:50560): ERROR **: 22:09:19.794: An error occurred while loading the map layer 'ajt': Shape Plugin: shapefile '/var/osm/openstreetmap-carto-AJT/data/simplified-land-polygons-complete-3857/simplified_land_polygons.shp' does not exist  encountered during parsing of layer 'world' in Layer at line 241 of '/var/osm/openstreetmap-carto-AJT/mapnik.xml'

** (process:50560): ERROR **: 22:09:19.800: An error occurred while loading the map layer 'ajt': Shape Plugin: shapefile '/var/osm/openstreetmap-carto-AJT/data/simplified-land-polygons-complete-3857/simplified_land_polygons.shp' does not exist  encountered during parsing of layer 'world' in Layer at line 241 of '/var/osm/openstreetmap-carto-AJT/mapnik.xml'

** (process:50560): ERROR **: 22:09:19.803: An error occurred while loading the map layer 'ajt': Shape Plugin: shapefile '/var/osm/openstreetmap-carto-AJT/data/simplified-land-polygons-complete-3857/simplified_land_polygons.shp' does not exist  encountered during parsing of layer 'world' in Layer at line 241 of '/var/osm/openstreetmap-carto-AJT/mapnik.xml
SomeoneElseOSM commented 8 months ago

This doesn't look like a mod_tile error as such; more like the instructions in openstreetmap-carto-AJT don't account for wherever the natural earth download puts simplified_land_polygons.shp et al, or your changes to paths haven't been accounted for in the files you're using.

This can be a bit of a moveable feast, although the last couple of times I've run it it has worked first time.

Maybe a thread in https://community.openstreetmap.org/c/help-and-support/7/none might be the better place to ask rather than an issue here?

simwin commented 8 months ago

In line 241 I have this: <Layer name="world" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">

are you sure this is the paths problems with simplified_land_polygons.shp?

Maybe a thread in https://community.openstreetmap.org/c/help-and-support/7/none might be the better place to ask rather than an issue here?

May be, I'll try...

pnorman commented 8 months ago

This doesn't look like a mod_tile/renderd issue. It could be a Mapnik or style issue, or, most likely, a user error. You should never be running renderd as root, so there's at least one user error.

hummeltech commented 8 months ago

@simwin Yes, I agree with the others here, it appears that the most likely issue here is that the file /var/osm/openstreetmap-carto-AJT/data/simplified-land-polygons-complete-3857/simplified_land_polygons.shp does not exist.