I could really use some help on figuring out where I went wrong here or how to troubleshoot further. I only started using rclone rc sync/copy or move recently for copies/moves as I wanted to convert some of the metrics or core/stats into a visual dashboard. I have been successfully using it to mount a drive in past without any problems though.
What is the problem you are having with rclone?
While doing a normal 'rclone copy' to a crypt on dropbox it works without any problems, it's not the same case when starting rclone rcd (command's below) and launching a copy from a local drive or even google drive to a dropbox crypt using rclone rc. I have tried to do the uploads both with or without the crypt to eliminate the issue as well. It has the same issue which I believe is Dropbox related. What happens is that when rclone rc sync/copy is launched that some of my files are successfully transferred at first (usually varies from 1-70files and around 1-10gb), and the later transfers start repeatedly failing till (I restart rcd). I have around 5 app keys created for Dropbox and am using these for different tests. The error I usually see appear when rc sync/copy fails is and the command ends is:
2023/06/09 02:06:19 Failed to rc: failed to read rc response: 500 Internal Server Error: {
"error": "upload failed: batcher is shutting down",
"input": {
"deleteEmptySrcDirs": "true",
"dstFs": "dbcm40:TEST",
"srcFs": "/sbx/mnt/remotes/AXUNION/a-anime-1/"
},
"path": "sync/copy",
"status": 500
}
Run the command 'rclone version' and share the full output of the command.
I have tried a few versions so far and compiled it from source the last time. I also tried it inside an alpine container. This was last:
rclone v1.63.0-DEV
- os/version: ubuntu 20.04 (64 bit)
- os/kernel: 5.4.0-144-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.20.5
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Dropbox (crypt)
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
OK - This command works without any hiccups for me:
rclone copy "$SRC" "$DST:" --transfers=4 --buffer-size=32M --tpslimit-burst=0 --tpslimit=12 -vP
NOK - This is how I setup my rcd, the options are all done separate as I was testing with disabling them one by one. If needed I can send my options/get, but these should be all the settings I change from default and when checking all of these were set as I wanted.
rclone rc --rc-addr "$IP:59999" --rc-enable-metrics --rc-user $USER --rc-pass $PASS options/set --json '{"main": {"LogLevel": INFO}}'
rclone rc --rc-addr "$IP:59999" --rc-enable-metrics --rc-user $USER --rc-pass $PASS options/set --json '{"main": {"DisableHTTP2": true}}'
rclone rc --rc-addr "$IP:59999" --rc-enable-metrics --rc-user $USER --rc-pass $PASS options/set --json '{"filter": {"ExcludeFrom": ["/data/exclude.filter"]}}'
rclone rc --rc-addr "$IP:59999" --rc-enable-metrics --rc-user $USER --rc-pass $PASS options/set --json '{"main": {"TPSLimit": 12}}'
rclone rc --rc-addr "$IP:59999" --rc-enable-metrics --rc-user $USER --rc-pass $PASS options/set --json '{"main": {"TPSLimitBurst": 0}}'
rclone rc --rc-addr "$IP:59999" --rc-enable-metrics --rc-user $USER --rc-pass $PASS options/set --json '{"main": {"ServerSideAcrossConfigs": true}}'
rclone rc --rc-addr "$IP:59999" --rc-enable-metrics --rc-user $USER --rc-pass $PASS options/set --json '{"main": {"SizeOnly": true}}'
rclone rc --rc-addr "$IP:59999" --rc-enable-metrics --rc-user $USER --rc-pass $PASS options/set --json '{"main": {"Transfers": 4}}โ
rclone rc --rc-addr "$IP:59999" --rc-enable-metrics --rc-user $USER --rc-pass $PASS options/set --json '{"filter": {"MinAge": "60"}}'
rclone rc --rc-addr "$IP:59999" --rc-enable-metrics --rc-user $USER --rc-pass $PASS core/bwlimit rate=โoffโ
rclone rc --rc-addr "$IP:59999" --rc-enable-metrics --rc-user $USER --rc-pass $PASS sync/copy srcFs="$SRC" dstFs="$DST" deleteEmptySrcDirs=true --log-file "$filelog"
The rclone config contents with secrets removed.
[dbcm40]
type = crypt
remote = dbm40:/Backup/ritualist
password = ***
password2 = ***
filename_encryption = obfuscate
[dbm40]
type = dropbox
client_id = ***
client_secret = ***
token = ***
A log from the command with the -vv
flag
...
2023/06/09 01:02:43 INFO : XDCC/XDCC-Arutha/3-Nen D-Gumi Glass no Kamen/[HorribleSubs] K - 10 [1080p].mkv: Copied (new)
2023/06/09 01:02:44 INFO : XDCC/XDCC-Arutha/3-Nen D-Gumi Glass no Kamen/[HorribleSubs] K - 13 [1080p].mkv: Copied (new)
2023/06/09 01:02:57 INFO : XDCC/XDCC-Arutha/3-Nen D-Gumi Glass no Kamen/[HorribleSubs] K - 12 [1080p].mkv: Copied (new)
2023/06/09 01:03:04 INFO : XDCC/XDCC-Arutha/3-Nen D-Gumi Glass no Kamen/[HorribleSubs] K - Return of Kings - 01 [1080p].mkv: Copied (new)
2023/06/09 01:03:12 INFO : XDCC/XDCC-Arutha/3-Nen D-Gumi Glass no Kamen/[HorribleSubs] K - Return of Kings - 02 [1080p].mkv: Copied (new)
2023/06/09 01:03:15 INFO : XDCC/XDCC-Arutha/3-Nen D-Gumi Glass no Kamen/[HorribleSubs] K - Return of Kings - 03 [1080p].mkv: Copied (new)
2023/06/09 01:03:34 INFO : XDCC/XDCC-Arutha/3-Nen D-Gumi Glass no Kamen/[HorribleSubs] K - Return of Kings - 04 [1080p].mkv: Copied (new)
#Here after 40 transfers it started to fail
2023/06/09 01:04:10 ERROR : XDCC/XDCC-Arutha/3-Nen D-Gumi Glass no Kamen/[HorribleSubs] K - Return of Kings - 07 [1080p].mkv: Failed to copy: upload failed: Post "https://content.dropboxapi.com/2/files/upload_session/append_v2": context canceled
2023/06/09 01:04:23 ERROR : XDCC/XDCC-Arutha/3-Nen D-Gumi Glass no Kamen/[HorribleSubs] K - Return of Kings - 08 [1080p].mkv: Failed to copy: upload failed: Post "https://content.dropboxapi.com/2/files/upload_session/append_v2": context canceled
2023/06/09 01:04:35 INFO : Dropbox root 'Backup/ritualist/64.sdrs': Commiting uploads - please wait...
2023/06/09 01:04:36 ERROR : XDCC/XDCC-Arutha/3-Nen D-Gumi Glass no Kamen/[HorribleSubs] K - Return of Kings - 06 [1080p].mkv: Failed to copy: upload failed: Post "https://content.dropboxapi.com/2/files/upload_session/append_v2": context canceled
2023/06/09 01:04:38 ERROR : XDCC/XDCC-Arutha/3-Nen D-Gumi Glass no Kamen/[HorribleSubs] K - Return of Kings - 05 [1080p].mkv: Failed to copy: upload failed: Post "https://content.dropboxapi.com/2/files/upload_session/append_v2": context canceled
2023/06/09 01:04:38 ERROR : rc: "sync/copy": error: upload failed: Post "https://content.dropboxapi.com/2/files/upload_session/append_v2": context canceled
2023/06/09 01:12:46 ERROR : XDCC/XDCC-Thora/Appleseed_(2004)_[720p,HDTV,x264,DTS]_-_THORA.mkv: Failed to copy: upload failed: batcher is shutting down
2023/06/09 01:12:46 ERROR : Cancelling sync due to fatal error: upload failed: batcher is shutting down
2023/06/09 01:13:08 ERROR : XDCC/XDCC-Thora/Afro_Samurai_Resurrection_(2009)_[1080p,BluRay,x264]_-_THORA.mkv: Failed to copy: upload failed: Post "https://content.dropboxapi.com/2/files/upload_session/append_v2": context canceled
2023/06/09 01:13:24 ERROR : XDCC/XDCC-Thora/Akira_(1988)_[1080p,BluRay,x264,DTS]_-_THORA.mkv: Failed to copy: upload failed: Post "https://content.dropboxapi.com/2/files/upload_session/append_v2": context canceled
2023/06/09 01:13:30 ERROR : XDCC/XDCC-Thora/Akira_(1988)_[720p,BluRay,x264,DTS]_-_THORA.mkv: Failed to copy: upload failed: Post "https://content.dropboxapi.com/2/files/upload_session/append_v2": context canceled
2023/06/09 01:13:30 ERROR : rc: "sync/copy": error: upload failed: batcher is shutting down
2023/06/09 01:21:46 ERROR : XDCC/XDCC-Thora/Appleseed_(2004)_[720p,HDTV,x264,DTS]_-_THORA.mkv: Failed to copy: upload failed: batcher is shutting down
2023/06/09 01:21:46 ERROR : Cancelling sync due to fatal error: upload failed: batcher is shutting down
2023/06/09 01:22:02 ERROR : XDCC/XDCC-Thora/Afro_Samurai_Resurrection_(2009)_[1080p,BluRay,x264]_-_THORA.mkv: Failed to copy: upload failed: Post "https://content.dropboxapi.com/2/files/upload_session/append_v2": context canceled
2023/06/09 01:22:28 ERROR : XDCC/XDCC-Thora/Akira_(1988)_[720p,BluRay,x264,DTS]_-_THORA.mkv: Failed to copy: upload failed: Post "https://content.dropboxapi.com/2/files/upload_session/append_v2": context canceled
2023/06/09 01:22:32 ERROR : XDCC/XDCC-Thora/Akira_(1988)_[1080p,BluRay,x264,DTS]_-_THORA.mkv: Failed to copy: upload failed: Post "https://content.dropboxapi.com/2/files/upload_session/append_v2": context canceled
2023/06/09 01:22:32 ERROR : rc: "sync/copy": error: upload failed: batcher is shutting down
#rclone rc sync/copy was relaunched 3rd time here. It gives 'Failed to rc: connection failed: Post "http://100.72.154.112:59999/sync/copy": net/http: timeout awaiting response headers"' error in cli in that case and ends.
2023/06/09 01:31:08 ERROR : XDCC/XDCC-Thora/Appleseed_(2004)_[720p,HDTV,x264,DTS]_-_THORA.mkv: Failed to copy: upload failed: batcher is shutting down
2023/06/09 01:31:08 ERROR : Cancelling sync due to fatal error: upload failed: batcher is shutting down
2023/06/09 01:31:36 ERROR : XDCC/XDCC-Thora/Akira_(1988)_[720p,BluRay,x264,DTS]_-_THORA.mkv: Failed to copy: upload failed: Post "https://content.dropboxapi.com/2/files/upload_session/append_v2": context canceled
2023/06/09 01:31:48 ERROR : XDCC/XDCC-Thora/Akira_(1988)_[1080p,BluRay,x264,DTS]_-_THORA.mkv: Failed to copy: upload failed: Post "https://content.dropboxapi.com/2/files/upload_session/append_v2": context canceled
2023/06/09 01:31:52 ERROR : XDCC/XDCC-Thora/Afro_Samurai_Resurrection_(2009)_[1080p,BluRay,x264]_-_THORA.mkv: Failed to copy: upload failed: Post "https://content.dropboxapi.com/2/files/upload_session/append_v2": context canceled
2023/06/09 01:31:52 ERROR : rc: "sync/copy": error: upload failed: batcher is shutting down
Any tips or guidance is appreciated