RCLONE WEB UI - GCS bucket path issue

What is the problem you are having with rclone?

I installed rclone v1.62.2 on a CentOS 7 VM on GCP. This VM has a service account that has the necessary IAM permissions to access the GCS buckets.

We have two configurations

  1. local
  2. GCS

We configured the explorer to have the GCS on the lefthand side and the local on the righthand side.

Some of our copying operations fail. Below, you can find our scenarios:

  • Upload file from local subfolder to remote bucket: WORKS
  • Upload file from local subfolder to remote subfolder in a bucket: WORKS
  • Upload folder from local subfolder to remote bucket: WORKS
  • Upload folder from local subfolder to remote subfolder in a bucket: FAILS
    • Local path: local:/subfolder/localdir
    • Remote Path: GCS:bucket_name_xyz:/remote_folder/
    • The error message we receive from rclone web ui is as follows:
2023/04/12 04:10:03 ERROR : localdir: Failed to copy: googleapi: Error 400: Use of this bucket name is restricted: 'bucket_name_xyzremote_folder', invalid
  • It can be seen that, the remote path is problematic. There should be a ":" character between the bucket name and the remote folder name
  • Download file from bucket to local subfolder: WORKS
  • Download file from remote subfolder in a bucket to local parent: WORKS
  • Download file from remote subfolder in a bucket to local subfolder: WORKS
  • Download folder from bucket to local subfolder FAILS
    • Local path: local:/subfolder
    • Remote Path: GCS:bucket_name_xyz:/remote_folder
    • The error message we receive from rclone web ui is as follows:
2023/04/12 04:15:17 ERROR : GCS bucket bucket_name_xyzremote_folder: error reading source root directory: directory not found
  • It can be seen that, the remote path is problematic. There should be a ":" character between the bucket name and the remote folder name
  • Download folder from subfolder in a bucket to local subfolder FAILS
    • Local path: local:/subfolder/localdir
    • Remote Path: GCS:bucket_name_xyz:/remote_folder/test
    • The error message we receive from rclone web ui is as follows:
2023/04/12 04:18:23 ERROR : GCS bucket bucket_name_xyzremote_folder path test: error reading source root directory: directory not found
  • It can be seen that, the remote path is problematic. There should be a ":" character between the bucket name and the remote folder name

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

The out is as follows:

rclone v1.62.2
- os/version: centos 7.9.2009 (64 bit)
- os/kernel: 3.10.0-1160.83.1.el7.x86_64 (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)

It is Google Cloud Storage Bucket

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

We are running the web UI and the log outputs have been given in the "#### What is the problem you are having with rclone?" section above.

The rclone config contents with secrets removed.

Content of the rclone.conf is as follows:

[GCS]
type = gcs
token =
project_number = 123456789098

[local]
type = local

A log from the command with the -vv flag

We are running the web UI and the log outputs have been given in the "#### What is the problem you are having with rclone?" section above.

Just use the command line for testing as it's much easier.

Remove the \ before your bucket name and post the output.

Thanks for your response. I guess, following would be the command line equivalent of what we tried to do on the Web UI. From command line it works as expected:

[user@hostname shared_storage]$ rclone -vvv copy GCS:/bucket_name_xyz/remote_folder/test ./backup/cli_test/
2023/04/12 08:26:52 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "-vvv" "copy" "GCS:/bucket_name_xyz/remote_folder/test" "./backup/cli_test/"]
2023/04/12 08:26:52 DEBUG : Creating backend with remote "GCS:/bucket_name_xyz/remote_folder/test"
2023/04/12 08:26:52 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2023/04/12 08:26:52 DEBUG : fs cache: renaming cache item "GCS:/bucket_name_xyz/remote_folder/test" to be canonical "GCS:bucket_name_xyz/remote_folder/test"
2023/04/12 08:26:52 DEBUG : Creating backend with remote "./backup/cli_test/"
2023/04/12 08:26:52 DEBUG : fs cache: renaming cache item "./backup/cli_test/" to be canonical "/home/user/shared_storage/backup/cli_test"
2023/04/12 08:26:53 DEBUG : Local file system at /home/user/shared_storage/backup/cli_test: Waiting for checks to finish
2023/04/12 08:26:53 DEBUG : Local file system at /home/user/shared_storage/backup/cli_test: Waiting for transfers to finish
2023/04/12 08:26:53 DEBUG : ads: md5 = d41d8cd98f00b204e9800998ecf8427e OK
2023/04/12 08:26:53 INFO  : ads: Copied (new)
2023/04/12 08:26:53 DEBUG : asdasd: md5 = d41d8cd98f00b204e9800998ecf8427e OK
2023/04/12 08:26:53 INFO  : asdasd: Copied (new)
2023/04/12 08:26:53 DEBUG : new file: md5 = d41d8cd98f00b204e9800998ecf8427e OK
2023/04/12 08:26:53 INFO  : new file: Copied (new)
2023/04/12 08:26:53 DEBUG : preAllocate: got error on fallocate, trying combination 1/2: operation not supported
2023/04/12 08:26:53 DEBUG : preAllocate: got error on fallocate, trying combination 2/2: operation not supported
2023/04/12 08:26:53 DEBUG : .upgrade-chrome: md5 = 9a931170ebb7c2adb03c67d6c69a8790 OK
2023/04/12 08:26:53 INFO  : .upgrade-chrome: Copied (new)
2023/04/12 08:26:53 INFO  :
Transferred:          651 B / 651 B, 100%, 0 B/s, ETA -
Transferred:            4 / 4, 100%
Elapsed time:         0.2s

2023/04/12 08:26:53 DEBUG : 8 go routines active

Hi Ender,

Looks like you have a : (colon) too much when specifying the remote path with a subfolder (in the GUI):

Try like this:

GCS:bucket_name_xyz/remote_folder/

Note: Only : after the remote name and only / between bucket and folder.

Not quite, there should be no : between the bucket name and the remote folder name, just a /

Thank you for your response, Ole.

We are not specifying the paths manually. We are selecting the bucket then the folder of the bucket from the explorer. We will try typing the paths in the explorer's address/path text box and I'll share my results.

Not quite, there should be no : between the bucket name and the remote folder name, just a /

Thank you for the clarification.

I just tried replicating without success, are you using rcone rcd --rc-web-gui ?

Hi Ole,

Thank you for this suggestion:

Try like this:

GCS:bucket_name_xyz/remote_folder/

Removing the column manually fixes the issue. But it does not fix it for good. The next time the window opens it again has the ":" character.

I prepared a video to show what I'm experiencing:

Great video!!!

Now I see the issue with the extra colon, but I do not get the error - probably because I tested with an S3 backend (instead of GCS).

Seems like the web GUI always adds ":/" to the end of the path if the path doesn't already contain ":/", no matter which remote you are using. This is a bug and can get quite interesting if you try hitting backspace to delete the "/" and then hit enter - I easily managed to make this (local) remote:

myRemote:::::/

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-15)

So I guess you will have to manually work around the problem, or see if you can find a better maintained alternative. I quickly tried but had no luck, sorry.

Thank you for your replies so far, Ole.

I will look into the alternatives.

1 Like

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