GTFS Quickstart results in error

I tried to do the GTFS Quickstart (graphhopper/reader-gtfs at master · graphhopper/graphhopper · GitHub) but this results in the following error: The requested profile ‘pt’ does not exist. Available profiles: [foot]. Am I doing something wrong? I followed the Quickstart 100% as noted…

I just tried this myself and pasted the exact commands from the Quickstart to the command line (in an empty folder. They worked. Maybe there was some data left on your harddisk from a previous import? Can you try deleting the graphs folder and run the last command again?

There is one thing that did not work for me though: This url: http://localhost:8989/maps/pt/ gave me a 404 error (not the error about the missing ‘pt’ profile you mentioned). I’ll see if I can fix this.

Oh yeah, turns out I deleted the pt client (and map-matching and isochrone too) accidentally here: Replace old with new maps client by easbar · Pull Request #2674 · graphhopper/graphhopper · GitHub

I just put them back here: Put back pt, isochrone and map-matching clients, #2674 · graphhopper/graphhopper@37380c0 · GitHub

1 Like

Ok, thanks!

I installed on a Debian 11 server and get this error:

INFO [2022-10-25 19:06:39,779] com.graphhopper.http.IllegalArgumentExceptionMapper: bad request: The requested profile ‘pt’ does not exist.

If I check the logs I see the GtfsStorage is working and the gtfs is processed.

INFO  [2022-10-25 19:10:41,199] com.graphhopper.gtfs.GtfsStorage: Calendar range covered by all feeds: 2022-10-20 till 2022-12-10
INFO  [2022-10-25 19:10:48,012] com.graphhopper.GraphHopper: version 7.0|2022-10-25T18:53:05Z (9,21,6,5,2,9)
INFO  [2022-10-25 19:10:48,018] com.graphhopper.GraphHopper: graph foot|RAM_STORE|2D|no_turn_cost|nodes:9,edges:21,geometry:6,location_index:5,string_index:2,nodesCH:0,shortcuts:9, details:edges: 1 585 483(55MB), nodes: 1 228 782(15MB), bounds: 11.1918066,14.8060208,51.3409243,53.5850383, name:(3MB), geo:3 184 767(13MB)
INFO  [2022-10-25 19:10:48,037] com.graphhopper.http.GraphHopperManaged: loaded graph at:graphs/brandenburg-with-transit, data_reader_file:brandenburg-latest.osm.pbf, encoded values:["{\"className\":\"com.graphhopper.routing.ev.SimpleBooleanEncodedValue\",\"name\":\"foot_access\",\"bits\":1,\"min_storable_value\":0,\"max_storable_value\":1,\"max_value\":1,\"negate_reverse_direction\":false,\"store_two_directions\":true,\"fwd_data_index\":0,\"bwd_data_index\":0,\"fwd_shift\":0,\"bwd_shift\":1,\"fwd_mask\":1,\"bwd_mask\":2}","{\"className\":\"com.graphhopper.routing.ev.DecimalEncodedValueImpl\",\"name\":\"foot_average_speed\",\"bits\":4,\"min_storable_value\":0,\"max_storable_value\":15,\"max_value\":9,\"negate_reverse_direction\":false,\"store_two_directions\":false,\"fwd_data_index\":0,\"bwd_data_index\":0,\"fwd_shift\":2,\"bwd_shift\":-1,\"fwd_mask\":60,\"bwd_mask\":0,\"factor\":1.0,\"use_maximum_as_infinity\":false}","{\"className\":\"com.graphhopper.routing.ev.DecimalEncodedValueImpl\",\"name\":\"foot_priority\",\"bits\":4,\"min_storable_value\":0,\"max_storable_value\":15,\"max_value\":12,\"negate_reverse_direction\":false,\"store_two_directions\":false,\"fwd_data_index\":0,\"bwd_data_index\":0,\"fwd_shift\":6,\"bwd_shift\":-1,\"fwd_mask\":960,\"bwd_mask\":0,\"factor\":0.1,\"use_maximum_as_infinity\":false}","{\"className\":\"com.graphhopper.routing.ev.SimpleBooleanEncodedValue\",\"name\":\"foot_subnetwork\",\"bits\":1,\"min_storable_value\":0,\"max_storable_value\":1,\"max_value\":-2147483648,\"negate_reverse_direction\":false,\"store_two_directions\":false,\"fwd_data_index\":0,\"bwd_data_index\":0,\"fwd_shift\":10,\"bwd_shift\":-1,\"fwd_mask\":1024,\"bwd_mask\":0}","{\"className\":\"com.graphhopper.routing.ev.SimpleBooleanEncodedValue\",\"name\":\"roundabout\",\"bits\":1,\"min_storable_value\":0,\"max_storable_value\":1,\"max_value\":1,\"negate_reverse_direction\":false,\"store_two_directions\":false,\"fwd_data_index\":0,\"bwd_data_index\":0,\"fwd_shift\":11,\"bwd_shift\":-1,\"fwd_mask\":2048,\"bwd_mask\":0}","{\"className\":\"com.graphhopper.routing.ev.EnumEncodedValue\",\"name\":\"road_class\",\"bits\":5,\"min_storable_value\":0,\"max_storable_value\":31,\"max_value\":19,\"negate_reverse_direction\":false,\"store_two_directions\":false,\"fwd_data_index\":0,\"bwd_data_index\":0,\"fwd_shift\":12,\"bwd_shift\":-1,\"fwd_mask\":126976,\"bwd_mask\":0,\"enum_type\":\"com.graphhopper.routing.ev.RoadClass\"}","{\"className\":\"com.graphhopper.routing.ev.SimpleBooleanEncodedValue\",\"name\":\"road_class_link\",\"bits\":1,\"min_storable_value\":0,\"max_storable_value\":1,\"max_value\":1,\"negate_reverse_direction\":false,\"store_two_directions\":false,\"fwd_data_index\":0,\"bwd_data_index\":0,\"fwd_shift\":17,\"bwd_shift\":-1,\"fwd_mask\":131072,\"bwd_mask\":0}","{\"className\":\"com.graphhopper.routing.ev.EnumEncodedValue\",\"name\":\"road_environment\",\"bits\":3,\"min_storable_value\":0,\"max_storable_value\":7,\"max_value\":5,\"negate_reverse_direction\":false,\"store_two_directions\":false,\"fwd_data_index\":0,\"bwd_data_index\":0,\"fwd_shift\":18,\"bwd_shift\":-1,\"fwd_mask\":1835008,\"bwd_mask\":0,\"enum_type\":\"com.graphhopper.routing.ev.RoadEnvironment\"}","{\"className\":\"com.graphhopper.routing.ev.DecimalEncodedValueImpl\",\"name\":\"max_speed\",\"bits\":5,\"min_storable_value\":0,\"max_storable_value\":31,\"max_value\":31,\"negate_reverse_direction\":false,\"store_two_directions\":true,\"fwd_data_index\":0,\"bwd_data_index\":0,\"fwd_shift\":21,\"bwd_shift\":26,\"fwd_mask\":65011712,\"bwd_mask\":2080374784,\"factor\":5.0,\"use_maximum_as_infinity\":true}","{\"className\":\"com.graphhopper.routing.ev.EnumEncodedValue\",\"name\":\"road_access\",\"bits\":4,\"min_storable_value\":0,\"max_storable_value\":15,\"max_value\":8,\"negate_reverse_direction\":false,\"store_two_directions\":false,\"fwd_data_index\":1,\"bwd_data_index\":0,\"fwd_shift\":0,\"bwd_shift\":-1,\"fwd_mask\":15,\"bwd_mask\":0,\"enum_type\":\"com.graphhopper.routing.ev.RoadAccess\"}","{\"className\":\"com.graphhopper.routing.ev.EnumEncodedValue\",\"name\":\"foot_network\",\"bits\":3,\"min_storable_value\":0,\"max_storable_value\":7,\"max_value\":4,\"negate_reverse_direction\":false,\"store_two_directions\":false,\"fwd_data_index\":1,\"bwd_data_index\":0,\"fwd_shift\":4,\"bwd_shift\":-1,\"fwd_mask\":112,\"bwd_mask\":0,\"enum_type\":\"com.graphhopper.routing.ev.RouteNetwork\"}"], 2 ints for edge flags, edges: 1 585 483(55MB), nodes: 1 228 782(15MB), bounds: 11.1918066,14.8060208,51.3409243,53.5850383, name:(3MB), geo:3 184 767(13MB)
WARN  [2022-10-25 19:10:48,431] org.glassfish.jersey.internal.inject.Providers: A provider com.codahale.metrics.health.HealthCheckRegistry registered in SERVER runtime does not implement any provider interfaces applicable in the SERVER runtime. Due to constraint configuration problems the provider com.codahale.metrics.health.HealthCheckRegistry will be ignored.

If I use the url ‘/maps/pt/’ the Quick Start is working :grinning:

If I visit the url ‘/maps/’ I get that message ‘pt’ profile not found.

Ok can you try again with the most recent commit to master? You need to run git pull (or the git clone command again). And also run mvn clean package -DskipTests again before you re-start the server.

It works now on the url ‘/maps/pt/’ page, with my gtfs-data for Belgium (NMBS). On the main navigation url ‘/maps/’ still the ‘pt’ profile not found error.

I can’t see an error on your screenshot?

This is the errormessage.

→ The pt-routing api endpoint is functioning as it should.

Ah ok, yes but that won’t work anyway. Basically /maps/ and /maps/pt/ are different apps and public transport routing can only be done with /maps/pt/

1 Like

Aha, ok! Thanks :slight_smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.