What is the problem you are having with rclone?
I am using using the 'smb' backend to interact with a Windows Share from a containerized ubuntu environment. I have found that files <= 127 KiB will successfully transfer but > 127 KiB will fail to copy. Other operations like file listings work great.
Run the command 'rclone version' and share the full output of the command.
ubuntu [/mnt/code]: rclone --version
rclone v1.65.2-DEV
- os/version: ubuntu 20.04 (64 bit)
- os/kernel: 3.10.0-1160.108.1.el7.x86_64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.21.6
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
smb
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone copy -vv large_file.dat remote:MyShare/Path/Folder
Please run 'rclone config redacted' and share the full output.
ubuntu [/mnt/code]: rclone config show remote
[remote]
type = smb
host = <share ip>
port = 139
user = <username>
pass = *** ENCRYPTED ***
domain = ad
A log from the command that you were trying to run with the -vv
flag
Success copy:
ubuntu [/mnt/code]: rclone copy -vv small_file.dat remote:MyShare/Path/Folder
2024/03/08 15:39:49 DEBUG : rclone: Version "v1.65.2-DEV" starting with parameters ["rclone" "copy" "-vv" "small_file.dat" "remote:MyShare/Path/Folder"]
2024/03/08 15:39:49 DEBUG : Creating backend with remote "small_file.dat"
2024/03/08 15:39:49 DEBUG : Using config file from "/home/ubuntu/.config/rclone/rclone.conf"
2024/03/08 15:39:49 DEBUG : fs cache: adding new entry for parent of "small_file.dat", "/mnt/code"
2024/03/08 15:39:49 DEBUG : Creating backend with remote "remote:MyShare/Path/Folder"
2024/03/08 15:39:49 DEBUG : smb://<username>@<share ip>:139/MyShare/Path/Folder: Using root directory "MyShare/Path/Folder"
2024/03/08 15:39:49 DEBUG : small_file.dat: Need to transfer - File not found at Destination
2024/03/08 15:39:50 DEBUG : small_file.dat.wusabak6.partial: renamed to: small_file.dat
2024/03/08 15:39:50 INFO : small_file.dat: Copied (new)
2024/03/08 15:39:50 INFO :
Transferred: 63 B / 63 B, 100%, 0 B/s, ETA -
Transferred: 1 / 1, 100%
Elapsed time: 0.1s
2024/03/08 15:39:50 DEBUG : 11 go routines active
2024/03/08 15:39:50 DEBUG : smb://<username>@<share ip>:139/MyShare/Path/Folder: Closing 2 unused connections
# small_file.dat is 63 Bytes
Failed copy:
ubuntu [/mnt/code]: rclone copy -vv large_file.dat remote:MyShare/Path/Folder
2024/03/08 15:39:22 DEBUG : rclone: Version "v1.65.2-DEV" starting with parameters ["rclone" "copy" "-vv" "large_file.dat" "remote:MyShare/Path/Folder"]
2024/03/08 15:39:22 DEBUG : Creating backend with remote "large_file.dat"
2024/03/08 15:39:22 DEBUG : Using config file from "/home/ubuntu/.config/rclone/rclone.conf"
2024/03/08 15:39:22 DEBUG : fs cache: adding new entry for parent of "large_file.dat", "/mnt/code"
2024/03/08 15:39:22 DEBUG : Creating backend with remote "remote:MyShare/Path/Folder"
2024/03/08 15:39:22 DEBUG : smb://<username>@<share ip>:139/MyShare/Path/Folder: Using root directory "MyShare/Path/Folder"
2024/03/08 15:39:22 DEBUG : large_file.dat: Need to transfer - File not found at Destination
2024/03/08 15:39:22 DEBUG : large_file.dat.doqawun9.partial: failed to close the file for delete: close MyShare\Path\large_file.dat.doqawun9.partial: connection error: write tcp <host ip>:40936-><share ip>:139: write: broken pipe
2024/03/08 15:39:22 DEBUG : large_file.dat.doqawun9.partial: failed to remove: remove MyShare\Path\large_file.dat.doqawun9.partial: connection error: read tcp <host ip>:40936-><share ip>:139: read: connection reset by peer
2024/03/08 15:39:22 DEBUG : smb://<username>@<share ip>:139/MyShare/Path/Folder: Connection failed, closing: stat : connection error: read tcp <host ip>:40936-><share ip>:139: read: connection reset by peer
2024/03/08 15:39:22 DEBUG : large_file.dat: Received error: Update ReadFrom failed: write MyShare\Path\large_file.dat.doqawun9.partial: connection error: write tcp <host ip>:40936-><share ip>:139: write: broken pipe - low level retry 0/10
2024/03/08 15:39:22 DEBUG : large_file.dat.doqawun9.partial: failed to close the file for delete: close MyShare\Path\large_file.dat.doqawun9.partial: connection error: EOF
2024/03/08 15:39:22 DEBUG : large_file.dat.doqawun9.partial: failed to remove: remove MyShare\Path\large_file.dat.doqawun9.partial: connection error: EOF
2024/03/08 15:39:22 DEBUG : smb://<username>@<share ip>:139/MyShare/Path/Folder: Connection failed, closing: stat : connection error: EOF
2024/03/08 15:39:22 DEBUG : large_file.dat: Received error: Update ReadFrom failed: write MyShare\Path\large_file.dat.doqawun9.partial: connection error: write tcp <host ip>:40940-><share ip>:139: write: connection reset by peer - low level retry 1/10
2024/03/08 15:39:22 DEBUG : large_file.dat.doqawun9.partial: failed to close the file for delete: close MyShare\Path\large_file.dat.doqawun9.partial: connection error: write tcp <host ip>:40946-><share ip>:139: write: broken pipe
2024/03/08 15:39:22 DEBUG : large_file.dat.doqawun9.partial: failed to remove: remove MyShare\Path\large_file.dat.doqawun9.partial: connection error: write tcp <host ip>:40946-><share ip>:139: write: broken pipe
2024/03/08 15:39:22 DEBUG : smb://<username>@<share ip>:139/MyShare/Path/Folder: Connection failed, closing: stat : connection error: write tcp <host ip>:40946-><share ip>:139: write: broken pipe
2024/03/08 15:39:22 DEBUG : large_file.dat: Received error: Update ReadFrom failed: write MyShare\Path\large_file.dat.doqawun9.partial: connection error: write tcp <host ip>:40946-><share ip>:139: write: broken pipe - low level retry 2/10
2024/03/08 15:39:22 DEBUG : large_file.dat.doqawun9.partial: failed to close the file for delete: close MyShare\Path\large_file.dat.doqawun9.partial: connection error: write tcp <host ip>:40948-><share ip>:139: write: broken pipe
2024/03/08 15:39:22 DEBUG : large_file.dat.doqawun9.partial: failed to remove: remove MyShare\Path\large_file.dat.doqawun9.partial: connection error: EOF
2024/03/08 15:39:22 DEBUG : smb://<username>@<share ip>:139/MyShare/Path/Folder: Connection failed, closing: stat : connection error: EOF
2024/03/08 15:39:22 DEBUG : large_file.dat: Received error: Update ReadFrom failed: write MyShare\Path\large_file.dat.doqawun9.partial: connection error: write tcp <host ip>:40948-><share ip>:139: write: connection reset by peer - low level retry 3/10
2024/03/08 15:39:22 DEBUG : large_file.dat.doqawun9.partial: failed to close the file for delete: close MyShare\Path\large_file.dat.doqawun9.partial: connection error: write tcp <host ip>:40950-><share ip>:139: write: broken pipe
2024/03/08 15:39:22 DEBUG : large_file.dat.doqawun9.partial: failed to remove: remove MyShare\Path\large_file.dat.doqawun9.partial: connection error: read tcp <host ip>:40950-><share ip>:139: read: connection reset by peer
2024/03/08 15:39:22 DEBUG : smb://<username>@<share ip>:139/MyShare/Path/Folder: Connection failed, closing: stat : connection error: read tcp <host ip>:40950-><share ip>:139: read: connection reset by peer
2024/03/08 15:39:22 DEBUG : large_file.dat: Received error: Update ReadFrom failed: write MyShare\Path\large_file.dat.doqawun9.partial: connection error: write tcp <host ip>:40950-><share ip>:139: write: broken pipe - low level retry 4/10
2024/03/08 15:39:22 DEBUG : large_file.dat.doqawun9.partial: failed to close the file for delete: close MyShare\Path\large_file.dat.doqawun9.partial: connection error: EOF
2024/03/08 15:39:22 DEBUG : large_file.dat.doqawun9.partial: failed to remove: remove MyShare\Path\large_file.dat.doqawun9.partial: connection error: EOF
2024/03/08 15:39:22 DEBUG : smb://<username>@<share ip>:139/MyShare/Path/Folder: Connection failed, closing: stat : connection error: EOF
2024/03/08 15:39:22 DEBUG : large_file.dat: Received error: Update ReadFrom failed: write MyShare\Path\large_file.dat.doqawun9.partial: connection error: write tcp <host ip>:40952-><share ip>:139: write: connection reset by peer - low level retry 5/10
2024/03/08 15:39:22 DEBUG : large_file.dat.doqawun9.partial: failed to close the file for delete: close MyShare\Path\large_file.dat.doqawun9.partial: connection error: EOF
2024/03/08 15:39:22 DEBUG : large_file.dat.doqawun9.partial: failed to remove: remove MyShare\Path\large_file.dat.doqawun9.partial: connection error: EOF
2024/03/08 15:39:22 DEBUG : smb://<username>@<share ip>:139/MyShare/Path/Folder: Connection failed, closing: stat : connection error: EOF
2024/03/08 15:39:22 DEBUG : large_file.dat: Received error: Update ReadFrom failed: write MyShare\Path\large_file.dat.doqawun9.partial: connection error: write tcp <host ip>:40954-><share ip>:139: write: connection reset by peer - low level retry 6/10
2024/03/08 15:39:22 DEBUG : large_file.dat.doqawun9.partial: failed to close the file for delete: close MyShare\Path\large_file.dat.doqawun9.partial: connection error: EOF
2024/03/08 15:39:22 DEBUG : large_file.dat.doqawun9.partial: failed to remove: remove MyShare\Path\large_file.dat.doqawun9.partial: connection error: EOF
2024/03/08 15:39:22 DEBUG : smb://<username>@<share ip>:139/MyShare/Path/Folder: Connection failed, closing: stat : connection error: EOF
2024/03/08 15:39:22 DEBUG : large_file.dat: Received error: Update ReadFrom failed: write MyShare\Path\large_file.dat.doqawun9.partial: connection error: write tcp <host ip>:40956-><share ip>:139: write: connection reset by peer - low level retry 7/10
2024/03/08 15:39:22 DEBUG : large_file.dat.doqawun9.partial: failed to close the file for delete: close MyShare\Path\large_file.dat.doqawun9.partial: connection error: write tcp <host ip>:40958-><share ip>:139: write: broken pipe
2024/03/08 15:39:22 DEBUG : large_file.dat.doqawun9.partial: failed to remove: remove MyShare\Path\large_file.dat.doqawun9.partial: connection error: write tcp <host ip>:40958-><share ip>:139: write: broken pipe
2024/03/08 15:39:22 DEBUG : smb://<username>@<share ip>:139/MyShare/Path/Folder: Connection failed, closing: stat : connection error: write tcp <host ip>:40958-><share ip>:139: write: broken pipe
2024/03/08 15:39:22 DEBUG : large_file.dat: Received error: Update ReadFrom failed: write MyShare\Path\large_file.dat.doqawun9.partial: connection error: write tcp <host ip>:40958-><share ip>:139: write: connection reset by peer - low level retry 8/10
2024/03/08 15:39:22 DEBUG : large_file.dat.doqawun9.partial: failed to close the file for delete: close MyShare\Path\large_file.dat.doqawun9.partial: connection error: write tcp <host ip>:40960-><share ip>:139: write: broken pipe
2024/03/08 15:39:22 DEBUG : large_file.dat.doqawun9.partial: failed to remove: remove MyShare\Path\large_file.dat.doqawun9.partial: connection error: read tcp <host ip>:40960-><share ip>:139: read: connection reset by peer
2024/03/08 15:39:22 DEBUG : smb://<username>@<share ip>:139/MyShare/Path/Folder: Connection failed, closing: stat : connection error: read tcp <host ip>:40960-><share ip>:139: read: connection reset by peer
2024/03/08 15:39:22 DEBUG : large_file.dat: Received error: Update ReadFrom failed: write MyShare\Path\large_file.dat.doqawun9.partial: connection error: write tcp <host ip>:40960-><share ip>:139: write: broken pipe - low level retry 9/10
2024/03/08 15:39:22 ERROR : large_file.dat: Failed to copy: Update ReadFrom failed: write MyShare\Path\large_file.dat.doqawun9.partial: connection error: write tcp <host ip>:40960-><share ip>:139: write: broken pipe
2024/03/08 15:39:23 INFO : large_file.dat.doqawun9.partial: Removing failed copy
2024/03/08 15:39:23 ERROR : Attempt 1/3 failed with 1 errors and: Update ReadFrom failed: write MyShare\Path\large_file.dat.doqawun9.partial: connection error: write tcp <host ip>:40960-><share ip>:139: write: broken pipe
2024/03/08 15:39:23 DEBUG : large_file.dat: Need to transfer - File not found at Destination
# large_file.dat is 20 megabytes