rclone / rclone/rclone

`crypt` and many other remotes do not support `{ep}lno` policy of `union`

Open
#8,492 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
59.9k
Forks
5.4k
Avg merge
2d 13h
Merged PRs (30d)
48

Description

What is the problem you are having with rclone?

I'm trying to overcome the 25k file limit on OpenDrive (wrapped by crypt), so I created a union remote with multiple folders so the folder with the least amount of objects is always elected. This is my config (redacted where applicable):

[Crypt]
type = crypt
remote = OpenDrive:
filename_encryption = standard
directory_name_encryption = true
password = [REDACTED]
server_side_across_configs = true
filename_encoding = base32768

[OpenDrive]
type = opendrive
username = [REDACTED]
password = [REDACTED]
chunk_size = 50Mi

[Union]
type = union
upstreams = Crypt:Backups/1 Crypt:Backups/2 Crypt:Backups/3
action_policy = lno
create_policy = lno
description = Used to overcome OpenDrive's 25k file limit
What is your rclone version (output from rclone version)
rclone v1.69.1
- os/version: debian 12.10 (64 bit)
- os/kernel: 6.1.0-32-arm64 (aarch64)
- os/type: linux
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.24.0
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (e.g. Google Drive)

OpenDrive -> Crypt -> Union

The command you were trying to run (e.g. rclone copy /tmp remote:tmp)

rclone copy -vv rclone.conf Union:

A log from the command with the -vv flag (e.g. output from rclone -vv copy /tmp remote:tmp)

The key problem is at NOTICE: Number of Objects is not supported for upstream Crypt, treating as 0

2025/04/08 09:39:51 DEBUG : rclone: Version "v1.69.1" starting with parameters ["rclone" "copy" "-vv" "rclone.conf" "GPhotosBackup:"]
2025/04/08 09:39:51 DEBUG : Creating backend with remote "rclone.conf"
2025/04/08 09:39:51 DEBUG : Using config file from "/home/ferferga/.config/rclone/rclone.conf"
2025/04/08 09:39:51 DEBUG : fs cache: renaming child cache item "rclone.conf" to be canonical for parent "/home/ferferga/.config/rclone"
2025/04/08 09:39:51 DEBUG : Creating backend with remote "Union:"
2025/04/08 09:39:51 DEBUG : Creating backend with remote "Crypt:Backups/1"
2025/04/08 09:39:51 DEBUG : Creating backend with remote "Crypt:Backups/3"
2025/04/08 09:39:51 DEBUG : Creating backend with remote "Crypt:Backups/2"
2025/04/08 09:39:52 DEBUG : Creating backend with remote "OpenDrive:[REDACTED]"
2025/04/08 09:39:52 DEBUG : Creating backend with remote "OpenDrive:[REDACTED]"
2025/04/08 09:39:52 DEBUG : Creating backend with remote "OpenDrive:[REDACTED]"
2025/04/08 09:39:52 DEBUG : Starting OpenDrive session with ID: [REDACTED]
2025/04/08 09:39:52 DEBUG : Starting OpenDrive session with ID: [REDACTED]
2025/04/08 09:39:52 DEBUG : Starting OpenDrive session with ID: [REDACTED]
2025/04/08 09:39:54 DEBUG : union root '': actionPolicy = *policy.Lno, createPolicy = *policy.Lno, searchPolicy = *policy.FF
2025/04/08 09:39:54 DEBUG : rclone.conf: Need to transfer - File not found at Destination
2025/04/08 09:39:54 NOTICE: Number of Objects is not supported for upstream Crypt, treating as 0
2025/04/08 09:39:54 NOTICE: Number of Objects is not supported for upstream Crypt, treating as 0
2025/04/08 09:39:55 DEBUG : [REDACTED]: Uploading chunk 0, size=5273, remain=0
2025/04/08 09:39:57 DEBUG : rclone.conf: md5 = 151fa835fdb3e5a836bec3098a8c4502 OK
2025/04/08 09:39:57 INFO  : rclone.conf: Copied (new)
How to use GitHub
  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Union configuration with Crypt upstreams and the lno action and create policies, then trace the NOTICE that Number of Objects is unsupported for Crypt. Compare the behavior of Union, Crypt, and the upstream remote described in the report. Done means the lno policy works with this configuration without treating the upstream object count as zero.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.