You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The core and web, yes. Including the bash script for import and web to make GraphHopper available for more users and easier. The problem is that then a possible GraphHopper version in Debian will be probably very old compared to master, but even without this I see benefits like just providing the deb package for a very simple installation. E.g. I prefer to install ElasticSearch through deb although it is a simple java service.
#!/bin/sh# change dir so that logs go into /var/log/graphhopper/logscd /var/log/graphhopper
java -jar /opt/graphhopper/graphhopper-web-0.13-SNAPSHOT.jar server /etc/graphhopper/config-example.yml
Do not forget chmod +x graphhopper!
create an empty log file (workaround to create /var/log/graphhopper/logs in a later step)
sudo systemctl start graphhopper
# open localhost:8989 in the browser # see the log
tail -f /var/log/graphhopper/logs/graphhopper.log
journalctl -u graphhopper
journalctl -xe
remove the package
sudo dpkg -r graphhopper
TODO: changing the config to point to correct PBF is required after installing the package
TODO: test proper removal of the package
peacecop@peacecop-HP-ProBook-4520s:/var/log/graphhopper$ java -jar /home/peacecop/graphhopper/graphhopper-web-0.13.0.jar server /home/peacecop/graphhopper/config-example.yml
io.dropwizard.configuration.ConfigurationParsingException: /home/peacecop/graphhopper/config-example.yml has an error:
Malformed YAML at line: 6, column: 56; while parsing a block mapping
in 'reader', line 1, column 1:
graphhopper:
^
expected , but found ''
in 'reader', line 11, column 3:
graph.flag_encoders: car
^
at [Source: (FileInputStream); line: 5, column: 55]
at io.dropwizard.configuration.ConfigurationParsingException$Builder.build(ConfigurationParsingException.java:279)
at io.dropwizard.configuration.BaseConfigurationFactory.build(BaseConfigurationFactory.java:96)
at io.dropwizard.cli.ConfiguredCommand.parseConfiguration(ConfiguredCommand.java:126)
at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:74)
at io.dropwizard.cli.Cli.run(Cli.java:78)
at io.dropwizard.Application.run(Application.java:93)
at com.graphhopper.http.GraphHopperApplication.main(GraphHopperApplication.java:34)
Caused by: com.fasterxml.jackson.dataformat.yaml.snakeyaml.error.MarkedYAMLException: while parsing a block mapping
in 'reader', line 1, column 1:
graphhopper:
^
expected , but found ''
in 'reader', line 11, column 3:
graph.flag_encoders: car
^
at [Source: (FileInputStream); line: 5, column: 55]
at com.fasterxml.jackson.dataformat.yaml.snakeyaml.error.MarkedYAMLException.from(MarkedYAMLException.java:27)
at com.fasterxml.jackson.dataformat.yaml.YAMLParser.nextToken(YAMLParser.java:359)
at com.fasterxml.jackson.core.JsonParser.nextFieldName(JsonParser.java:825)
at com.fasterxml.jackson.databind.deser.std.BaseNodeDeserializer.deserializeObject(JsonNodeDeserializer.java:247)
at com.fasterxml.jackson.databind.deser.std.JsonNodeDeserializer.deserialize(JsonNodeDeserializer.java:68)
at com.fasterxml.jackson.databind.deser.std.JsonNodeDeserializer.deserialize(JsonNodeDeserializer.java:15)
at com.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:3984)
at com.fasterxml.jackson.databind.ObjectMapper.readTree(ObjectMapper.java:2384)
at io.dropwizard.configuration.BaseConfigurationFactory.build(BaseConfigurationFactory.java:81)
... 5 more
Caused by: while parsing a block mapping
in 'reader', line 1, column 1:
graphhopper:
^
expected , but found ''
in 'reader', line 11, column 3:
graph.flag_encoders: car
^
at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:572)
at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158)
at org.yaml.snakeyaml.parser.ParserImpl.getEvent(ParserImpl.java:168)
at com.fasterxml.jackson.dataformat.yaml.YAMLParser.nextToken(YAMLParser.java:355)
... 12 more
Activity
devemux86 commentedon Nov 16, 2015
👍
Interesting idea!
You mean the core package?
karussell commentedon Nov 16, 2015
The core and web, yes. Including the bash script for
importandwebto make GraphHopper available for more users and easier. The problem is that then a possible GraphHopper version in Debian will be probably very old compared to master, but even without this I see benefits like just providing the deb package for a very simple installation. E.g. I prefer to install ElasticSearch through deb although it is a simple java service.boldtrn commentedon Dec 8, 2015
Additionally it would be nice to have a service file for Debian (or systemd in general) to load graphhopper on server startup.
akuckartz commentedon Dec 8, 2015
👍
karussell commentedon Sep 10, 2018
Waiting for a contribution here ... for now closing
karussell commentedon Mar 16, 2019
With fpm it is already partly working.
Here are the steps:
Do not forget
chmod +x graphhopper!TODO: changing the config to point to correct PBF is required after installing the package
TODO: test proper removal of the package
piiskop commentedon Jun 9, 2020
peacecop@peacecop-HP-ProBook-4520s:/var/log/graphhopper$ java -jar /home/peacecop/graphhopper/graphhopper-web-0.13.0.jar server /home/peacecop/graphhopper/config-example.yml
io.dropwizard.configuration.ConfigurationParsingException: /home/peacecop/graphhopper/config-example.yml has an error:
in 'reader', line 1, column 1:
graphhopper:
^
expected , but found ''
in 'reader', line 11, column 3:
graph.flag_encoders: car
^
at [Source: (FileInputStream); line: 5, column: 55]
Caused by: com.fasterxml.jackson.dataformat.yaml.snakeyaml.error.MarkedYAMLException: while parsing a block mapping
in 'reader', line 1, column 1:
graphhopper:
^
expected , but found ''
in 'reader', line 11, column 3:
graph.flag_encoders: car
^
at [Source: (FileInputStream); line: 5, column: 55]
at com.fasterxml.jackson.dataformat.yaml.snakeyaml.error.MarkedYAMLException.from(MarkedYAMLException.java:27)
at com.fasterxml.jackson.dataformat.yaml.YAMLParser.nextToken(YAMLParser.java:359)
at com.fasterxml.jackson.core.JsonParser.nextFieldName(JsonParser.java:825)
at com.fasterxml.jackson.databind.deser.std.BaseNodeDeserializer.deserializeObject(JsonNodeDeserializer.java:247)
at com.fasterxml.jackson.databind.deser.std.JsonNodeDeserializer.deserialize(JsonNodeDeserializer.java:68)
at com.fasterxml.jackson.databind.deser.std.JsonNodeDeserializer.deserialize(JsonNodeDeserializer.java:15)
at com.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:3984)
at com.fasterxml.jackson.databind.ObjectMapper.readTree(ObjectMapper.java:2384)
at io.dropwizard.configuration.BaseConfigurationFactory.build(BaseConfigurationFactory.java:81)
... 5 more
Caused by: while parsing a block mapping
in 'reader', line 1, column 1:
graphhopper:
^
expected , but found ''
in 'reader', line 11, column 3:
graph.flag_encoders: car
^