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

Remote server troubles with .boxr-oauth #60

Closed
johnschoofs opened this issue Sep 11, 2017 · 6 comments
Closed

Remote server troubles with .boxr-oauth #60

johnschoofs opened this issue Sep 11, 2017 · 6 comments

Comments

@johnschoofs
Copy link

Hi there,

I know you said this is unsupported in your documentation, but I figured it might be worth reaching out anyways. I've copied this file to an equivalent directory (/home/user) on my server and am going to retrieve a file and am getting:

Error in checkAuth() :
It doesn't look like you've set up authentication for boxr yet.

Any help would be appreciated. Thanks in advance!

John

@johnschoofs
Copy link
Author

One more item to add - I've followed the steps in the feature request for rstudio server and haven't had any luck. Still getting the error message.

@skirmer
Copy link

skirmer commented Sep 13, 2017

I am seeing a similar issue - on an account where the .boxr-oauth worked beautifully in my remote environment until about 12 hours ago. It just stopped acknowledging my oauth token today. Any advice? I had a colleague replicate the same problem, and he had also previously had success with it.

@johnschoofs
Copy link
Author

Hi @skirmer - I came up with a fix that actually seems to work pretty well (still testing). I wrote a little shell script that mirrors the files I need using lftp. In my case we're not talking about massive data transfers, but even so, I would assume this approach to work, just need to modify how mirroring works and frequency of job. You can then work with the files locally, on your server.

lmk if this idea seems good to you but may need clarification or have questions.

@skirmer
Copy link

skirmer commented Sep 14, 2017

Well, I need a certain level of security for the files, so I'm not sure. I am working on a straight FTP to box solution, which seems like it might do the job, but it's more convoluted than boxr so I was hoping the oauth situation could be solved. Tell me about your strategy though, it might do!

@johnschoofs
Copy link
Author

If you're doing a straight ftp to box, this will work I believe. I'm on a vm using Ubuntu 16.04 LTS.

  1. apt-get lftp (if you don't have it installed already)
  2. make sure you're at the working directory you'd like to put the files you receive from box or push to box
  3. authenticate using lftp -u username,password ftp.box.com
  4. give other instructions as your use case dictates using lftp -e 'mirror; bye;' (small example)
  5. deal with permissions issues as needed
  6. ingest & perform some operations in R.

Hope this is helpful!

@brendan-r
Copy link
Collaborator

brendan-r commented Sep 18, 2017

Dear both, I'm afraid this is the reason I call this out as not working is because it doesn't work, as per #23.

This is really an issue with OAuth2.0 tokens, as opposed to anything peculiar to this package. They expire after a while, by design, requiring a login via a browser on the machine that's making the API requests. I'm afraid there's not much I can do to help.

If you're very keen on trying a solution that isn't moving tokens around, there may be something in this post from Rstudio (untested).

Sorry I can't be more help!

Happy Hacking,

Brendan

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