Reinstalling rclone with dropbox issue

Apologies for 2 newbie questions. I was able to install rclone successfully with dropbox. Setting up cron job with rclone to automate but did not work.

rclonedropbox (at ubuntu as username, not root - that's the filename I made executable)
#!/bin/bash
/usr/bin/rclone copy /home/ubuntu/test remote:Testfolder

crontab (at root)

          • /home/ubuntu/./rclonedropbox >/dev/null 2>&1

/usr/bin/rclone copy /home/ubuntu/test remote:Testfolder - works if I manually run it but not as cron. (1st question)

I the uninstall rclone and removed cron job and script.

Uninstall rclone:
sudo rm /home/ubuntu/.config/rclone/rclone.conf
sudo rm /usr/bin/rclone
sudo rm /usr/local/share/man/man1/rclone.1

Tried to reinstall again, same process I use during first install:

curl https://rclone.org/install.sh | sudo bash

When I ran rclone config on first install I get the the usual:

n) New remote
d) Delete remote
q) Quit config
e/n/d/q> n
name> remote
Type of storage to configure.
Choose a number from below, or type in your own value
[snip]
XX / Dropbox
   \ "dropbox"
[snip]
Storage> dropbox
Dropbox App Key - leave blank normally.
app_key>
Dropbox App Secret - leave blank normally.
app_secret>
Remote config
Please visit:
https://www.dropbox.com/1/oauth2/authorize?client_id=XXXXXXXXXXXXXXX&response_type=code
Enter the code: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXXXXXXXX
--------------------
[remote]
app_key =
app_secret =
token = XXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXX_XXXXXXXXXXXXXXXXXXXXXXXXXXXXX

But after reinstall it only shows (below):
2nd question - How do i go back for it to show the dropbox authorize link?
I have also disconnected the rclone app in my dropbox account and rclone config again but still same issue.

2020/07/07 09:38:11 NOTICE: Config file "/home/ubuntu/.config/rclone/rclone.conf" not found - using defaults
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
name> remote
Type of storage to configure.
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
Dropbox App Client Id
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_id>
Dropbox App Client Secret
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_secret>
Edit advanced config? (y/n)
y) Yes
n) No (default)
y/n>
Edit advanced config? (y/n)
y) Yes
n) No (default)
y/n> n
Remote config
Use auto config?

  • Say Y if not sure
  • Say N if you are working on a remote or headless machine
    y) Yes (default)
    n) No
    y/n> y
    If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=Yl6eqoc21jputakYSXXTBA
    Log in and authorize rclone for access
    Waiting for code...

What is the problem you are having with rclone?

Reinstalling rclone with dropbox

What is your rclone version (output from rclone version)

rclone v1.52.2

  • os/arch: linux/amd64
  • go version: go1.14.4

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Ubuntu 18.04.4 LTS

Which cloud storage system are you using? (eg Google Drive)

Dropbox

The command you were trying to run (eg rclone copy /tmp remote:tmp)

ubuntu@xxx:~$ rclone config
2020/07/07 09:27:13 NOTICE: Config file "/home/ubuntu/.config/rclone/rclone.conf" not found - using defaults
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q>

I have created new server for Rclone. Installed rclone. But rclone config still shows:

":If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=series of characters"

Im sure I'm missing something, how do I make rclone config go to:

"https://www.dropbox.com/1/oauth2/authorize?client_id=XXXXXXXXXXXXXXX&response_type=code
Enter the code: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXXXXXXXX" ?

I suggest you change this to

* * * * * /home/ubuntu/./rclonedropbox >/tmp.rclone.log 2>&1

And check out /tmp/rclone.log for hints

Dropbox have deprecated the "enter the code" way of configuring it. You must have had quite an old version of rclone previously.

You'll need to run rclone on a machine with a web browser to configure it.

If you are configuring a remote machine then follow one of the paths here: https://rclone.org/remote_setup/

Thanks for the tips, i'll try them out.

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