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

Not able to start matcher server #32

Closed
euvlad opened this issue Oct 11, 2016 · 2 comments
Closed

Not able to start matcher server #32

euvlad opened this issue Oct 11, 2016 · 2 comments
Labels

Comments

@euvlad
Copy link

euvlad commented Oct 11, 2016

Thanks for this great library and the comprehensive instructions. It's an excellent piece of work!

I followed your instructions carefully and successfully started a map server with an imported OSM extract. Unfortunately, I'm experiencing an issue while trying to start a matcher server. After packaging the Barefoot JAR, I ran the following command and got the following output:

root@f1cc0014739b:/mnt# java -jar target/barefoot-0.1.0-matcher-jar-with-dependencies.jar --geojson config/server.properties config/switzerland.properties
2016-10-11 16:49:55,704 INFO [main] ServerControl: initialize server
2016-10-11 16:49:55,713 INFO [main] ServerControl: read database properties from file config/switzerland.properties
2016-10-11 16:49:55,719 INFO [main] Loader: load map from database switzerland
2016-10-11 16:49:55,721 INFO [main] Loader: open road reader for database switzerland at 127.0.0.1:5432
2016-10-11 16:49:55,722 INFO [main] Loader: database.host=127.0.0.1
2016-10-11 16:49:55,722 INFO [main] Loader: database.port=5432
2016-10-11 16:49:55,723 INFO [main] Loader: database.name=switzerland
2016-10-11 16:49:55,724 INFO [main] Loader: database.table=ways
2016-10-11 16:49:55,725 INFO [main] Loader: database.user=postgres
2016-10-11 16:49:55,725 INFO [main] Loader: database.road-types=./map/tools/road-types.json
2016-10-11 16:49:55,784 INFO [main] PostGISReader: open reader (standard)
2016-10-11 16:49:55,787 INFO [main] PostGISReader: open reader (parameterized)
2016-10-11 16:49:55,944 INFO [main] RoadMap: inserting roads ...
2016-10-11 16:49:55,948 INFO [main] PostGISReader: execute query
2016-10-11 16:49:56,003 ERROR [main] ServerControl: Executing PostgreSQL query failed: ERROR: column "gid" does not exist
Position: 8
2016-10-11 16:49:56,007 INFO [Thread-0] ServerControl: stopping server
2016-10-11 16:49:56,009 ERROR [Thread-0] ServerControl: stopping server failed, not yet started

Seems as if the table ways is missing a column. Please note: The import of the OSM extract was successful and showed no errors.

I'd appreciate any help on this one.

@smattheis
Copy link

Thanks for providing the log which makes error search very easy. Your sitzerland.properties refers to database.table=ways which should be database.table=bfmap_ways if you used the import.sh script. I hope that solves the problem.

@euvlad
Copy link
Author

euvlad commented Oct 11, 2016

Silly me! That solved the problem. Thanks so much! Great to see such excellent support.

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

No branches or pull requests

2 participants