Martin, are you using some virtual file system or something? Memory mapping could have a problem with this. Try graph.elevation.dataaccess=RAM_STORE
(potentially remove /vagrant/graphhopper/srtmprovider before) Regards, Peter On 29.05.2015 21:07, Martin Malfertheiner wrote: > Hi Peter, > > thanks for the quick response. I removed the file and tried again, but > with the same error: > > ./graphhopper.sh web europe_italy.pbf > ## using java 1.7.0_79 (64bit) from > ## using existing osm file europe_italy.pbf > ## existing jar found > tools/target/graphhopper-tools-0.5-SNAPSHOT-jar-with-dependencies.jar > ## now web. JAVA_OPTS=-Xmx2000m -Xms2000m -server > 2015-05-29 18:59:56,824 [main] INFO com.graphhopper.GraphHopper - > version 0.5|2015-05-28T07:55:15+0000 (4,12,3,2,2) > 2015-05-29 18:59:56,846 [main] INFO com.graphhopper.GraphHopper - > graph LevelGraphStorage|bike2|RAM_STORE|3D|NoExt|,,,,, > details:edges:0(0), nodes:0(0), name: /(0), geo:0(0), > bounds:1.7976931348623157E308,-1.7976931348623157E308,1.7976931348623157E308,-1.7976931348623157E308,1.7976931348623157E308,-1.7976931348623157E308 > 2015-05-29 18:59:56,870 [main] INFO com.graphhopper.GraphHopper - > start creating graph from europe_italy.pbf > 2015-05-29 18:59:56,871 [main] INFO com.graphhopper.GraphHopper - > using LevelGraphStorage|bike2|RAM_STORE|3D|NoExt|,,,,, > memory:totalMB:1933, usedMB:32 > 2015-05-29 19:02:30,454 [main] INFO com.graphhopper.reader.OSMReader > - 50 000 (preprocess), osmWayMap:14 809 totalMB:1933, usedMB:1710 > 2015-05-29 19:02:31,112 [main] INFO com.graphhopper.reader.OSMReader > - 100 000 (preprocess), osmWayMap:24 907 totalMB:1933, usedMB:1452 > 2015-05-29 19:02:31,400 [main] INFO com.graphhopper.reader.OSMReader > - 150 000 (preprocess), osmWayMap:31 498 totalMB:1933, usedMB:1495 > 2015-05-29 19:02:31,459 [main] INFO com.graphhopper.reader.OSMReader > - creating graph. Found nodes (pillar+tower):29 773 397, totalMB:1933, > usedMB:1495 > 2015-05-29 19:02:31,554 [main] INFO > com.graphhopper.reader.dem.SRTMProvider - SRTM Elevation Provider, > from: http://dds.cr.usgs.gov/srtm/version2_1/SRTM3/, to: > /vagrant/graphhopper/srtmprovider, as: MMAP_STORE > Exception in thread "PBF Reader" java.lang.RuntimeException: Unable to > read PBF file. > at com.graphhopper.reader.pbf.PbfReader.run(PbfReader.java:53) > at java.lang.Thread.run(Thread.java:745) > > Regards, > > Martin > >> Am 29.05.2015 um 20:46 schrieb Peter <[email protected] >> <mailto:[email protected]>>: >> >> Hi Martin, >> >> would you mind to remove the file dem135186 in >> /vagrant/graphhopper/srtmprovider and try again? >> >> Regards, >> Peter >> >> On 29.05.2015 20:32, Martin Malfertheiner wrote: >>> Hi, >>> >>> I’m new to Graphhopper. Recently I tried to setup a graphhopper >>> server locally. Everything worked like a charm with 2D routing, but >>> then I tried to start the server with bike2 and elevation provider >>> SRTM. I always get the same error: >>> >>> Config: >>> graph.flagEncoders=bike2 >>> graph.elevation.provider=srtm >>> graph.elevation.cachedir=./srtmprovider/ >>> >>> Run: >>> ./graphopper.sh web europe-italy.pbf >>> >>> ./graphhopper.sh web europe_italy.pbf >>> ## using java 1.7.0_79 (64bit) from >>> ## using existing osm file europe_italy.pbf >>> ## existing jar found >>> tools/target/graphhopper-tools-0.5-SNAPSHOT-jar-with-dependencies.jar >>> ## now web. JAVA_OPTS=-Xmx2000m -Xms2000m -server >>> 2015-05-29 18:11:31,849 [main] INFO com.graphhopper.GraphHopper - >>> version 0.5|2015-05-28T07:55:15+0000 (4,12,3,2,2) >>> 2015-05-29 18:11:31,868 [main] INFO com.graphhopper.GraphHopper - >>> graph LevelGraphStorage|bike2|RAM_STORE|3D|NoExt|,,,,, >>> details:edges:0(0), nodes:0(0), name: /(0), geo:0(0), >>> bounds:1.7976931348623157E308,-1.7976931348623157E308,1.7976931348623157E308,-1.7976931348623157E308,1.7976931348623157E308,-1.7976931348623157E308 >>> 2015-05-29 18:11:31,893 [main] INFO com.graphhopper.GraphHopper - >>> start creating graph from europe_italy.pbf >>> 2015-05-29 18:11:31,894 [main] INFO com.graphhopper.GraphHopper - >>> using LevelGraphStorage|bike2|RAM_STORE|3D|NoExt|,,,,, >>> memory:totalMB:1933, usedMB:32 >>> 2015-05-29 18:17:00,445 [main] INFO >>> com.graphhopper.reader.OSMReader - 50 000 (preprocess), >>> osmWayMap:14 809 totalMB:1933, usedMB:737 >>> 2015-05-29 18:17:01,353 [main] INFO >>> com.graphhopper.reader.OSMReader - 100 000 (preprocess), >>> osmWayMap:24 907 totalMB:1933, usedMB:919 >>> 2015-05-29 18:17:02,140 [main] INFO >>> com.graphhopper.reader.OSMReader - 150 000 (preprocess), >>> osmWayMap:31 498 totalMB:1933, usedMB:946 >>> 2015-05-29 18:17:02,325 [main] INFO >>> com.graphhopper.reader.OSMReader - creating graph. Found nodes >>> (pillar+tower):29 773 397, totalMB:1933, usedMB:946 >>> 2015-05-29 18:17:02,438 [main] INFO >>> com.graphhopper.reader.dem.SRTMProvider - SRTM Elevation Provider, >>> from: http://dds.cr.usgs.gov/srtm/version2_1/SRTM3/, to: >>> /vagrant/graphhopper/srtmprovider, as: MMAP_STORE >>> 2015-05-29 18:17:02,466 [main] WARN >>> com.graphhopper.reader.dem.SRTMProvider - cannot load dem135186, >>> error:Not a GraphHopper file! Expected 'GH' as file marker but was >>> Exception in thread "PBF Reader" java.lang.RuntimeException: Unable >>> to read PBF file. >>> at com.graphhopper.reader.pbf.PbfReader.run(PbfReader.java:53) >>> >>> Am I missing out something? >>> >>> All the best, >>> >>> Martin >> >> _______________________________________________ >> GraphHopper mailing list >> [email protected] <mailto:[email protected]> >> https://lists.openstreetmap.org/listinfo/graphhopper > > > > _______________________________________________ > GraphHopper mailing list > [email protected] > https://lists.openstreetmap.org/listinfo/graphhopper
_______________________________________________ GraphHopper mailing list [email protected] https://lists.openstreetmap.org/listinfo/graphhopper
