What is the problem you are having with rclone?
may be it is something contextual to this item (@buengese @ncw ):
The question I want decribe is around using zoho in rclone cli.
I use a free zoho account for some years. zoho intern functions working fine.
It has equivalent behavior on Windows and in Linux (alpine) rclone cli.
It seems zoho, after config, is integrated as a remote.
listremotes, about, ls gave back some values without error.
The clearest availability of the behavior is seen in this parts:
a) the complete zoho-data-repo is never visible
b) "rclone ls" shows only something of zoho "root" pdf-files (visible in the logs here)
c) "rclone copy" generates an error "(402 Payment Required)"
d) "rclonr lsd" gives only empty line (not listed here)
One proposel:
May be it is true that zoho only works in rclone-cli with zoho-payed-accounts?
If it is true, so the following details are obsolet.
Because of a used only free account it doesnt work.
Run the command 'rclone version' and share the full output of the command.
What version of rclone:
rclone v1.57.0
- os/version: Microsoft Windows 7 Starter Service Pack 1
- os/kernel: 6.1.7601.24544 (i686)
- os/type: windows
- os/arch: 386
- go/version: go1.17.2
- go/linking: dynamic
- go/tags: cmount
spoiler:
(yes, yes LoL)
but also the same behaivior with Linux alpine
Which cloud storage system are you using? (eg Google Drive)
ZOHO
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
b)
The full command Im attempting to use:
c:\Users\Acer\Downloads\rCloneW32>rclone -vv ls zoho:
The Logfile:
C:\Users\Acer\Downloads\rCloneW32>rclone -vv ls zoho:
2022/02/02 13:51:59 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "-vv" "ls" "zoho:"]
2022/02/02 13:51:59 DEBUG : Creating backend with remote "zoho:"
2022/02/02 13:51:59 DEBUG : Using config file from "C:\\Users\\Acer\\.config\\rclone\\rclone.conf"
2253698 Zoho WorkDrive Getting Started Guide for Team Admins.pdf
2935682 Zoho WorkDrive Getting Started Guide for Team Members.pdf
2022/02/02 13:51:59 DEBUG : 3 go routines active
C:\Users\Acer\Downloads\rCloneW32>
c)
The full command Im attempting to use:
c:\Users\Acer\Downloads\rCloneW32>rclone -vv copy zoho: c:\Users\Acer\Downloads\rCloneW32\
The logfile of rclone’s output:
c:\Users\Acer\Downloads\rCloneW32>rclone -vv copy zoho: c:\Users\Acer\Downloads\rCloneW32\
2022/02/02 13:31:29 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "-vv" "copy" "zoho:" "c:\\Users\\Acer\\Downloads\\rCloneW32\\"]
2022/02/02 13:31:29 DEBUG : Creating backend with remote "zoho:"
2022/02/02 13:31:29 DEBUG : Using config file from "C:\\Users\\Acer\\.config\\rclone\\rclone.conf"
2022/02/02 13:31:29 DEBUG : Creating backend with remote "c:\\Users\\Acer\\Downloads\\rCloneW32\\"
2022/02/02 13:31:29 DEBUG : fs cache: renaming cache item "c:\\Users\\Acer\\Downloads\\rCloneW32\\" to be canonical "//?/c:/Users/Acer/Downloads/rCloneW32/"
2022/02/02 13:31:29 DEBUG : zoho: Loaded invalid token from config file - ignoring
2022/02/02 13:31:30 DEBUG : Saving config "token" in section "zoho" of the config file
2022/02/02 13:31:30 DEBUG : Keeping previous permissions for config file: -rw-rw-rw-
2022/02/02 13:31:30 DEBUG : zoho: Saved new token in config file
2022/02/02 13:31:31 DEBUG : Local file system at //?/c:/Users/Acer/Downloads/rCloneW32/: Waiting for checks to finish
2022/02/02 13:31:31 DEBUG : Local file system at //?/c:/Users/Acer/Downloads/rCloneW32/: Waiting for transfers to finish
2022/02/02 13:31:31 ERROR : Zoho WorkDrive Getting Started Guide for Team Admins.pdf: Failed to copy: failed to open source object: HTTP error 402 (402 PaymentRequired) returned body: ""
2022/02/02 13:31:31 ERROR : Zoho WorkDrive Getting Started Guide for Team Members.pdf: Failed to copy: failed to open source object: HTTP error 402 (402 Payment Required) returned body: ""
2022/02/02 13:31:31 ERROR : Attempt 1/3 failed with 2 errors and: failed to open source object: HTTP error 402 (402 Payment Required) returned body: ""
2022/02/02 13:31:32 DEBUG : Local file system at //?/c:/Users/Acer/Downloads/rCloneW32/: Waiting for checks to finish
2022/02/02 13:31:32 DEBUG : Local file system at //?/c:/Users/Acer/Downloads/rCloneW32/: Waiting for transfers to finish
2022/02/02 13:31:32 ERROR : Zoho WorkDrive Getting Started Guide for Team Admins.pdf: Failed to copy: failed to open source object: HTTP error 402 (402 PaymentRequired) returned body: ""
2022/02/02 13:31:32 ERROR : Zoho WorkDrive Getting Started Guide for Team Members.pdf: Failed to copy: failed to open source object: HTTP error 402 (402 Payment Required) returned body: ""
2022/02/02 13:31:32 ERROR : Attempt 2/3 failed with 2 errors and: failed to open source object: HTTP error 402 (402 Payment Required) returned body: ""
2022/02/02 13:31:32 DEBUG : Local file system at //?/c:/Users/Acer/Downloads/rCloneW32/: Waiting for checks to finish
2022/02/02 13:31:32 DEBUG : Local file system at //?/c:/Users/Acer/Downloads/rCloneW32/: Waiting for transfers to finish
2022/02/02 13:31:32 ERROR : Zoho WorkDrive Getting Started Guide for Team Admins.pdf: Failed to copy: failed to open source object: HTTP error 402 (402 PaymentRequired) returned body: ""
2022/02/02 13:31:32 ERROR : Zoho WorkDrive Getting Started Guide for Team Members.pdf: Failed to copy: failed to open source object: HTTP error 402 (402 Payment Required) returned body: ""
2022/02/02 13:31:32 ERROR : Attempt 3/3 failed with 2 errors and: failed to open source object: HTTP error 402 (402 Payment Required) returned body: ""
2022/02/02 13:31:32 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Errors: 2 (retrying may help)
Elapsed time: 5.0s
2022/02/02 13:31:32 DEBUG : 6 go routines active
2022/02/02 13:31:32 Failed to copy with 2 errors: last error was: failed to open source object: HTTP error 402 (402 Payment Required) returned body: ""
c:\Users\Acer\Downloads\rCloneW32>
The rclone config contents with secrets removed.
The rclone config
[zoho]
type = zoho
region = eu
token = {"access_token":"1000.6xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.6dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","token_type":"Bearer","refresh_token":"1000.fxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxa.4xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx6","expiry":"2022-02-02T14:31:30.2140207+01:00"}
root_folder_id = 4xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxd
A log from the command with the -vv
flag
# for better visibilty of context log was posted together with the two cmd-lines in section before
EOF