Hi, I am trying to set OSM map server as per steps given in link below: But I am getting following following errors: While running renderd in debugging mode: renderd[6593]: An error occurred while loading the map layer 'default': Shape Plugin: shapefile '/etc/mapnik-osm-carto-data/data/simplified-land-polygons-complete-3857/simplified_land_polygons.shp' does not exist encountered during parsing of layer 'world' in Layer at line 76 of '/etc/mapnik-osm-carto-data/osm.xml' While giving pre-render command sudo render_list -a -s /var/run/renderd/renderd.sock ubuntu@ip-172-31-23-126:~$ sudo render_list -a -s /var/run/renderd/renderd.sock debug: init_storage_backend: initialising file storage backend at: /var/lib/mod_tile Rendering client Starting 1 rendering threads Rendering all tiles from zoom 0 to zoom 20 Rendering all tiles for zoom 0 from (0, 0) to (0, 0) Rendering all tiles for zoom 1 from (0, 0) to (1, 1) Rendering all tiles for zoom 2 from (0, 0) to (3, 3) Rendering all tiles for zoom 3 from (0, 0) to (7, 7) Rendering all tiles for zoom 4 from (0, 0) to (15, 15) Rendering all tiles for zoom 5 from (0, 0) to (31, 31) Rendering all tiles for zoom 6 from (0, 0) to (63, 63) rendering failed with command 4, pausing. rendering failed with command 4, pausing. Can somebody help? asked 22 Aug '19, 06:15 Reshma Maner |
Hello Check the /etc/mapnik-osm-carto-data/data/simplified-land-polygons-complete-3857/ directory and see what files/subdirectories are inside. Renderd is complying about missing shape file, so probably you didn't download it or you have got that file in different place. If the simplified-land-polygons-complete-3857 isn't there, then take look into the /etc/mapnik-osm-carto-data/data/ . You could also try the https://switch2osm.org/manually-building-a-tile-server-18-04-lts/ which should work without any major problems. answered 22 Aug '19, 16:10 januzi I downloaded land-polygons-split-3857.zip and simplified-land-polygons-complete-3857.zip from below link: https://osmdata.openstreetmap.de/download/simplified-land-polygons-complete-3857.zip https://osmdata.openstreetmap.de/download/land-polygons-split-3857.zip Now errors for these two files is gone and a new error is shown while I run renderd in debug mode. renderd[3641]: An error occurred while loading the map layer 'default': Shape Plugin: shapefile '/etc/mapnik-osm-carto-data/data/ne_110m_admin_0_boundary_lines_land/ne_110m_admin_0_boundary_lines_land.shp' does not exist encountered during parsing of layer 'necountries' in Layer at line 123 of '/etc/mapnik-osm-carto-data/osm.xml'
(23 Aug '19, 11:22)
Reshma Maner
This one will probably work. Download it and put into the /etc/mapnik-osm-carto-data/data/ne_110m_admin_0_boundary_lines_land/. If there are more errors about missing shapes, then type the last part of the error (like ne_110m_admin_0_boundary_lines_land.shp) into the google and download those shapes as well.
(23 Aug '19, 11:32)
januzi
No. its giving me an error for /etc/mapnik-osm-carto-data/data/ne_10m_populated_places/ne_10m_populated_places_fixed.shp. Above link downloads a different file.
(23 Aug '19, 13:32)
Reshma Maner
1
As I've mentioned before, type the missing file name into the google and get the file: http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_populated_places.zip
(23 Aug '19, 13:48)
januzi
1
One other thing to mention - whatever map style you get after getting this data to load, it won't look like https://www.openstreetmap.org does now, as that currently use Natural Earth data. The style might look like OSM's "standard style" looked about 6 years ago.
(23 Aug '19, 16:22)
SomeoneElse ♦
Hi, I have followed steps given in https://switch2osm.org/manually-building-a-tile-server-18-04-lts/ link I am getting following errors not for running renderd service Mapnik LOG> 2019-09-03 07:31:07: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-2' renderd[7426]: An error occurred while loading the map layer 'ajt': Postgis Plugin: FATAL: role "root" does not exist Connection string: ' dbname=gis connect_timeout=4' encountered during parsing of layer 'landcover-low-zoom' in Layer at line 819 of '/home/renderaccount/src/openstreetmap-carto/mapnik.xml' renderd[7426]: An error occurred while loading the map layer 'ajt': Postgis Plugin: FATAL: role "root" does not exist Connection string: ' dbname=gis connect_timeout=4' encountered during parsing of layer 'landcover-low-zoom' in Layer at line 819 of '/home/renderaccount/src/openstreetmap-carto/mapnik.xml' renderd[7426]: An error occurred while loading the map layer 'ajt': Postgis Plugin: FATAL: role "root" does not exist Connection string: ' dbname=gis connect_timeout=4'
(03 Sep '19, 08:33)
Reshma Maner
In the project.mml scroll down to the line where you have set dbname. Add the lines: user: "youruser" port: "5432" password: "yourpassword" host: "localhost" (where youruser and yourpassword are from the user that was added to the postgress in the "Installing postgresql / postgis" paragraph). Regenerate style.xml and try again. You might also need to use (in the psql console): ALTER USER youruser with password 'yourpassword';
(03 Sep '19, 10:31)
januzi
Tried this. Now getting below error. Password is correctly put in project.mml file. Then I recreated mapnik.xml file. renderd[26191]: An error occurred while loading the map layer 'ajt': Postgis Plugin: FATAL: password authentication failed for user "renderaccount" FATAL: password authentication failed for user "renderaccount" Connection string: 'host=localhost port=5432 dbname=gis user=renderaccount connect_timeout=4' encountered during parsing of layer 'landcover-low-zoom' in Layer at line 819 of '/home/ubuntu/src/openstreetmap-carto/mapnik.xml' renderd[26191]: An error occurred while loading the map layer 'ajt': Postgis Plugin: FATAL: password authentication failed for user "renderaccount" FATAL: password authentication failed for user "renderaccount" Connection string: 'host=localhost port=5432 dbname=gis user=renderaccount connect_timeout=4' encountered during parsing of layer 'landcover-low-zoom' in Layer at line 819 of '/home/ubuntu/src/openstreetmap-carto/mapnik.xml' renderd[26191]: An error occurred while loading the map layer 'ajt': Postgis Plugin: FATAL: password authentication failed for user "renderaccount"
(03 Sep '19, 13:01)
Reshma Maner
Try to log in into postgres from console: 1. psql -h localhost -U renderaccount 2. psql -h localhost -U renderaccount -W First command skips password, the second one asks for it. If you can't login with the renderaccount using those two commands, then login into postgres as root and run "alter user" command. After setting the password for renderaccount try again with the second command. This time you should be able to "get inside".
(03 Sep '19, 14:29)
januzi
using alter user command, I could login to postgresql. Getting below error now for the command - sudo renderd -f -c /usr/local/etc/renderd.conf renderd[14559]: config renderd: num_threads=4 renderd[14559]: config renderd: num_slaves=0 renderd[14559]: config renderd: tile_dir=/var/lib/mod_tile renderd[14559]: config renderd: stats_file=/var/run/renderd/renderd.stats renderd[14559]: config mapnik: plugins_dir=/usr/lib/mapnik/3.0/input renderd[14559]: config mapnik: font_dir=/usr/share/fonts/truetype renderd[14559]: config mapnik: font_dir_recurse=1 renderd[14559]: config renderd(0): Active renderd[14559]: config renderd(0): unix socketname=/var/run/renderd/renderd.sock renderd[14559]: config renderd(0): num_threads=4 renderd[14559]: config renderd(0): tile_dir=/var/lib/mod_tile renderd[14559]: config renderd(0): stats_file=/var/run/renderd/renderd.stats renderd[14559]: config map 0: name(ajt) file(/home/ubuntu/src/openstreetmap-carto/mapnik.xml) uri(/hot/) htcp() host(localhost) renderd[14559]: Initialising unix server socket on /var/run/renderd/renderd.sock socket bind failed for: /var/run/renderd/renderd.sock
(04 Sep '19, 06:56)
Reshma Maner
Hi, Now everything is working fine! thank you so much for the help. Now I have two more things to do:
(04 Sep '19, 07:10)
Reshma Maner
I am trying to append GCC states data using below command, but getting error. Command - sudo -u renderaccount osm2pgsql -d gis --append --slim -G --hstore ~/src/openstreetmap-carto/openstreetmap-carto.lua -C 4096 --number-processes 6 -S ~/src/openstreetmap-carto/openstreetmap-carto.style ~/data/gcc-states-latest.osm.pbf Error - Using built-in tag processing pipeline Using projection SRS 3857 (Spherical Mercator) Setting up table: planet_osm_point Setting up table: planet_osm_line Setting up table: planet_osm_polygon Setting up table: planet_osm_roads Reading in file: /home/ubuntu/data/gcc-states-latest.osm.pbf Using PBF parser. Processing: Node(120k 4.8k/s) Way(0k 0.00k/s) Relation(0 0.00/s)DB writer thread failed due to ERROR: COPY planet_osm_point(osm_id,"access","addr:housename","addr:housenumber","admin_level","aerialway","aeroway","amenity","barrier","boundary","building","highway","historic","junction","landuse","layer","leisure","lock","man_made","military","name","natural","oneway","place","power","railway","ref","religion","shop","tourism","water","waterway",tags,way) FROM STDIN failed: ERROR: column "tags" of relation "planet_osm_point" does not exist
(04 Sep '19, 07:44)
Reshma Maner
showing 5 of 12
show 7 more comments
|
Any guide that dates from 2013 and Ubuntu 12 is likely to be out of data in a number of areas, not least the Natural Earth data zip files have changed slightly in the last 6 years. I haven't tested the PPA that that used for a while (and not on Ubuntu 12 for ages) so cant guarantee that it will still work.
Is there a reason why you're using Ubuntu 12?
I am using Ubuntu 14.04 LTS
That's still from 2014 - is there anything stopping you using a later version?