park13
March 28, 2023, 4:05pm
1
What is the problem you are having with rclone?
I cannot configure my rclone union correctly.
Here is my rclone union config
[remote]
type = union
upstreams = dropbox:/ sftp:/mnt/nas
But when I do rclone lsd remote: I get
rclone lsd remote:
-1 2023-03-27 04:12:50 -1 4k-movies
-1 2023-03-28 15:46:42 -1 John Doe (Drop Box)
-1 2023-03-27 01:09:50 -1 Media
John Doe is my username for DropBox.
If I try and do upstreams = dropbox:/John Doe sftp:/mnt/nas. I get an error? How do I fix the space issue?
Run the command 'rclone version' and share the full output of the command.
rclone v1.62.2
os/version: ubuntu 22.04 (64 bit)
os/kernel: 5.19.0-35-generic (x86_64)
os/type: linux
os/arch: amd64
go/version: go1.20.2
go/linking: static
go/tags: none
Which cloud storage system are you using? (eg Google Drive)
DropBox
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
Paste command here
The rclone config contents with secrets removed.
remote]
type = union
upstreams = dropbox:/ sftp:/mnt/nas
#### A log from the command with the `-vv` flag
<!-- You should use 3 backticks to begin and end your paste to make it readable. Or use a service such as https://pastebin.com or https://gist.github.com/ -->
Paste log here
park13
March 28, 2023, 5:11pm
3
Before the quotes
rclone lsd remote:
1 2023-03-27 04:12:50 -1 4k-movies
-1 2023-03-28 16:34:03 -1 John Doe
-1 2023-03-27 01:09:50 -1 Media
with quotes
[remote]
type = union
upstreams = "dropbox:/John Doe" sftp:/mnt/nas
rclone lsd remote:
-1 2023-03-27 04:12:50 -1 4k-movies
-2 2023-03-28 17:10:58 -1 Media
Looks like the Dropbox is not showing?
asdffdsa
(jojothehumanmonkey)
March 28, 2023, 5:15pm
4
before trying to create a union, make sure a simple command outputs what you want.
rclone lsd "dropbox:/John Doe" -vv
park13
March 28, 2023, 5:19pm
5
rclone lsd "dropbox:/John Doe" -vv
2023/03/28 17:17:20 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "lsd" "dropbox:/John Doe" "-vv"]
2023/03/28 17:17:20 DEBUG : Creating backend with remote "dropbox:/John Doe"
2023/03/28 17:17:20 DEBUG : Using config file from "/home/ubuntu/.config/rclone/rclone.conf"
2023/03/28 17:17:21 DEBUG : Dropbox root '': Using root namespace "3709833121"
2023/03/28 17:17:21 DEBUG : fs cache: renaming cache item "dropbox:/John Doe" to be canonical "dropbox:John Doe"
-1 2023-03-28 17:17:22 -1 Media
2023/03/28 17:17:22 DEBUG : 6 go routines active
2023/03/28 17:17:22 INFO : Dropbox root 'John Doe': Committing uploads - please wait..
asdffdsa
(jojothehumanmonkey)
March 28, 2023, 5:21pm
6
that looks a bit strange to me.
can you post the full
output of rclone config dump
make sure to redact/delete any private info such as tokens/id/secret/passwords
park13
March 28, 2023, 5:26pm
8
sorry i did try edit to hide but may have made it confusing.
rclone config dump
{
"google": {
"token": "{"access_token":"sl.
"type": "dropbox"
},
"remote": {
"type": "union",
"upstreams": ""google:/xxx xxx\” sftp:/mnt/nas"
},
"sftp": {
"host": “xx. xx.xx.xx”,
"key_file": "/home/ubuntu/.ssh/trueNAS",
"md5sum_command": "md5sum",
"port": "22222",
"sha1sum_command": "sha1sum",
"shell_type": "unix",
"type": "sftp",
"user": "root"
}
asdffdsa
(jojothehumanmonkey)
March 28, 2023, 5:54pm
9
ok, now i know why i was confused.
you have a remote named google
but it points to dropbox.
fwiw, i would rename the remote from google
to dropbox
run rclone config
, choose r) Rename remote
e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
park13
March 28, 2023, 5:58pm
10
I would but I have application that uses it ? but curious why my drop box doesn't show up?
park13
March 28, 2023, 5:59pm
11
And thank you for your help! I have been trying to figure this out for so long?
asdffdsa
(jojothehumanmonkey)
March 28, 2023, 6:08pm
12
your setup is super confusing, i would try to clean that up.
based on your config show dump
output, there is no remote named dropbox
when you run commands, need to add -vv
for debug output
post the full output of these two commands:
--- rclone listremotes -vv
--- rclone lsd remote: -vv
park13
March 28, 2023, 7:45pm
13
asdffdsa:
rclone listremotes -vv
I apologize for the dropbox edit. I just realized this is causing confusion.
2023/03/28 19:41:15 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "listremotes" "-vv"]
2023/03/28 19:41:15 DEBUG : Using config file from "/home/ubuntu/.config/rclone/rclone.conf"
google:
remote:
sftp:
2023/03/28 19:41:15 DEBUG : rclone: Version "v1.62.2" finishing with parameters ["rclone" "listremotes" "-vv"]
rclone lsd remote: -vv
2023/03/28 19:42:33 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "lsd" "remote:" "-vv"]
2023/03/28 19:42:33 DEBUG : Creating backend with remote "remote:"
2023/03/28 19:42:33 DEBUG : Using config file from "/home/ubuntu/.config/rclone/rclone.conf"
2023/03/28 19:42:33 DEBUG : Creating backend with remote "sftp:/mnt/nas"
2023/03/28 19:42:33 DEBUG : Creating backend with remote "google:/Joh Doe"
2023/03/28 19:42:33 DEBUG : google: Loaded invalid token from config file - ignoring
2023/03/28 19:42:33 DEBUG : Saving config "token" in section "google" of the config file
2023/03/28 19:42:33 DEBUG : Keeping previous permissions for config file: -rwxrwxr-x
2023/03/28 19:42:33 DEBUG : google: Saved new token in config file
2023/03/28 19:42:34 DEBUG : Dropbox root '': Using root namespace "3709833121"
2023/03/28 19:42:35 DEBUG : fs cache: renaming cache item "google:/Joh Doe" to be canonical "google:Joh Doe"
2023/03/28 19:42:35 DEBUG : fs cache: switching user supplied name "google:/Joh Doe" for canonical name "google:Joh Doe"
2023/03/28 19:42:35 DEBUG : sftp://root@xx.xx.xx.xx:22222//mnt/nas: New connection 217.182.199.76:33908->xx.xx.xx.xx:22222 to "SSH-2.0-OpenSSH_8.8-hpn14v15"
2023/03/28 19:42:35 DEBUG : sftp://root@xx.xx.xx.xx:22222//mnt/nas: Shell type "unix" from config
2023/03/28 19:42:36 DEBUG : sftp://root@xx.xx.xx.xx:22222//mnt/nas: Using root directory "/mnt/nas"
2023/03/28 19:42:36 DEBUG : union root '': actionPolicy = *policy.EpAll, createPolicy = *policy.EpMfs, searchPolicy = *policy.FF
-1 2023-03-27 04:12:50 -1 4k-movies
-2 2023-03-28 19:42:36 -1 Media
2023/03/28 19:42:36 DEBUG : 15 go routines active
2023/03/28 19:42:36 DEBUG : sftp://root@xx.xx.xx.xx:22222//mnt/nas: Closing 1 unused connections
2023/03/28 19:42:37 INFO : Dropbox root 'Joh Doe': Committing uploads - please wait...
asdffdsa
(jojothehumanmonkey)
March 28, 2023, 7:56pm
14
using a remote named google
that is really dropbox?
on top of that, if you edit the ouput like you did, very hard to help.
park13
April 1, 2023, 2:29pm
16
Solved it. Dumb mistake on my part ;(
1 Like
system
(system)
Closed
May 1, 2023, 2:36pm
18
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.