Zoho only root visible and err: "402 Payment Required"


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



I'd imagine that you have to pay to play for the API usage from what that looks like but I'm not familiar with Zoho offhand and couldn't find any specific details supporting that statement from their website/API information.

Perhaps @buengese might know as that is who I can tell did most of the work on it.

1 Like

We are having the same problem with the integration tests.

I wrote to Zoho asking for a test account, but they never responded.

I logged into the Zoho account and clicked on the workdrive. They then asked me to upgrade it, though there was a small button saying downgrade to free account. I chose that, filled in a form and it started to work again!

So maybe all you have to do is that.

1 Like

Oh!
Good news.
We will try it.
That will be great!

Zoho is, determinated by history of our care/nursing (0-budget) project the data-base around all administrative data, reporting and so on.

Otherwise, our "Plan B", we will try tu use robocopy to sync the zoho-drive inside windows with a nextcloud instance.
On the end all of processing should work on opensource based environment.

The backup-core should be a rclone based resilent and compact bash script also available for some newcomers in our community with different environment to plug in.

The most interesting part will be, to manage the offline tablets of our "offliners" (people mostly more than 70 ... 80 years old). They should have a consistent "sync" to the online database and repos (mostly android). Thats now only in state of draft.

May be it will be a long time turn.
:wink:

Thank you for the great projects rclone and rcx and the nice and friendly support.
:slightly_smiling_face:

1 Like

@buengese (cc)

Thank you for the great projects rclone and rcx and the nice and friendly support.
:slightly_smiling_face:

1 Like

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