Raspberry pi | OneDrive | ERROR

Hello All,

first time arround! I'm trying to setup rclone on a remote RPi 3 but something is not working.

I don't know why but I cant open the browser to auth the app.

Microsoft App Client Id
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_id> MYMSKEY
Microsoft App Client Secret
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_secret> MYMSKEY
Edit advanced config? (y/n)
y) Yes
n) No
y/n> n
Remote config
Make sure your Redirect URL is set to "http://localhost:53682/" in your custom config.
Use auto config?

  • Say Y if not sure
  • Say N if you are working on a remote or headless machine
    y) Yes
    n) No
    y/n> n
    For this to work, you will need rclone available on a machine that has a web browser available.
    Execute the following on your machine:
    rclone authorize "onedrive" "MYMSKEY" "MYMSKEY"
    Then paste the result below:
    result>

On other terminal, I run: rclone authorize "onedrive" "MYMSKEY" "MYMSKEY"

Result

root@DietPi:~# rclone authorize "onedrive" "MYMSKEY" "MYMSKEY"
2019/05/22 11:43:22 NOTICE: Config file "/root/.config/rclone/rclone.conf" not found - using defaults
Make sure your Redirect URL is set to "localhost:53682/" in your custom config.
If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
Log in and authorize rclone for access
Waiting for code...

however, I can't open the URL localhost:53682/
I'm always getting an: ERR_CONNECTION_REFUSED on browser.

please let me know if you need more details. Any support is wellcome.

Thanks.

You seem to be missing the part "For this to work, you will need rclone available on a machine that has a web browser available."

You ran it on the PI which does not have a browser.

Run it from the machine you posted this message on as that seems to have Internet access :slight_smile:

1 Like

Hello, sorry, I think I'm not understanding something.
I don't have physical access to that machine. Its a remote RPi server.
I did everything via SSH.

I'm I missing something?

Thanks.

Oh, this means I need to install rclone on RPi and also on my windows device that I use to SSH to that server?

You can use any machine you have Internet access on, like the machine you are posting from right now.

On that machine, install rclone, run the rclone authorize command.

1 Like

Hello!

A huge thanks for your support. It was my english interpretation. I wasn't understanding in that way. Problem solved.

Thanks.

Best Regards.

Not a problem.

If there a better word to use that helps, please do let us know as we can make it easier to understand.

1 Like

I looked everywhere and I didnt found anything related, maybe I'm the only one, so its my own fault. After reading your comment, all made sence. I think it was a block on my mind. haha.

Thank!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.