Hi,

it's my first time trying to set up a OSM server. I have been following this tutorial:

https://github.com/AnderPijoan/vectorosm (with node why i need to change how the maps are rendered for some specific requirements of my project).

i made everything, except that i installed the osm2pgsql from source why the repository version is too old.

but i get stuck at the importing of the DB, i'm using:

  osm2pgsql -m -s -c  -j -v --cache-strategy dense --flat-nodes tempFileErase -d osm -U osmuser --unlogged  --hstore-add-index --exclude-invalid-polygon -r pbf planet-latest.osm.pbf

but i get:

osm2pgsql SVN version 0.83.0 (64bit id space)

Using projection SRS 900913 (Spherical Mercator)
Setting up table: planet_osm_point
NOTICE:  table "planet_osm_point" does not exist, skipping
NOTICE:  table "planet_osm_point_tmp" does not exist, skipping
Setting up table: planet_osm_line
NOTICE:  table "planet_osm_line" does not exist, skipping
NOTICE:  table "planet_osm_line_tmp" does not exist, skipping
Setting up table: planet_osm_polygon
NOTICE:  table "planet_osm_polygon" does not exist, skipping
NOTICE:  table "planet_osm_polygon_tmp" does not exist, skipping
Setting up table: planet_osm_roads
NOTICE:  table "planet_osm_roads" does not exist, skipping
NOTICE:  table "planet_osm_roads_tmp" does not exist, skipping
Using built-in tag processing pipeline
Allocating memory for dense node cache
Allocating dense node cache in one big chunk
Node-cache: cache=800MB, maxblocks=0*102401, allocation method=8192
Mid: loading persistent node cache from tempFileErase
Failed to allocate space for node cache file: Success
Error occurred, cleaning up

any idea of how i can fix it?

Regards.

asked 02 Aug '13, 21:21

ipsilondev's gravatar image

ipsilondev
11112
accept rate: 0%


Most likely the drive you are running this on has less than 20 GB of free space available. The fact that osm2pgsql reports "Failed... Success" is due to a small bug in osm2pgsql (https://github.com/openstreetmap/osm2pgsql/issues/55) but the failure is real. Unless you are importing a very large data set, simply dropping the --flat-nodes is probably the best solution.

permanent link

answered 02 Aug '13, 23:23

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
70.0k806321097
accept rate: 24%

edited 03 Aug '13, 10:21

Your answer
toggle preview

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:

×205
×167
×88

question asked: 02 Aug '13, 21:21

question was seen: 10,363 times

last updated: 09 Jun '17, 12:59

powered by OSQA