Copy from smb source produces “A file cannot be opened because the share access flags are incompatible”

I am new to rclone. I am trying to perform this command:

rclone copy smbserver:/sharefolder /mnt/Internal/RClone/servercontents

What is the problem you are having with rclone?

It produces tons of these kinds of output lines:

2026/05/05 10:03:27 ERROR : v23/data01/LawTemp/MEM.prn: Failed to copy: failed to open source object: failed to open: open v23\data01\LawTemp\MEM.prn: response error: A file cannot be opened because the share access flags are incompatible.

The files in question are part of the storage containing a database, which is the backend of law practice management. Running this command after hours, when no one was in the office produced no such errors.

Because I have no problems copying sharefolder to my MacBook Pro with a connection to smb://abacususer@192.168.57.11/sharefolder I am wondering what is different between how macOS makes an SMB connection and how rclone does.

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

truenas_admin@qnaptruenas[~]$ rclone version
rclone v1.70.2
- os/version: debian 12.11 (64 bit)
- os/kernel: 6.12.33-production+truenas (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.23.5
- go/linking: dynamic
- go/tags: none

On my system, a TrueNAS (Scale 25.10.3), rclone is installed through a Docker container.

Which cloud storage system are you using? (eg Google Drive)

The source is a Windows 11 Pro (25H2 26200.8246) SMB share. The destination is part of the NAS’s internal file hierarchy.

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

rclone copy smbserver:/sharefolder /mnt/Internal/RClone/servercontents

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[onedrive]
type = onedrive
token = XXX
drive_id = XXX
drive_type = business

[smbserver]
type = smb
host = XXX
user = XXX
pass = XXX
### Double check the config for sensitive info before posting publicly

A log from the command that you were trying to run with the -vv flag

2026/05/05 10:19:55 ERROR : Attempt 3/3 failed with 25 errors and: failed to open source object: failed to open: open v23\data01\accounting\SYSTEM SETUP.adt: response error: A file cannot be opened because the share access flags are incompatible.

welcome to the forum,

please rclone selfupdate and test again.


and check out my howto guide and why i do not use rclone's smb backend. i always native mount

1 Like

I ran sudo rclone selfupdate and got this:

2026/05/05 12:15:33 CRITICAL: Error: /usr/bin/rclone: file is not writable, run self-update as root

I am assuming that this is because rclone is deployed on my TrueNAS system through a Docker app. The Docker app is at its latest version, 1.4.3.

I also ran sudo docker pull rclone/rclone:sha-9d4c912, and it output this:

sha-9d4c912: Pulling from rclone/rclone
6a0ac1617861: Pull complete 
6f9d43dfdc27: Pull complete 
a578013d989c: Pull complete 
79e24f4287f1: Pull complete 
4d5c72f53117: Pull complete 
Digest: sha256:4ed9e66e985df2db7fa77f2e46491bd710b7c4527cfc6e41388c4b015a29ea1a
Status: Downloaded newer image for rclone/rclone:sha-9d4c912
docker.io/rclone/rclone:sha-9d4c912

Afterwards the TrueNAS GUI still showed:

I had it all wrong. I installed that rclone Docker app many months ago, and I have completely forgotten how. rclone is part of the standard TrueNAS Scale Community Edition distribution. That Docker app was supposed to provide a GUI for automating synchronization of specific NAS directories with storage services. I have uninstalled it, and rclone is still available from the shell.

Listing /usr/bin/ shows this:

-rwxr-xr-x  1 root root    87830480 Apr 13 15:26 rclone

So, contrary to that error above, /usr/bin/rclone is writable. Why it won’t let me self-update when run with sudo is something I do not understand.

me too.

well, rclone is a portable app, can simply download the executable.

I created a new topic for the particular issue of not being able to update rclone.