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

"Later departures" adds same connection again #4779

Open
langbein-daniel opened this issue Mar 25, 2023 · 2 comments
Open

"Later departures" adds same connection again #4779

langbein-daniel opened this issue Mar 25, 2023 · 2 comments

Comments

@langbein-daniel
Copy link
Contributor

Digitransit-UI

I am running a local Digitransit instance for Finnland. When I search for a connection from Helsinki to Oulu, there is only one result: A train departuring at 15:24 CET (16:24 Z).

If I press "Later departures" a loading circle appears and after a moment, the same connection appears one more time.

Further presses on "Load departures" have the same behavior. I did also check the day, all of them are on the 23rd March.

image

OTP

When using the testing UI of OTP directly and selecting the mode "Transit, no airplane", the first result is the same connection:

image

But when pressing on "next page" (to load more results), there are other train connections on the same day, the first one just two hours later:

image

Additional info

In my Firefox browser console I see no error messages.

Output from my Digitransit-UI container:

journey-planner-digitransit-ui-1  | Digitransit-ui available on port 8080
journey-planner-digitransit-ui-1  | [BABEL] Note: The code generator has deoptimised the styling of /opt/digitransit-ui/digitransit-component/packages/digitransit-component-autosuggest/lib/index.js as it exceeds the max of 500KB.
journey-planner-digitransit-ui-1  | [BABEL] Note: The code generator has deoptimised the styling of /opt/digitransit-ui/digitransit-component/packages/digitransit-component-dialog-modal/lib/index.js as it exceeds the max of 500KB.

Output from my OpenTripPlanner container:

journey-planner-opentripplanner-1  | 14:06:58.246 INFO (OtpStartupInfo.java:39) OTP STARTING UP (version: 2.3.0-SNAPSHOT, ser.ver.id: 82, commit: 21896307c349a0a60426ad2e9d00ad23ad9bcb09, branch: dev-2.x)
journey-planner-opentripplanner-1  | 14:06:58.280 INFO (OtpStartupInfo.java:45) 
journey-planner-opentripplanner-1  |   ___                 _____     _       ____  _                             
journey-planner-opentripplanner-1  |  / _ \ _ __   ___ _ _|_   _| __(_)_ __ |  _ \| | __ _ _ __  _ __   ___ _ __ 
journey-planner-opentripplanner-1  | | | | | '_ \ / _ \ '_ \| || '__| | '_ \| |_) | |/ _` | '_ \| '_ \ / _ \ '__|
journey-planner-opentripplanner-1  | | |_| | |_) |  __/ | | | || |  | | |_) |  __/| | (_| | | | | | | |  __/ |   
journey-planner-opentripplanner-1  |  \___/| .__/ \___|_| |_|_||_|  |_| .__/|_|   |_|\__,_|_| |_|_| |_|\___|_| 
journey-planner-opentripplanner-1  |       |_|                        |_| 
journey-planner-opentripplanner-1  | Version:     2.3.0-SNAPSHOT
journey-planner-opentripplanner-1  | Ser.ver.id:  82
journey-planner-opentripplanner-1  | Commit:      21896307c349a0a60426ad2e9d00ad23ad9bcb09
journey-planner-opentripplanner-1  | Branch:      dev-2.x
journey-planner-opentripplanner-1  | Build:       2023-01-26T19:35:53+0000
journey-planner-opentripplanner-1  | 
journey-planner-opentripplanner-1  | 14:06:58.282 INFO (OTPMain.java:104) Searching for configuration and input files in /var/opentripplanner
journey-planner-opentripplanner-1  | 14:06:59.240 INFO (ConfigFileLoader.java:131) Load JSON configuration file '/var/opentripplanner/otp-config.json'
journey-planner-opentripplanner-1  | 14:06:59.264 INFO (ConfigFileLoader.java:132) Summarizing 'otp-config.json': {
journey-planner-opentripplanner-1  |   "otpFeatures" : {
journey-planner-opentripplanner-1  |     "SandboxAPILegacyGraphQLApi" : true,
journey-planner-opentripplanner-1  |     "SandboxAPIMapboxVectorTilesApi" : true
journey-planner-opentripplanner-1  |   }
journey-planner-opentripplanner-1  | }
journey-planner-opentripplanner-1  | 14:06:59.281 INFO (ConfigFileLoader.java:131) Load JSON configuration file '/var/opentripplanner/build-config.json'
journey-planner-opentripplanner-1  | 14:06:59.282 INFO (ConfigFileLoader.java:132) Summarizing 'build-config.json': {
journey-planner-opentripplanner-1  |   "areaVisibility" : true,
journey-planner-opentripplanner-1  |   "staticBikeParkAndRide" : true,
journey-planner-opentripplanner-1  |   "transferRequests" : [ {
journey-planner-opentripplanner-1  |     "modes" : "TRANSIT,BICYCLE_PARK"
journey-planner-opentripplanner-1  |   } ]
journey-planner-opentripplanner-1  | }
journey-planner-opentripplanner-1  | 14:06:59.584 INFO (ConfigFileLoader.java:135) File '/var/opentripplanner/router-config.json' is not present. Using default configuration.
journey-planner-opentripplanner-1  | 14:06:59.620 INFO (OTPFeature.java:121) Features turned on: 
journey-planner-opentripplanner-1  | 	APIBikeRental
journey-planner-opentripplanner-1  | 	APIServerInfo
journey-planner-opentripplanner-1  | 	APIGraphInspectorTile
journey-planner-opentripplanner-1  | 	APIUpdaterStatus
journey-planner-opentripplanner-1  | 	ConsiderPatternsForDirectTransfers
journey-planner-opentripplanner-1  | 	DebugClient
journey-planner-opentripplanner-1  | 	FloatingBike
journey-planner-opentripplanner-1  | 	OptimizeTransfers
journey-planner-opentripplanner-1  | 	TransferConstraints
journey-planner-opentripplanner-1  | 	SandboxAPILegacyGraphQLApi
journey-planner-opentripplanner-1  | 	SandboxAPIMapboxVectorTilesApi
journey-planner-opentripplanner-1  | 14:06:59.620 INFO (OTPFeature.java:122) Features turned off: 
journey-planner-opentripplanner-1  | 	MinimumTransferTimeIsDefinitive
journey-planner-opentripplanner-1  | 	ParallelRouting
journey-planner-opentripplanner-1  | 	ActuatorAPI
journey-planner-opentripplanner-1  | 	AsyncGraphQLFetchers
journey-planner-opentripplanner-1  | 	DataOverlay
journey-planner-opentripplanner-1  | 	FaresV2
journey-planner-opentripplanner-1  | 	FlexRouting
journey-planner-opentripplanner-1  | 	GoogleCloudStorage
journey-planner-opentripplanner-1  | 	RealtimeResolver
journey-planner-opentripplanner-1  | 	ReportApi
journey-planner-opentripplanner-1  | 	SandboxAPIGeocoder
journey-planner-opentripplanner-1  | 	SandboxAPIParkAndRideApi
journey-planner-opentripplanner-1  | 	SandboxAPITransmodelApi
journey-planner-opentripplanner-1  | 	SandboxAPITravelTime
journey-planner-opentripplanner-1  | 	TransferAnalyzer
journey-planner-opentripplanner-1  | 	VehicleToStopHeuristics
journey-planner-opentripplanner-1  | 14:06:59.664 INFO (GraphBuilderDataSources.java:221) Data source location(s): HTTPS, /var/opentripplanner
journey-planner-opentripplanner-1  | 14:06:59.665 INFO (GraphBuilderDataSources.java:224) Existing files expected to be read or written:
journey-planner-opentripplanner-1  | 14:06:59.670 INFO (GraphBuilderDataSources.java:227) - ⚙️ build-config.json  /var/opentripplanner  2023-03-06 15:40:26  142 bytes
journey-planner-opentripplanner-1  | 14:06:59.671 INFO (GraphBuilderDataSources.java:227) - ⚙️ otp-config.json  /var/opentripplanner  2023-02-09 19:26:30  111 bytes
journey-planner-opentripplanner-1  | 14:06:59.674 INFO (GraphBuilderDataSources.java:227) - 🌐 graph.obj  /var/opentripplanner  2023-03-25 13:58:39  885.9 MB
journey-planner-opentripplanner-1  | 14:06:59.680 INFO (SerializedGraphObject.java:157) Reading graph from '/var/opentripplanner/graph.obj'
journey-planner-opentripplanner-1  | 14:07:24.138 INFO (StopModel.java:237) Index stop model...
journey-planner-opentripplanner-1  | 14:07:24.362 INFO (StopModel.java:245) Index stop model complete.
journey-planner-opentripplanner-1  | 14:07:24.362 INFO (TransitModel.java:128) Index transit model...
journey-planner-opentripplanner-1  | 14:07:24.362 INFO (TransitModelIndex.java:63) Transit model index init...
journey-planner-opentripplanner-1  | 14:07:24.662 INFO (TransitModelIndex.java:118) Transit Model index init complete.
journey-planner-opentripplanner-1  | 14:07:24.662 INFO (TransitModel.java:131) Index transit model complete.
journey-planner-opentripplanner-1  | 14:07:25.148 INFO (SerializedGraphObject.java:255) Graph loaded.   |V|=3,176,578 |E|=8,003,635
journey-planner-opentripplanner-1  | 14:07:25.148 INFO (SerializedGraphObject.java:256) Transit loaded. |Stops|=78,210 |Patterns|=9,132 |ConstrainedTransfers|=87,217
journey-planner-opentripplanner-1  | 14:07:25.157 INFO (ConfigModel.java:69) Using the graph embedded JSON router configuration.
journey-planner-opentripplanner-1  | 14:07:25.157 INFO (Graph.java:275) Index street model...
journey-planner-opentripplanner-1  | 14:07:26.444 INFO (StreetIndex.java:401) Index street vertex progress tracking started.
journey-planner-opentripplanner-1  | 14:07:31.444 INFO (StreetIndex.java:412) Index street vertex progress: 1,154,000 of 3,176,578 (36%)
journey-planner-opentripplanner-1  | 14:07:36.445 INFO (StreetIndex.java:412) Index street vertex progress: 2,457,000 of 3,176,578 (77%)
journey-planner-opentripplanner-1  | 14:07:41.061 INFO (StreetIndex.java:418) Index street vertex progress tracking complete. 3,176,578 done in 14s (217,336 per second). 
journey-planner-opentripplanner-1  | 14:07:41.061 INFO (Graph.java:277) Index street model complete.
journey-planner-opentripplanner-1  | 14:07:41.066 INFO (ConstructApplication.java:129) Wiring up and configuring server.
journey-planner-opentripplanner-1  | 14:07:41.154 INFO (ConstructApplication.java:181) Creating transit layer for Raptor routing.
journey-planner-opentripplanner-1  | 14:07:41.155 INFO (TransitLayerMapper.java:78) Mapping transitLayer from Graph...
journey-planner-opentripplanner-1  | 14:07:44.411 INFO (TransitLayerMapper.java:95) Mapping complete.
journey-planner-opentripplanner-1  | 14:07:44.432 INFO (GraphUpdaterManager.java:222) OTP UPDATERS INITIALIZED - OTP is ready for routing!
journey-planner-opentripplanner-1  | 14:07:44.533 INFO (Graph.java:335) Computed ellipsoid/geoid offset at (61.78051, 24.9875225) as 20.149586050884857
journey-planner-opentripplanner-1  | 14:07:44.537 INFO (GrizzlyServer.java:51) Starting OTP Grizzly server on ports 8080 (HTTP) and 8081 (HTTPS) of interface 0.0.0.0
journey-planner-opentripplanner-1  | 14:07:44.537 INFO (GrizzlyServer.java:57) OTP server base directory is: [/var/opentripplanner]
journey-planner-opentripplanner-1  | 14:07:44.560 INFO (GrizzlyServer.java:169) Java reports that this machine has 16 available processors.
journey-planner-opentripplanner-1  | 14:07:44.560 INFO (GrizzlyServer.java:180) Maximum HTTP handler thread pool size will be 20 threads.
journey-planner-opentripplanner-1  | 14:07:45.205 WARN (PropertiesHelper.java:319) There is no way how to transform value "true" [java.lang.Boolean] to type [java.lang.String].
journey-planner-opentripplanner-1  | 14:07:45.255 INFO (NetworkListener.java:812) Started listener bound to [0.0.0.0:8080]
journey-planner-opentripplanner-1  | 14:07:45.259 INFO (NetworkListener.java:812) Started listener bound to [0.0.0.0:8081]
journey-planner-opentripplanner-1  | 14:07:45.261 INFO (HttpServer.java:254) [HttpServer] Started.
journey-planner-opentripplanner-1  | 14:07:45.261 INFO (GrizzlyServer.java:148) Grizzly server running.
journey-planner-opentripplanner-1  | 14:36:21.061 INFO (ThrottleLogger.java:33) Logger org.opentripplanner.raptor.rangeraptor.path.DestinationArrivalPaths is throttled, only one messages is logged for every 1 second interval.
journey-planner-opentripplanner-1  | 14:36:22.767 INFO (ThrottleLogger.java:33) Logger org.opentripplanner.routing.algorithm.transferoptimization.OptimizeTransferService is throttled, only one messages is logged for every 1 second interval.
@langbein-daniel
Copy link
Contributor Author

I found your national test instance for Finland (https://opas.matka.fi) and the problem does not occur over there:

image

So maybe this is caused by a timeout in the UI waiting for results from OTP just in my specific setup?

@langbein-daniel
Copy link
Contributor Author

For a later departure, there appears an error sign without further information. Not sure if there was supposed to be some more information for the user such as "problem loading results".

image

And by increasing the departure time even more I reproduced the same example with repeating results when clicking on "Later departures":

image

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

1 participant