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

404 Error after OTP successfully started #6464

Open
OstiumAxioma opened this issue Feb 14, 2025 · 3 comments
Open

404 Error after OTP successfully started #6464

OstiumAxioma opened this issue Feb 14, 2025 · 3 comments

Comments

@OstiumAxioma
Copy link

NOTE: this issue system is intended for reporting bugs and tracking progress in software
development. For all other usage and software development questions or discussion, please post a
question in our chat room: https://gitter.im/opentripplanner/OpenTripPlanner.

Expected behavior

Read the generated json info from port 8081 (where I set the OTP to run)

Observed behavior

Return curl : FOUR ZERO FOUR HTTP 404 Not Found even with command
curl http://localhost:8081/otp/healthy

Version of OTP used (exact commit hash or JAR name)

otp-2.6.0-shaded.jar

Data sets in use (links to GTFS and OSM PBF files)

new-york-latest.osm.pbf
https://transitfeeds.com/p/mta/79

Command line used to start OTP

java -Xmx8G -jar otp.jar --load graphs/default --port 8081

Router config and graph build config JSON

Router:
{
"routingDefaults": {
"walkSpeed": 1.4,
"stairsReluctance": 2.0,
"carDropoffTime": 240
}
}

Build:
{
"osm": [
{
"source": "new-york-latest.osm.pbf"
}
],
"gtfs": [
{
"source": "ny-transit.gtfs.zip"
}
]
}

Steps to reproduce the problem

Generate graph, and start the OTP, then run any OTP command in terminal like:
curl http://localhost:8081/otp/routers
or
curl http://localhost:8081/otp/healthy

You will get FOUR ZERO FOUR HTTP 404 Not Found

The log of OTP is as below:

`06:35:43.701 INFO [main] (OtpStartupInfo.java:40) OTP STARTING UP (version: 2.6.0, ser.ver.id: 157, commit: 155d19b, branch: master) using Java 21.0.1
06:35:43.704 INFO [main] (ApplicationShutdownSupport.java:27) Adding shutdown hook 'server-shutdown-info'.
06:35:43.708 INFO [main] (OtpStartupInfo.java:45)


/ _ \ _ __ ___ _ | | __()_ __ | _ | | __ _ _ __ _ __ ___ _ __
| | | | '_ \ / _ \ '_ | || '| | '_ | |) | |/ ` | ' | ' \ / _ \ '|
| || | |) | / | | | || | | | |) | __/| | (| | | | | | | | / |
_/| .
/ _|| ||||| |_| ./|| ||_,|| ||| ||___||
|
| |_|
Version: 2.6.0
Ser.ver.id: 157
Commit: 155d19b
Branch: master
Build: 2024-09-18T11:56:07+02:00

06:35:43.708 INFO [main] (OTPMain.java:108) Searching for configuration and input files in Z:\07_2024_GenslerFellowship\WebGIS\backend\otp\graphs\default
06:35:43.798 INFO [main] (ConfigFileLoader.java:130) Load JSON configuration file 'graphs\default\otp-config.json'
06:35:43.803 INFO [main] (ConfigFileLoader.java:131) Summarizing 'otp-config.json': { }
06:35:43.837 INFO [main] (ConfigFileLoader.java:130) Load JSON configuration file 'graphs\default\build-config.json'
06:35:43.838 INFO [main] (ConfigFileLoader.java:131) Summarizing 'build-config.json': {
"osm" : [ {
"source" : "new-york-latest.osm.pbf"
} ],
"gtfs" : [ {
"source" : "ny-transit.gtfs.zip"
} ]
}
06:35:43.873 WARN [main] (NodeAdapter.java:170) Unexpected config parameter: 'gtfs:[{"source":"ny-transit.gtfs.zip"}]' in 'build-config.json'
06:35:43.882 INFO [main] (ConfigFileLoader.java:130) Load JSON configuration file 'graphs\default\router-config.json'
06:35:43.883 INFO [main] (ConfigFileLoader.java:131) Summarizing 'router-config.json': {
"routingDefaults" : {
"walkSpeed" : 1.4,
"stairsReluctance" : 2.0,
"carDropoffTime" : 240
}
}
06:35:43.904 WARN [main] (NodeAdapter.java:170) Unexpected config parameter: 'routingDefaults.carDropoffTime:240' in 'router-config.json'
06:35:43.904 WARN [main] (NodeAdapter.java:170) Unexpected config parameter: 'routingDefaults.stairsReluctance:2.0' in 'router-config.json'
06:35:43.904 WARN [main] (NodeAdapter.java:170) Unexpected config parameter: 'routingDefaults.walkSpeed:1.4' in 'router-config.json'
06:35:43.905 INFO [main] (OTPFeature.java:145) Features turned on:
APIBikeRental
APIServerInfo
APIUpdaterStatus
ConsiderPatternsForDirectTransfers
DebugUi
FloatingBike
GtfsGraphQlApi
OptimizeTransfers
TransferConstraints
TransmodelGraphQlApi
06:35:43.906 INFO [main] (OTPFeature.java:146) Features turned off:
GtfsGraphQlApiRentalStationFuzzyMatching
MinimumTransferTimeIsDefinitive
ParallelRouting
ActuatorAPI
AsyncGraphQLFetchers
Co2Emissions
DataOverlay
FaresV2
FlexRouting
GoogleCloudStorage
LegacyRestApi
MultiCriteriaGroupMaxFilter
RealtimeResolver
ReportApi
RestAPIPassInDefaultConfigAsJson
SandboxAPIGeocoder
SandboxAPIMapboxVectorTilesApi
SandboxAPIParkAndRideApi
TransferAnalyzer
06:35:43.920 INFO [main] (GraphBuilderDataSources.java:229) Data source location(s): HTTPS, graphs\default
06:35:43.920 INFO [main] (GraphBuilderDataSources.java:232) Existing files expected to be read or written:
06:35:43.934 INFO [main] (GraphBuilderDataSources.java:235) - 鈿欙笍 build-config.json graphs\default 2025-02-14 06:30:39 172 bytes
06:35:43.934 INFO [main] (GraphBuilderDataSources.java:235) - 鈿欙笍 otp-config.json graphs\default 2025-02-14 05:42:59 2 bytes
06:35:43.935 INFO [main] (GraphBuilderDataSources.java:235) - 鈿欙笍 router-config.json graphs\default 2025-02-14 06:30:50 125 bytes
06:35:43.936 INFO [main] (GraphBuilderDataSources.java:235) - 馃寪 graph.obj graphs\default 2025-02-14 05:31:50 506.9 MB
06:35:43.936 INFO [main] (GraphBuilderDataSources.java:240) Files excluded due to command line switches or unknown type:
06:35:43.937 INFO [main] (GraphBuilderDataSources.java:243) - 馃實 new-york-latest.osm.pbf graphs\default 2025-02-14 04:44:30 460.4 MB
06:35:43.938 INFO [main] (GraphBuilderDataSources.java:243) - 馃殞 ny-transit.gtfs.zip graphs\default 2025-02-14 05:22:43 5.6 MB
06:35:43.968 INFO [main] (SerializedGraphObject.java:170) Reading graph from 'graphs\default\graph.obj'
06:35:55.777 INFO [main] (StopModel.java:296) Index stop model...
06:35:55.781 INFO [main] (StopModel.java:298) Index stop model complete.
06:35:55.781 INFO [main] (TransitModel.java:165) Index transit model...
06:35:55.782 INFO [main] (TransitModelIndex.java:62) Transit model index init...
06:35:55.798 INFO [main] (TransitModelIndex.java:117) Transit Model index init complete.
06:35:55.798 INFO [main] (TransitModel.java:168) Index transit model complete.
06:35:55.951 INFO [main] (SerializedGraphObject.java:267) Graph loaded. |V|=2,838,736 |E|=7,365,001
06:35:55.951 INFO [main] (SerializedGraphObject.java:268) Transit loaded. |Stops|=998 |Patterns|=216 |ConstrainedTransfers|=616
06:35:55.962 INFO [main] (Graph.java:289) Index street model...
06:35:56.066 INFO [main] (StreetIndex.java:409) Index street vertex progress tracking started.
06:36:00.582 INFO [main] (StreetIndex.java:426) Index street vertex progress tracking complete. 2,838,736 done in 4s (628,595 per second).
06:36:00.582 INFO [main] (Graph.java:291) Index street model complete.
06:36:00.588 INFO [main] (ConstructApplication.java:150) Wiring up and configuring server.
06:36:00.636 INFO [main] (ConstructApplication.java:211) Creating transit layer for Raptor routing.
06:36:00.638 INFO [main] (TransitLayerMapper.java:82) Mapping transitLayer from TransitModel...
06:36:01.007 INFO [main] (TransitLayerMapper.java:99) Mapping complete.
06:36:01.041 INFO [main] (GraphUpdaterManager.java:141) Stopping updater manager with 0 updaters.
06:36:01.042 INFO [main] (GraphUpdaterManager.java:180) Stopped updater manager
06:36:01.042 INFO [updater-ready] (GraphUpdaterManager.java:276) OTP UPDATERS INITIALIZED (0 updaters) - OTP is ready for routing!
06:36:01.442 INFO [main] (Graph.java:349) Computed ellipsoid/geoid offset at (40.714441, -73.95107) as -33.38463264606467
06:36:01.443 INFO [main] (ConstructApplication.java:231) Creating initial raptor transfer cache progress tracking started.
06:36:01.541 INFO [main] (RaptorRequestTransferCache.java:45) Initializing cache with request: StreetRelevantOptions{transferMode: WALK}
06:36:01.551 INFO [main] (ConstructApplication.java:240) Creating initial raptor transfer cache progress tracking complete. 1 done in 0s (9 per second).
06:36:01.979 INFO [main] (ApplicationShutdownSupport.java:27) Adding shutdown hook 'server-shutdown'.
06:36:01.980 INFO [main] (GrizzlyServer.java:60) Starting OTP Grizzly server on port 8081 of interface 0.0.0.0
06:36:01.980 INFO [main] (GrizzlyServer.java:65) OTP server base directory is: [graphs\default]
06:36:02.021 INFO [main] (GrizzlyServer.java:161) Java reports that this machine has 16 available processors.
06:36:02.021 INFO [main] (GrizzlyServer.java:172) Maximum HTTP handler thread pool size will be 20 threads.
06:36:02.460 INFO [main] (ApplicationShutdownSupport.java:27) Adding shutdown hook 'grizzly-shutdown'.
06:36:02.537 INFO [main] (NetworkListener.java:812) Started listener bound to [0.0.0.0:8081]
06:36:02.538 INFO [main] (HttpServer.java:254) [HttpServer] Started.
06:36:02.538 INFO [main] (GrizzlyServer.java:141) Grizzly server running.
06:38:01.909 INFO [server-shutdown-info] (OtpStartupInfo.java:43) OTP SHUTTING DOWN (version: 2.6.0, ser.ver.id: 157, commit: 155d19b, branch: master)
06:38:01.909 INFO [server-shutdown] (OTPMain.java:241) OTP shutdown started...
06:38:01.911 INFO [server-shutdown] (OTPMain.java:246) OTP shutdown: resources released...`

@t2gran
Copy link
Member

t2gran commented Feb 17, 2025

06:35:43.873 WARN [main] (NodeAdapter.java:170) Unexpected config parameter: 'gtfs:[{"source":"ny-transit.gtfs.zip"}]' in 'build-config.json'
:
06:35:43.936 INFO [main] (GraphBuilderDataSources.java:240) Files excluded due to command line switches or unknown type:
06:35:43.937 INFO [main] (GraphBuilderDataSources.java:243) - 馃實 new-york-latest.osm.pbf graphs\default 2025-02-14 04:44:30 460.4 MB
06:35:43.938 INFO [main] (GraphBuilderDataSources.java:243) - 馃殞 ny-transit.gtfs.zip graphs\default 2025-02-14 05:22:43 5.6 MB

@OstiumAxioma
Copy link
Author

OstiumAxioma commented Feb 17, 2025

OK, just want to confirm, is isochrone calculation still a thing in OTP2? I tried to enable it in the router config, but it seems like parameter "SandboxAPITravelTime" is no longer available.

@leonardehrenfried
Copy link
Member

The Travel Time sandbox feature has been removed.

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