Thanks for the reply. I created a new graph with the Basic Usage data from Portland, from the opentripplanner website. I tried to run the command, however got the following response:
(I removed the port 8080 part as my instance is running in the 80 port. When I try with 8080 I get a timeout error)
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.8.1</center>
</body>
</html>
From reading the opentripplanner docs, I decided to also try the following:
1. SSH into my instance.
2. Create a /var/otp/graphs/portland folder and copy my Graph.obj file in there.
3. Modify the OTP Docker run.sh file to the following:
java -Dlogback.configurationFile=/otp/logback.xml -Xmx7G -jar otp-0.20.1-ROUTERCONFIG.jar --server --router portland --insecure --autoScan
Which should be telling OTP to start the server, look for my portland router, and add it.
When I start OTP locally and I go to: localhost:8080/otp/routers/portland, with those parameters, I see that the router has been loaded successfully.
However when I do:
eb deploy --staged --verbose
To update the version of my app with the updated run.sh file, I get an error:
INFO: Successfully built aws_beanstalk/staging-app
ERROR: Docker container quit unexpectedly after launch: entripplanner.routing.impl.GraphScanner.startup(GraphScanner.java:93)
at org.opentripplanner.standalone.OTPMain.run(OTPMain.java:137)
at org.opentripplanner.standalone.OTPMain.main(OTPMain.java:88). Check snapshot logs for details.
ERROR: [Instance: i-088a6830497fe8982] Command failed on instance. Return code: 1 Output: (TRUNCATED)...pectedly after launch: entripplanner.routing.impl.GraphScanner.startup(GraphScanner.java:93)
at org.opentripplanner.standalone.OTPMain.run(OTPMain.java:137)
at org.opentripplanner.standalone.OTPMain.main(OTPMain.java:88). Check snapshot logs for details.
Hook /opt/elasticbeanstalk/hooks/appdeploy/enact/00run.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
I tried also without the --autoScan flag, and the update is successful, however when I try to verify if my router was added by going to:
all I get is:
<RouterList>
</RouterList>
So still no luck with the router. I'm not sure if even trying that makes sense when using OTP Docker? (I'm not familiar with Docker at all).
Do you have any clues of what I could be doing wrong?
Regards,
Yael