Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regex_error #1021

Closed
benoitberlin opened this issue May 17, 2014 · 11 comments
Closed

regex_error #1021

benoitberlin opened this issue May 17, 2014 · 11 comments

Comments

@benoitberlin
Copy link

If I want to start the routing:

./osrm-routed

i get the error message:

[info] Reading options from: server.ini
[warn] exception: regex_error

my server.ini file is:

Threads=1
IP=0.0.0.0
Port=5000

hsgrData=/home/benedikt/updatedb/benin_neu.osrm.hsgr
nodesData=/home/benedikt/updatedb/benin_neu.osrm.nodes
edgesData=/home/benedikt/updatedb/benin_neu.osrm.edges
ramIndex=/home/benedikt/updatedb/benin_neu.osrm.ramIndex
fileIndex=/home/benedikt/updatedb/benin_neu.osrm.fileIndex
namesData=/home/benedikt/updatedb/benin_neu.osrm.names

Could anybody help?

@DennisOSRM
Copy link
Collaborator

As a workaround try ./osrm-routed hsgrData=/home/benedikt/updatedb/benin_neu.osrm

@benoitberlin
Copy link
Author

thank you for the answer. But if I execute this command it sais:

[warn] ./osrm-routed could not be locked to RAM
[info] starting up engines, v0.4.0, compiled at May 17 2014, 17:44:34
[info] HSGR file: "hsgrData=./benin_neu.osrm.hsgr"
[info] loading graph data
[info] loading graph from hsgrData=./benin_neu.osrm.hsgr
[warn] exception: hsgr file does not exist

but if I execute ls -l the file exists in this folder

@DennisOSRM
Copy link
Collaborator

check the path where your data files are.

@benoitberlin
Copy link
Author

it's in the same directory. I rebuilded them in the same directory:

ls -l
insgesamt 31476
-rwxr-xr-x 1 benedikt benedikt 1954077 Mai 17 17:03 benin_neu.osm.pbf
-rw-rw-r-- 1 benedikt benedikt 5694727 Mai 18 08:30 benin_neu.osrm
-rw-rw-r-- 1 benedikt benedikt 1459444 Mai 18 08:33 benin_neu.osrm.edges
-rw-rw-r-- 1 benedikt benedikt 5722628 Mai 18 08:33 benin_neu.osrm.fileIndex
-rw-rw-r-- 1 benedikt benedikt 1038172 Mai 18 08:33 benin_neu.osrm.geometry
-rw-rw-r-- 1 benedikt benedikt 4723132 Mai 18 08:35 benin_neu.osrm.hsgr
-rw-rw-r-- 1 benedikt benedikt 2508 Mai 18 08:30 benin_neu.osrm.names
-rw-rw-r-- 1 benedikt benedikt 1454236 Mai 18 08:33 benin_neu.osrm.nodes
-rw-rw-r-- 1 benedikt benedikt 35884 Mai 18 08:33 benin_neu.osrm.ramIndex
-rw-rw-r-- 1 benedikt benedikt 160 Mai 18 08:30 benin_neu.osrm.restrictions
-rw-rw-r-- 1 benedikt benedikt 25012 Mai 17 17:18 CMakeCache.txt
drwxrwxr-x 14 benedikt benedikt 4096 Mai 17 17:50 CMakeFiles
-rw-rw-r-- 1 benedikt benedikt 6597 Mai 17 17:18 cmake_install.cmake
-rw-rw-r-- 1 benedikt benedikt 15826 Mai 17 17:18 compile_commands.json
lrwxrwxrwx 1 benedikt benedikt 16 Mai 17 17:51 lib -> ../profiles/lib/
-rw-rw-r-- 1 benedikt benedikt 177954 Mai 17 17:19 libCOORDLIB.a
-rw-rw-r-- 1 benedikt benedikt 2098 Mai 17 17:19 libGITDESCRIPTION.a
-rw-rw-r-- 1 benedikt benedikt 6744844 Mai 17 17:25 libOSRM.a
-rw-rw-r-- 1 benedikt benedikt 370 Mai 17 17:18 libosrm.pc
-rw-rw-r-- 1 benedikt benedikt 144086 Mai 17 17:26 libUUID.a
-rw-rw-r-- 1 benedikt benedikt 38190 Mai 17 17:18 Makefile
-rwxrwxr-x 1 benedikt benedikt 329692 Mai 17 17:28 osrm-datastore
-rwxrwxr-x 1 benedikt benedikt 1275636 Mai 17 17:38 osrm-extract
-rwxrwxr-x 1 benedikt benedikt 375938 Mai 17 17:44 osrm-prepare
-rwxrwxr-x 1 benedikt benedikt 936961 Mai 17 17:50 osrm-routed
lrwxrwxrwx 1 benedikt benedikt 19 Mai 17 17:50 profile.lua -> ../profiles/car.lua
-rw-rw-r-- 1 benedikt benedikt 265 Mai 17 19:14 server.ini
-rw-rw-r-- 1 benedikt benedikt 180 Mai 18 08:30 stxxl.errlog
-rw-rw-r-- 1 benedikt benedikt 92 Mai 18 08:30 stxxl.log

@emiltin
Copy link
Contributor

emiltin commented May 18, 2014

dennis, i think your suggestion:

./osrm-routed hsgrData=/home/benedikt/updatedb/benin_neu.osrm

is slighty incorrect? shouldn't it be:

./osrm-routed /home/benedikt/updatedb/benin_neu.osrm

or

./osrm-routed hsgrData=/home/benedikt/updatedb/benin_neu.osrm.hsgr

@DennisOSRM
Copy link
Collaborator

oh wow. good catch @emiltin. You are right. it should be:

./osrm-routed /home/benedikt/updatedb/benin_neu.osrm

my bad.

@emiltin
Copy link
Contributor

emiltin commented May 18, 2014

wonder why the ini file cases a regex error?

@DennisOSRM
Copy link
Collaborator

Yeah, unclear atm. I'll dig into it tomorrow.

@benoitberlin
Copy link
Author

Thanks a lot. It works fine now!

@emiltin
Copy link
Contributor

emiltin commented May 19, 2014

nice that it works. however, i'm going to reopen this, sicne we should investigate why a regex error occured.

@DennisOSRM
Copy link
Collaborator

Fixed via c6b5f83.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants