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

Set up an OTP instance taking too long #30

Closed
kimnewzealand opened this issue May 29, 2019 · 8 comments
Closed

Set up an OTP instance taking too long #30

kimnewzealand opened this issue May 29, 2019 · 8 comments

Comments

@kimnewzealand
Copy link

kimnewzealand commented May 29, 2019

I have successfully created a graph object but it seems like there is a potential issue with setting up the OTP instance. See below error message.

log <- otp_build_graph(otp = path_otp, dir = path_data, memory = 1)

Basic checks completed, building graph, this may take a few minutes
Graph built

otp_setup(otp = path_otp, dir = path_data)

2019-05-30 11:05:41 OTP is loading and may take a while to be useable
2019-05-30 11:11:05 OTP is taking an unusually long time to load, releasing R to your control

Trying the other alternative ports example

otp_setup(otp = path_otp, dir = path_data, port = 8801, securePort = 8802)

2019-05-30 11:11:06 OTP is loading and may take a while to be useable
2019-05-30 11:16:29 OTP is taking an unusually long time to load, releasing R to your control

@kimnewzealand
Copy link
Author

O this one does not appear to be an issue. I tried the memory=1 trick again and it worked so I will close

otp_setup(otp = path_otp, dir = path_data,memory=1)

2019-05-30 12:02:35 OTP is loading and may take a while to be useable
Router http://localhost:8080/otp/routers/default exists
2019-05-30 12:05:47 OTP is ready to use Go to localhost:8080 in your browser to view the OTP

@mattdpalm
Copy link

Hello,

I am encountering the same issue:

2020-06-15 01:35:22 OTP is loading and may take a while to be useable
2020-06-15 23:27:51 OTP is taking an unusually long time to load, releasing R to your control, OTP will continue in the background

except the solution posted by Kiminnewzealand did not work for me. I tried:

log2 <- otp_setup(otp = path_otp, 
                  dir = path_data, router="MARTA 2019", memory=1)

and got the error:

Assertion on 'memory' failed: Element 1 is not >= 500.

@mem48
Copy link
Contributor

mem48 commented Jun 17, 2020

@mattdpalm are you using the demo data? What kind of computer are you using? Have you checked all the requirments in the prerequisites https://docs.ropensci.org/opentripplanner/articles/prerequisites.html

@mem48 mem48 reopened this Jun 17, 2020
@mattdpalm
Copy link

mattdpalm commented Jun 18, 2020 via email

@mem48
Copy link
Contributor

mem48 commented Jun 19, 2020

The whole state of Georgia might be too big to fit in to 16GB of ram. I'd suggest trying a smaller are first like the biggest city to get a feel for how much RAM is needed. Remember to use the memory argument in otp_build_graph and otp_setup

@mem48
Copy link
Contributor

mem48 commented Jun 22, 2020

@mattdpalm I'm closing this issue as I don't think your problem is caused by anything wrong with the package.

@mem48 mem48 closed this as completed Jun 22, 2020
@mattdpalm
Copy link

mattdpalm commented Jun 30, 2020 via email

@mem48
Copy link
Contributor

mem48 commented Jun 30, 2020

Hi, @mattdpalm I think you are having the same problem at #65 so can you try the suggestions there and if that doesn't work post on that issue?

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