Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] binhex - Rclone

Featured Replies

Thank you for the clear explanation. 24H is fine for my use. I check this morning and it is working as you described :)  

  • 2 weeks later...
  • Replies 196
  • Views 50.4k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • hi guys, this feature is now in, please pull down latest image then create new variable with key name 'RCLONE_DIRECTION', valid values are 'localtoremote', 'remotetolocal', or 'both', if you dont know

  • MyPoorUnraid
    MyPoorUnraid

    Hello, thanks for this docker. I've just finished setting it up, and wanted to share a possible workaround for the issue mentioned here: https://github.com/binhex/arch-rclone/issues/1   Note

  • Hello, i have installed the docker container on my Unraid and try to access on the Web-UI, but with an error "ERR_CONNECTION_REFUSED". In the container config, i have activated this with the

Posted Images

Does this docker have a built in web browser that appears to be needed for authentication with Google Drive?
 

I run my Unraid server headless and I see two different sets of instructions for the authentication process just not sure which instructions to use for this?

  • Author
54 minutes ago, wgstarks said:

I see two different sets of instructions for the authentication process

please link to both so i can fix that.

 

54 minutes ago, wgstarks said:

Does this docker have a built in web browser that appears to be needed for authentication with Google Drive?

no built in web browser, nope, if creation of the config file for the cloud provider requires a web browser then i would advise running through the creation of the config first on a machine that has rclone and a web browser installed, maybe i need to reword Q1/A1 to be clearer:- https://github.com/binhex/documentation/blob/master/docker/faq/rclone.md

2 hours ago, binhex said:

please link to both so i can fix that.

 

no built in web browser, nope, if creation of the config file for the cloud provider requires a web browser then i would advise running through the creation of the config first on a machine that has rclone and a web browser installed, maybe i need to reword Q1/A1 to be clearer:- https://github.com/binhex/documentation/blob/master/docker/faq/rclone.md

Thx. Figured out the authentication and got that set but still missing something somewhere. Almost everything is default but I get an error failed to open log file. I also see that the media shares path isn't being created in the shares tab. Also no webui (failed to connect).

 

dockerrun.txtrclonelog.txt

2 hours ago, wgstarks said:

Thx. Figured out the authentication and got that set but still missing something somewhere. Almost everything is default but I get an error failed to open log file. I also see that the media shares path isn't being created in the shares tab. Also no webui (failed to connect).

 

dockerrun.txt 1.07 kB · 0 downloads rclonelog.txt 5.84 kB · 0 downloads

The webui started working after I changed the WEBUI_PASS to rclone. Now I'm getting an error that RCLONE_MEDIA_SHARES path does not exist. The share does exist. I created it manually.

 

Screenshot2024-07-04at7_30_16PM.thumb.png.dfa2555744d1f25de826e47799c8a222.png

 

New docker run

Quote

docker run
  -d
  --name='binhex-rclone'
  --net='bridge'
  -e TZ="America/New_York"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="Brunnhilde"
  -e HOST_CONTAINERNAME="binhex-rclone"
  -e 'RCLONE_CONFIG_PATH'='/config/rclone/config/rclone.conf'
  -e 'RCLONE_MEDIA_SHARES'='/googledrive_backup/'
  -e 'RCLONE_REMOTE_NAME'='remote'
  -e 'RCLONE_SLEEP_PERIOD'='168h'
  -e 'RCLONE_USER_FLAGS'=''
  -e 'RCLONE_OPERATION'='copy'
  -e 'RCLONE_DIRECTION'='remotetolocal'
  -e 'RCLONE_POST_CHECK'='yes'
  -e 'ENABLE_WEBUI'='yes'
  -e 'WEBUI_USER'='admin'
  -e 'WEBUI_PASS'='rclone'
  -e 'UMASK'='000'
  -e 'PUID'='99'
  -e 'PGID'='100'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:5572]/'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/binhex/docker-templates/master/binhex/images/rclone-icon.png'
  -p '53682:53682/tcp'
  -p '5572:5572/tcp'
  -v '/mnt/user':'/media':'rw'
  -v '/mnt/cache/appdata/binhex-rclone':'/config':'rw' 'binhex/arch-rclone' 

900eb1f3c25b75abc2377654e521e923932183c1c258d9ce06c5b687e02b04e8

The command finished successfully!

 

Log

Quote

text  error  warn  system  array  login  

Created by...
___.   .__       .__
\_ |__ |__| ____ |  |__   ____ ___  ___
 | __ \|  |/    \|  |  \_/ __ \\  \/  /
 | \_\ \  |   |  \   Y  \  ___/ >    <
 |___  /__|___|  /___|  /\___  >__/\_ \
     \/        \/     \/     \/      \/
  https://hub.docker.com/u/binhex/

2024-07-04 19:36:39.325859 [info] Host is running unRAID
2024-07-04 19:36:39.353929 [info] System information Linux 900eb1f3c25b 6.1.79-Unraid #1 SMP PREEMPT_DYNAMIC Fri Mar 29 13:34:03 PDT 2024 x86_64 GNU/Linux
2024-07-04 19:36:39.380359 [info] PUID defined as '99'
2024-07-04 19:36:39.432454 [info] PGID defined as '100'
2024-07-04 19:36:39.491350 [info] UMASK defined as '000'
2024-07-04 19:36:39.515203 [info] Permissions already set for '/config'
2024-07-04 19:36:39.541518 [info] Deleting files in /tmp (non recursive)...
2024-07-04 19:36:39.568132 [info] RCLONE_CONFIG_PATH defined as '/config/rclone/config/rclone.conf'
2024-07-04 19:36:39.595382 [info] RCLONE_MEDIA_SHARES defined as '/googledrive_backup/'
2024-07-04 19:36:39.619600 [info] RCLONE_REMOTE_NAME defined as 'remote'
2024-07-04 19:36:39.644036 [info] RCLONE_SLEEP_PERIOD defined as '168h'
2024-07-04 19:36:39.668349 [info] RCLONE_OPERATION defined as 'copy'
2024-07-04 19:36:39.691999 [info] RCLONE_DIRECTION defined as 'remotetolocal'
2024-07-04 19:36:39.716268 [info] RCLONE_POST_CHECK defined as 'yes'
2024-07-04 19:36:39.740628 [info] RCLONE_POST_REPORT not defined (via -e RCLONE_POST_REPORT), defaulting to 'combined'
2024-07-04 19:36:39.767115 [info] ENABLE_WEBUI defined as 'yes'
2024-07-04 19:36:39.791520 [info] WEBUI_USER defined as 'admin'
2024-07-04 19:36:39.816127 [warn] WEBUI_PASS defined as 'rclone' is weak, please consider using a stronger password
2024-07-04 19:36:39.842523 [info] Starting Supervisor...
2024-07-04 19:36:40,044 INFO Included extra file "/etc/supervisor/conf.d/rclone.conf" during parsing
2024-07-04 19:36:40,044 INFO Set uid to user 0 succeeded
2024-07-04 19:36:40,046 INFO supervisord started with pid 7
2024-07-04 19:36:41,047 INFO spawned: 'start-script' with pid 108
2024-07-04 19:36:41,048 INFO reaped unknown pid 8 (exit status 0)
2024-07-04 19:36:41,056 DEBG 'start-script' stdout output:
[info] Waiting for Rclone Web UI process to start listening on port 5572...

2024-07-04 19:36:41,056 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2024-07-04 19:36:42,550 DEBG 'start-script' stdout output:
[info] Rclone Web UI process listening on port 5572

2024-07-04 19:36:42,557 DEBG 'start-script' stdout output:
[warn] Media share '/googledrive_backup/' does not exist, skipping
[info] rclone finished, sleeping 168h before re-running...

 

Maybe I missed a forward slash somewhere or something but I'm not seeing it???

I've tried many different paths but they all seem not to exist. My guess is that I'm misunderstanding something somewhere. Not sure why RCLONE_MEDIA_SHARES is a variable rather than a path?

 

Regardless, I am trying to do a remotetolocal copy of two folders on my GoogleDrive. 

Screenshot2024-07-04at11_04_07PM.thumb.png.a2ba80902d35e560f4d24af2f5c7ac5b.png

 

I want to copy them to /mnt/user/googledrive_backup/. I have /media path set to /mnt/user/googledrive_backup/ which is maybe correct??? I can't figure out what to set for RCLONE_MEDIA_SHARES though? Everything I have tried so far results in a does not exist error. Currently it is "Home Assistant Snapshots","WP STAGING Backups" because I seem to remember a comment about comma separating multiple folders.

Edited by wgstarks

Update

I think I’ve made some progress after reading back through early posts here I realized that I needed to manually create folders in my Unraid share with names matching the folders on my google drive. Doing that results in /media path of /mnt/user/googledrive_backup and RCLONE_MEDIA_SHARES is set to Home Assistant Snapshots (no quotes). This appears to function properly in the container log but I get an error in the rclone log and nothing is being synced/copied.


IMG_0051.thumb.png.c246670c12bf4ec77c91f2843f84e7c0.png

 

I think this is due to the spaces in the folder name but if I escape the spaces with single or double quotes I get a directory not found error in the container log.

 

rclone.log

 

 

1 hour ago, wgstarks said:

Update

I think I’ve made some progress after reading back through early posts here I realized that I needed to manually create folders in my Unraid share with names matching the folders on my google drive. Doing that results in /media path of /mnt/user/googledrive_backup and RCLONE_MEDIA_SHARES is set to Home Assistant Snapshots (no quotes). This appears to function properly in the container log but I get an error in the rclone log and nothing is being synced/copied.


IMG_0051.thumb.png.c246670c12bf4ec77c91f2843f84e7c0.png

 

I think this is due to the spaces in the folder name but if I escape the spaces with single or double quotes I get a directory not found error in the container log.

 

rclone.log 396 B · 0 downloads

 

 

Adding supervisord log and current docker run.

 

docker run

Quote

docker run
  -d
  --name='binhex-rclone'
  --net='bridge'
  -e TZ="America/New_York"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="Brunnhilde"
  -e HOST_CONTAINERNAME="binhex-rclone"
  -e 'RCLONE_CONFIG_PATH'='/config/rclone/config/rclone.conf'
  -e 'RCLONE_MEDIA_SHARES'='/media/Home_Assistant_Snapshots'
  -e 'RCLONE_REMOTE_NAME'='remote'
  -e 'RCLONE_SLEEP_PERIOD'='168h'
  -e 'RCLONE_USER_FLAGS'=''
  -e 'RCLONE_OPERATION'='copy'
  -e 'RCLONE_DIRECTION'='remotetolocal'
  -e 'RCLONE_POST_CHECK'='yes'
  -e 'ENABLE_WEBUI'='yes'
  -e 'WEBUI_USER'='admin'
  -e 'WEBUI_PASS'='rclone'
  -e 'UMASK'='000'
  -e 'PUID'='99'
  -e 'PGID'='100'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:5572]/'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/binhex/docker-templates/master/binhex/images/rclone-icon.png'
  -p '53682:53682/tcp'
  -p '5572:5572/tcp'
  -v '/mnt/user/googledrive_backup':'/media':'rw'
  -v '/mnt/cache/appdata/binhex-rclone':'/config':'rw' 'binhex/arch-rclone' 

f94b884d4987e4b2b563706ab9db2bf15ad151cfad6c64ba7aeefb974036a140

The command finished successfully!

 

supervisord.log

 

6 hours ago, wgstarks said:

Adding supervisord log and current docker run.

 

docker run

 

supervisord.log 98.77 kB · 0 downloads

 

Finally got it working. Didn’t realize I needed to enclose everything on my google drive in a /media folder so that the file structure on the gdrive was the same as RCLONE_MEDIA_SHARES (should have though I think). Not sure what the path would have been to just copy everything from the root of the gdrive but this is working and it’s really just backups of backups so navigating through a few extra directories doesn’t really matter. All automated anyway.😁

Edited by wgstarks

@binhex

One question that I didn’t find any info for. What are the increment options for sleep cycle? Obviously h is hours. Can I also use w for week and maybe m for month.

  • Author
2 hours ago, dickesW said:

Hi @binhex,

 

thank you for all your work!

 

Is it possible for you to update to the latest rclone version that was released a few weeks ago? It solves an issue which i have with my remote backup prodiver.

 

https://github.com/rclone/rclone/releases/tag/v1.67.0

 

Thanks!

I'm waiting on up stream changes, once this is updated the new image will be built:- https://archlinux.org/packages/extra/x86_64/rclone/

  • Author
On 7/6/2024 at 12:57 AM, wgstarks said:

@binhex

One question that I didn’t find any info for. What are the increment options for sleep cycle? Obviously h is hours. Can I also use w for week and maybe m for month.

it is simply a bash 'sleep' command, from the manual:-
 

Quote

Pause for NUMBER seconds. SUFFIX may be 's' for seconds (the default), 'm' for minutes, 'h' for hours or 'd' for days. NUMBER need not be an integer. Given two or more arguments, pause for the amount of time specified by the sum of their values.


 

26 minutes ago, binhex said:

it is simply a bash 'sleep' command, from the manual:-
 


 

Thanks. Guess I’ll need to change 1w to 7d then.

  • 1 month later...

Edit:

I think I bumbled into a fix, reading through the issue page.  (Config issue with an authentication problem.)

 

So I understand why the fix is working - could someone explain the variable mapping below? 

 

Path: /media:  (Container to server share location?)

 

Variable: RCLONE_MEDIA_SHARES:  (Container to cloud host directory?)

 

--------------------------

Hey folks:

 

Hoping someone can help me out.  Been messing with this for a few hours and getting frustrated.  Trying to backup an URAID share (testbackup) to Idrive.

 

First I was getting this:

 

2024-08-25 18:01:58,166 DEBG 'start-script' stdout output:
[warn] Media share '/testbackup' does not exist, skipping
[info] rclone finished, sleeping 24h before re-running...

 

 

 

I figured I had the RCLONE_MEDIA_SHARE variable wrong, so I tried a couple changes.  Now I receive:

 

2024-08-25 19:16:46,690 DEBG 'start-script' stdout output:
{
        "error": "AccessDenied: Access Denied\n\tstatus code: 403, request id: XXXXXXX, host id: XXXXX=",
        "input": {
                "dstFs": "idrive:media",
                "srcFs": "/media"
        },
        "path": "sync/copy",
        "status": 500

 

Idrive uses buckets - if that matters.  Did I screw around too much and DDoS myself?

 

image.thumb.png.bccd6beeadac7daee232f07c29ed0a84.png

Edited by Chester

  • 3 weeks later...

I managed to connect to the drive and the files appear in the WebUI in the “Explorer” menu.


The files don't appear in the mapped folder.
Path: /media: /mnt/user/Drive/
RCLONE_MEDIA_SHARES: /media


I don't know what and how to fill in the WebUI “Mounts” menu

Any suggestions please...thanks

  • 2 weeks later...
  • 1 month later...

Hi @binhex

i installed the docker and ran into some issues:

1. I got the notice "Config file "/home/nobody/.config/rclone/rclone.conf" not found - using default

   I found out instead of "rclone config" I have to run "rclone config --config /config/rclone/config/rclone.conf"  in order to get the rclone.conf in the right place. Is this something special due to this docker?

2. I added a remote to Pcloud. I successfully authorized and also changed the hostname to eapi.pcloud.com as i`m using the european server. I`m pretty sure the configuration is correct. But when i run "rclone lsd pcloud:" i get the message "invalid accecc_token (2094).

The command "rclone config file" shows the correct config path. Is there any known issue maybe?

 

 

  • 3 weeks later...

I tried to disable web ui because it does not work for me at all. No firewall blocks it, tried it with different web browsers. So I set the parameter 'ENABLE_WEBUI' to 'no' and apparently it still tries to boot up the webGUI?

 

2024-12-11 16:00:27,738 DEBG 'start-script' stdout output:
[info] Waiting for Rclone Web UI process to start listening on port 5572...

2024-12-11 16:00:27,836 DEBG 'start-script' stderr output:
2024/12/11 16:00:27 CRITICAL: Failed to open log file: open /config/rclone/logs/rclone_webui.log: no such file or directory

 

Also is the parameter 'RCLONE_REMOTE_NAME' what I need to name also in the configuration of rclone? Because when I run the configuration I need to name this after the remotes I created there, right? And for 'RCLONE_SLEEP_PERIOD' does it mean I define how many hours rclone pauses before it runs again?

  • 3 weeks later...

I think I am having the similar journey as @wgstarks. My intent is to mirror Google Photos onto unraid inside my home directory. I tried opening the web browser (and enabled ENABLE_WEBUI). Connection refused. I check my firewall and I *think* I set it up correctly, but be default all traffic on the LAN is already allowed. So I tried to get it to work with the CLI. I successfully added a remote. But when I went to mount I get the following error:

 

```
[root@1fcf0eb011cf /]#  rclone mount google-photos: /mnt/user/<username>/google-photos
2024/12/31 18:18:17 NOTICE: Google Photos path "": --vfs-cache-mode writes or full is recommended for this remote as it can't stream
2024/12/31 18:18:17 CRITICAL: Fatal error: failed to mount FUSE fs: cannot open: /mnt/user/<username>/google-photos: open /mnt/user/<username>/google-photos: no such file or directory

```

So I did ```ls /mnt``` to see what docker sees and it returns an empty list. It is not "seeing" the unraid OS file system, I think it is seeing the file system inside the docker image. 

 

Maybe if I got the web interface to work this would be easier. Would you offer tips on starting and connecting to the local rclone web server?

 

edit: I used the command ```sudo netstat -tnlp | grep :5572``` and it returned empty. I don't think it is blocked by the firewall, rather I think the web server is offline.

 

 

Edited by SteveScott

  • 3 weeks later...

Hello @binhex! Another fantastic container build. Thank you!

 

I'm having an issue accessing the WebGUI and I'm hoping you can help. After I start the container, I attempt to access the webgui by going to the Unraid webGUI, then going to Docker, clicking the binhex-rclone icon and selecting "WebGUI". When the new web page appears, I'm asked to log in with my WebGUI credentials I set in the docker container's settings, and after logging in, I'm taken to a page that says "404: not found".

 

I'm on v1.69.0, and unraid v7.0.0. I've enabled Tailscale in the container settings, but I'm accessing the webGUI via the non-tailscale webGUI option in the docker page popup. Is there any other info I can give to help?

 

Thank you!

  • 1 month later...

Like Argus, my web UI had -stopped- working and the logs confused me at first because there were no errors, this was marked as a warning.

 

Whatever the case, running this command and setting up a password for the conf allows the web UI to load. Did the paths change in an update?

 

rclone config --config /config/rclone/config/rclone.conf

 

I seem to remember having an issue with the authentication, but I don't remember the fix. My problem when I first set up my container was more like what Argus is describing. This conf issue stopped the UI from listening on port 5572 completely.

The web UI keeps crashing, this is the second time I've had this issue today. This is what the log says:

 

2025-03-07 10:37:43,354 DEBG 'start-script' stdout output:
[info] rclone finished, sleeping 24h before re-running...

2025-03-07 10:37:43,354 DEBG 'start-script' stderr output:
/bin/bash: line 1: log_rotate: command not found

2025-03-07 11:25:43,365 DEBG 'start-script' stderr output:
Enter configuration password:
password:

 

Restarting the container will get me past this problem, but it keeps happening. I'll have go back and read through the thread to see if there is an explanation of what rclone is doing.

 

Edit: OK, so clicking "configs" in the web UI is what brings up configuration password which is making me thing something is configured wrong and it can't unlock the conf file?

 

Edit 2: I am able to stop this crash by removing the password and encryption from the conf file, which isn't ideal.

Edited by ezgoodnight
temporary solution found

  • 4 weeks later...

Does this docker support multiple folders of a same name to clone from google drive to unraid via folders ID instead? It doesn’t seem like it is possible, seeing that there is only a single RCLONE_REMOTE_NAME?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.