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

Error when running setup_r5 without internet connection #163

Closed
jamaps opened this issue Apr 29, 2021 · 10 comments
Closed

Error when running setup_r5 without internet connection #163

jamaps opened this issue Apr 29, 2021 · 10 comments

Comments

@jamaps
Copy link

jamaps commented Apr 29, 2021

Hi there! Great work overall on this library. It's been super helpful for some of my own work.

I'm currently trying to setup R5R on a server without internet for the first time (in order to link with individual level data) and I'm running into the following error:

> r5r_core <- setup_r5(data_path = "data", verbose = FALSE)
Error in curl::curl_fetch_memory(url, handle = handle) :
  Failed to connect to www.ipea.gov.br port 443: Bad access

Is there a way to bypass this connection check. I don't think I should need to connect to anything since I already have all my input data stored locally. But I might be misunderstanding what this connection is for.

Thanks!

@mvpsaraiva
Copy link
Collaborator

Hi @jamaps.

The first time you run setup_r5, it downloads R5's Jar file from our server. Since that file has 46MB, it can't be included directly in the package on CRAN. Technically, you can manually copy the r5-v6.2-all_20210408.jar file from a working installation of r5r to the jar folder in your server.

@jamaps
Copy link
Author

jamaps commented Apr 29, 2021

Super, thanks! I'll give that a try.

mvpsaraiva added a commit that referenced this issue May 4, 2021
@mvpsaraiva
Copy link
Collaborator

Hi @jamaps. Checking into this issue, we found out that setup_r5 still tried to download a metadata file from our server, and didn't work when no internet connection was available. I've added the required file to the repository so there is a backup version to use when running offline.

If you install the latest development version from GitHub, it should work offline. You still need to manually copy the main R5 jar (r5-v6.2-all_20210408.jar).

@jamaps
Copy link
Author

jamaps commented May 7, 2021

Thanks @mvpsaraiva! got it working by manually copying in the R5 jar file as suggested.

@mvpsaraiva
Copy link
Collaborator

I'm glad it works!
Thanks for using our package.

@hasanglr
Copy link

hasanglr commented Apr 4, 2024

Hello, I couldn't find the jar file on the repository. Where can I access it? I get this error "Problem connecting to data server. Please try it again in a few minutes." when I try to run setup_r5r function. I thought that copying and pasting jar file manually would solve the issue. I'd be glad if you can help me with this. @mvpsaraiva

@rafapereirabr
Copy link
Member

@hasanglr , what version of r5r are you using?

@hasanglr
Copy link

hasanglr commented Apr 4, 2024

It is 1.1.0

@rafapereirabr
Copy link
Member

Ok, this version of r5r v1.1.0 uses R5 V6.9. Here's the link to the JAR file. https://github.com/conveyal/r5/releases/download/v6.9/r5-v6.9-all.jar

@hasanglr
Copy link

Many thanks - that solved the 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

4 participants