What is the problem you are having with rclone?
With my present version of rclone, I am seeing this error:
and see this samba log:
[2024/04/18 18:20:40.556605, 4] ../../source3/smbd/sec_ctx.c:206(push_sec_ctx)
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2024/04/18 18:20:40.556804, 4] ../../source3/smbd/uid.c:566(push_conn_ctx)
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2024/04/18 18:20:40.556858, 4] ../../source3/smbd/sec_ctx.c:317(set_sec_ctx_internal)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2024/04/18 18:20:40.557028, 4] ../../source3/smbd/sec_ctx.c:443(pop_sec_ctx)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2024/04/18 18:20:40.557097, 4] ../../source3/smbd/sec_ctx.c:317(set_sec_ctx_internal)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2024/04/18 18:20:40.557167, 4] ../../source3/smbd/vfs.c:938(vfs_ChDir)
vfs_ChDir to /tmp/run/OneDrive
[2024/04/18 18:20:40.558980, 4] ../../source3/smbd/open.c:4138(open_file_ntcreate)
calling open_file with flags=0x0 flags2=0x800 mode=0666, access_mask = 0x80, open_access_mask = 0x80
[2024/04/18 18:20:40.560301, 4] ../../source3/smbd/sec_ctx.c:206(push_sec_ctx)
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2024/04/18 18:20:40.560488, 4] ../../source3/smbd/uid.c:566(push_conn_ctx)
push_conn_ctx(697695528) : conn_ctx_stack_ndx = 0
[2024/04/18 18:20:40.560545, 4] ../../source3/smbd/sec_ctx.c:317(set_sec_ctx_internal)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2024/04/18 18:20:40.560713, 4] ../../source3/smbd/sec_ctx.c:443(pop_sec_ctx)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2024/04/18 18:20:40.560774, 4] ../../source3/smbd/sec_ctx.c:317(set_sec_ctx_internal)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2024/04/18 18:20:40.560852, 4] ../../source3/smbd/vfs.c:938(vfs_ChDir)
vfs_ChDir to /tmp/run/OneDrive
[2024/04/18 18:20:40.562364, 4] ../../source3/smbd/sec_ctx.c:206(push_sec_ctx)
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2024/04/18 18:20:40.562554, 4] ../../source3/smbd/uid.c:566(push_conn_ctx)
push_conn_ctx(697695528) : conn_ctx_stack_ndx = 0
[2024/04/18 18:20:40.562610, 4] ../../source3/smbd/sec_ctx.c:317(set_sec_ctx_internal)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2024/04/18 18:20:40.562776, 4] ../../source3/smbd/sec_ctx.c:443(pop_sec_ctx)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2024/04/18 18:20:40.562837, 4] ../../source3/smbd/sec_ctx.c:317(set_sec_ctx_internal)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2024/04/18 18:20:40.562903, 4] ../../source3/smbd/vfs.c:938(vfs_ChDir)
vfs_ChDir to /tmp/run/OneDrive
[2024/04/18 18:20:41.262385, 3] ../../source3/smbd/smb2_server.c:3962(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_NOT_SUPPORTED] || at ../../source3/smbd/smb2_create.c:340
[2024/04/18 18:20:41.264588, 4] ../../source3/smbd/sec_ctx.c:206(push_sec_ctx)
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2024/04/18 18:20:41.264801, 4] ../../source3/smbd/uid.c:566(push_conn_ctx)
push_conn_ctx(697695528) : conn_ctx_stack_ndx = 0
[2024/04/18 18:20:41.264856, 4] ../../source3/smbd/sec_ctx.c:317(set_sec_ctx_internal)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2024/04/18 18:20:41.265021, 4] ../../source3/smbd/sec_ctx.c:443(pop_sec_ctx)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2024/04/18 18:20:41.265080, 4] ../../source3/smbd/sec_ctx.c:317(set_sec_ctx_internal)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2024/04/18 18:20:41.265143, 4] ../../source3/smbd/vfs.c:938(vfs_ChDir)
vfs_ChDir to /tmp/run/OneDrive
[2024/04/18 18:20:41.266208, 3] ../../source3/smbd/smb2_server.c:3962(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_NOT_SUPPORTED] || at ../../source3/smbd/smb2_create.c:340
when attempting to delete or rename a file on a samba share from an rclone mount based on the same command I have been using for years now on an OpenWrt router:
rclone mount "OneDrive:/Scanned Documents/" /var/run/OneDrive --use-mmap --buffer-size 0 --cache-dir /tmp --vfs-cache-mode writes --vfs-cache-max-age 0s --umask 000 --allow-other --daemon
I can read files just fine, and I can also strangely enough write new files.
I believe that this is an rclone issue because when adding another samba share I am not seeing this issue.
I think this issue relates to the use of a newer version of rclone.
I made a forum post on the OpenWrt forums about this issue here:
Run the command 'rclone version' and share the full output of the command.
root@OpenWrt-1:~# rclone --version
rclone v1.66.0
- os/version: openwrt 23.05.3 (64 bit)
- os/kernel: 5.15.150 (aarch64)
- os/type: linux
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.21.8
- go/linking: dynamic
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
OneDrive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone mount "OneDrive:/Scanned Documents/" /var/run/OneDrive --use-mmap --buffer-size 0 --cache-dir /tmp --vfs-cache-mode writes --vfs-cache-max-age 0s --umask 000 --allow-other --daemon
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
root@OpenWrt-1:~# rclone config redacted
[OneDrive]
type = onedrive
region = global
token = XXX
drive_id = XXX
drive_type = business
### 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
2024/04/19 17:07:08 DEBUG : /: Attr:
2024/04/19 17:07:08 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxrwx, err=<nil>
2024/04/19 17:07:08 DEBUG : /: Lookup: name="y"
2024/04/19 17:07:08 DEBUG : /: >Lookup: node=y, err=<nil>
2024/04/19 17:07:08 DEBUG : y: Attr:
2024/04/19 17:07:08 DEBUG : y: >Attr: a=valid=1s ino=0 size=6 mode=-rw-rw-rw-, err=<nil>