Error when downloading encrypted file through GUI

What is the problem you are having with rclone?

Downloading a file through the GUI's explorer from an encrypted remote is not working while downloading the same file through the copy command does work. Issue is exactly the same as described here: Cannot download file with webui, but can from CLI: object not found

Run the command 'rclone version' and share the full output of the command.

rclone v1.62.2
- os/version: alpine 3.17.2 (64 bit)
- os/kernel: 5.15.0-70-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)

Backblaze B2

The command you were trying to run (eg rclone copy /tmp remote:tmp)

Downloading a file through the GUI's explorer.

The rclone config contents with secrets removed.

[B2]
type = b2
account = 
key = 

[B2-Crypt-GoogleDrive-Personal]
type = crypt
password = 
password2 = 
remote = B2:backup-googledrive-personal

A log from the command with the -vv flag

2023/04/20 19:36:26 DEBUG : fs cache: switching user supplied name "B2-Crypt-GoogleDrive-Personal" for canonical name "/data/B2-Crypt-GoogleDrive-Personal"
2023/04/20 19:36:26 DEBUG : Creating backend with remote "B2-Crypt-GoogleDrive-Personal"
2023/04/20 19:36:26 NOTICE: "B2-Crypt-GoogleDrive-Personal" refers to a local folder, use "B2-Crypt-GoogleDrive-Personal:" to refer to your remote or "./B2-Crypt-GoogleDrive-Personal" to hide this warning
2023/04/20 19:36:26 ERROR : rc: "Test.docx": error: failed to find object: object not found

Like I mentioned in that post. You'd want to:

Run the WebGUI in debug and share the log with the error.

The only thing I see there is a file not found.

You may want to test via the CLI first and figure out what the proper path/name is.

rclone ls B2-Crypt-GoogleDrive-Personal: -vv 
rclone copy B2-Crypt-GoogleDrive-Personal:Test.docx /some/location -vv

... in the local folder B2-Crypt-GoogleDrive-Personal as seen here:

I guess the GUI is somehow missing the trailing ":" in the remote parameter passed to the rc interface.

Could be a variation of this bug:
https://forum.rclone.org/t/rclone-web-ui-gcs-bucket-path-issue/37539/9

@Wesley What steps do you perform in the GUI to provoke this error? Can we have a screenshot of the GUI just before you click the download button? (I am especially interested in the "address field" of the GUI explorer)

@Animosity022: the web UI should be running with debug on (started with -vv)

@Ole: I click the download icon next to a file in the explorer, see screenshot.

If you can do this, would be superb.

This seems to work fine:

/data # rclone ls B2-Crypt-GoogleDrive-Personal: -vv
2023/04/23 17:54:38 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "ls" "B2-Crypt-GoogleDrive-Personal:" "-vv"]
2023/04/23 17:54:38 DEBUG : Creating backend with remote "B2-Crypt-GoogleDrive-Personal:"
2023/04/23 17:54:38 DEBUG : Using config file from "/config/rclone/rclone.conf"
2023/04/23 17:54:38 DEBUG : Creating backend with remote "B2:backup-googledrive-personal"
   419956 test2.pdf
     6119 Test.docx
2023/04/23 17:54:39 DEBUG : 6 go routines active

/data # rclone copy B2-Crypt-GoogleDrive-Personal:Test.docx . -vv
2023/04/23 17:55:18 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "copy" "B2-Crypt-GoogleDrive-Personal:Test.docx" "." "-vv"]
2023/04/23 17:55:18 DEBUG : Creating backend with remote "B2-Crypt-GoogleDrive-Personal:Test.docx"
2023/04/23 17:55:18 DEBUG : Using config file from "/config/rclone/rclone.conf"
2023/04/23 17:55:18 DEBUG : Creating backend with remote "B2:backup-googledrive-personal/ql6gm0kf6cispugjceg0487b7c"
2023/04/23 17:55:19 DEBUG : fs cache: adding new entry for parent of "B2:backup-googledrive-personal/ql6gm0kf6cispugjceg0487b7c", "B2:backup-googledrive-personal"
2023/04/23 17:55:19 DEBUG : Creating backend with remote "."
2023/04/23 17:55:19 DEBUG : fs cache: renaming cache item "." to be canonical "/data"
2023/04/23 17:55:19 DEBUG : Test.docx: Need to transfer - File not found at Destination
2023/04/23 17:55:19 INFO  : Test.docx: Copied (new)
2023/04/23 17:55:19 INFO  : 
Transferred:        5.976 KiB / 5.976 KiB, 100%, 0 B/s, ETA -
Transferred:            1 / 1, 100%
Elapsed time:         1.3s

2023/04/23 17:55:19 DEBUG : 7 go routines active

/data # ls -l
total 8
-rw-r--r--    1 root     root          6119 Apr 20 19:05 Test.docx

Thanks for the screenshot, I have reproduced your observation using s3:

[myS3]
type = s3
provider = AWS
...

[myS3bucket]
type = alias
remote = myS3:myBucket
2023/04/23 20:28:42 DEBUG : Creating backend with remote "myS3bucket"
2023/04/23 20:28:42 NOTICE: "myS3bucket" refers to a local folder, use "myS3bucket:" to refer to your remote or "./myS3bucket" to hide this warning
2023/04/23 20:28:42 DEBUG : fs cache: renaming cache item "myS3bucket" to be canonical ...
2023/04/23 20:28:42 ERROR : rc: "hello.txt": error: failed to find object: object not found

It seems related to the web GUIs handling of the ":" in the remote of the alias/crypt. I can work around it by using myS3 directly, unfortunately that isn't a possibility for you (because you need the decryption of the crypt).

The natural next step would therefore be to create a GitHub issue here:

There is just one major problem: The rclone web GUI project seems to be abandoned, the last update was in July 2021:


Source: GitHub - rclone/rclone-webui-react: A full fledged UI for the rclone cloud sync tool (2023-04-23)

So I guess you will have to work around the issue using the command line for downloads, or see if you can find a better maintained alternative. I quickly tried but had no luck, sorry.

@negative0 @ncw Are my above observations correct?

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