<p>Hello,<br>
When I run the following command from DOS:<br>
C:\osm2pgsql\mingw>c:\osm2pgsql\mingw\osm2pgsql.exe -c -l -U gis -P 5432 -H localhost -d carto_osm --slim --flat-nodes c:\osm2pgsql\flat\flatn.nodes -S c:\osm2pgsql\default_new.style C:\temp\newyork.osm.pbf</p>
<p>I end up getting an error "Mid: loading persistent node cache from c:\osm2pgsql\flat\flatn.nodes Failed to open node cache file: Invalid argument Error occurred, cleaning up"</p>
<p>Does anyone know what is causing this issue? What argument is causing this error?</p>
<p>Below is the full output:</p>
<p>osm2pgsql SVN version 0.85.0 (64bit id space)</p>
<p>Using projection SRS 4326 (Latlong)<br>
Setting up table: planet_osm_point<br>
NOTICE: table "planet_osm_point_tmp" does not exist, skipping<br>
Setting up table: planet_osm_line<br>
NOTICE: table "planet_osm_line_tmp" does not exist, skipping<br>
Setting up table: planet_osm_polygon<br>
NOTICE: table "planet_osm_polygon_tmp" does not exist, skipping<br>
Setting up table: planet_osm_roads<br>
NOTICE: table "planet_osm_roads_tmp" does not exist, skipping<br>
Using built-in tag processing pipeline<br>
Allocating memory for dense node cache<br>
Allocating dense node cache in one big chunk<br>
Node-cache: cache=800MB, maxblocks=102400*8192, allocation method=10<br>
Mid: loading persistent node cache from c:\osm2pgsql\flat\flatn.nodes<br>
Maximum node in persistent node cache: 0<br>
Mid: pgsql, scale=10000000 cache=800<br>
Setting up table: planet_osm_nodes<br>
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "planet_osm_nodes<br><em>pkey" for table "planet</em>osm_nodes"<br>
Setting up table: planet_osm_ways<br>
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "planet_osm_ways_<br>
pkey" for table "planet_osm_ways"<br>
Setting up table: planet_osm_rels<br>
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "planet_osm_rels_<br>
pkey" for table "planet_osm_rels"</p>
<p>Reading in file: C:\temp\newyork.osm.pbf<br>
Processing: Node(4207k 5.0k/s) Way(748k 7.97k/s) Relation(3360 101.82/s) parse<br>
time: 971s</p>
<p>Node stats: total(4207622), max(2631804192) in 836s<br>
Way stats: total(748964), max(257702182) in 94s<br>
Relation stats: total(3361), max(3457617) in 33s<br>
Committing transaction for planet_osm_point<br>
Committing transaction for planet_osm_line<br>
Committing transaction for planet_osm_polygon<br>
Committing transaction for planet_osm_roads</p>
<p>Going over pending ways...<br>
Maximum node in persistent node cache: 2631925759<br>
643484 ways are pending</p>
<p>Using 1 helper-processes<br>
Mid: loading persistent node cache from c:\osm2pgsql\flat\flatn.nodes<br>
Failed to open node cache file: Invalid argument<br>
Error occurred, cleaning up</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/openstreetmap/osm2pgsql/issues/119'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/4046574__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwNjYxNjg2MSwiZGF0YSI6eyJpZCI6MjQ1ODQ2OTl9fQ==--a1dd585150103606b65ac4abe7426c76892ae930.gif' height='1' width='1'></p>