Connection issue to smb share "connection error: EOF"

STOP and READ USE THIS TEMPLATE NO EXCEPTIONS - By not using this, you waste your time, our time and really hate puppies. Please remove these two lines and that will confirm you have read them.

What is the problem you are having with rclone?

Rclone can't connect to a samba share, with error "ERROR : : error listing: couldn't connect SMB: connection error: EOF"

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

rclone v1.68.2

  • os/version: fedora 41 (64 bit)
  • os/kernel: 6.11.4-301.fc41.x86_64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.23.4
  • go/linking: dynamic
  • 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)

Paste command here

rclone ls SAN1:/ -vv

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

Paste config here

[GDrive]
type = drive
scope = drive
token = XXX
team_drive =

[GoogleDrivePerso]
type = drive
scope = drive
token = XXX
team_drive =

[SAN1]
type = smb
host = XXX
user = XXX
pass = XXX

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

Paste  log here

2025/02/04 12:39:07 DEBUG : rclone: Version "v1.68.2" starting with parameters ["rclone" "ls" "SAN1:/" "-vv"]
2025/02/04 12:39:07 DEBUG : Creating backend with remote "SAN1:/"
2025/02/04 12:39:07 DEBUG : Using config file from "/home/****/.config/rclone/rclone.conf"
2025/02/04 12:39:07 DEBUG : fs cache: renaming cache item "SAN1:/" to be canonical "SAN1:"
2025/02/04 12:39:07 DEBUG : pacer: low level retry 1/10 (error couldn't connect SMB: connection error: EOF)
2025/02/04 12:39:07 DEBUG : pacer: Rate limited, increasing sleep to 200ms
2025/02/04 12:39:08 DEBUG : pacer: low level retry 2/10 (error couldn't connect SMB: connection error: EOF)
2025/02/04 12:39:08 DEBUG : pacer: Rate limited, increasing sleep to 400ms
2025/02/04 12:39:08 DEBUG : pacer: low level retry 3/10 (error couldn't connect SMB: connection error: EOF)
2025/02/04 12:39:08 DEBUG : pacer: Rate limited, increasing sleep to 800ms
2025/02/04 12:39:08 DEBUG : pacer: low level retry 4/10 (error couldn't connect SMB: connection error: EOF)
2025/02/04 12:39:08 DEBUG : pacer: Rate limited, increasing sleep to 1.6s
2025/02/04 12:39:09 DEBUG : pacer: low level retry 5/10 (error couldn't connect SMB: connection error: EOF)
2025/02/04 12:39:09 DEBUG : pacer: Rate limited, increasing sleep to 2s
2025/02/04 12:39:11 DEBUG : pacer: low level retry 6/10 (error couldn't connect SMB: connection error: EOF)
2025/02/04 12:39:13 DEBUG : pacer: low level retry 7/10 (error couldn't connect SMB: connection error: EOF)
2025/02/04 12:39:15 DEBUG : pacer: low level retry 8/10 (error couldn't connect SMB: connection error: EOF)
2025/02/04 12:39:17 DEBUG : pacer: low level retry 9/10 (error couldn't connect SMB: connection error: EOF)
2025/02/04 12:39:19 DEBUG : pacer: low level retry 10/10 (error couldn't connect SMB: connection error: EOF)
2025/02/04 12:39:19 ERROR : : error listing: couldn't connect SMB: connection error: EOF
2025/02/04 12:39:19 DEBUG : 5 go routines active
2025/02/04 12:39:19 NOTICE: Failed to ls with 2 errors: last error was: couldn't connect SMB: connection error: EOF

There may have been a recent change as I was able to connect rclone with the same samba nas 2 weeks ago. Issue also affects also my set-up on ubunto 24.04LTS.

The issue may be related with samba version. (I usually have to adjust
client min protocol in smbclient config file, but Rclone doen't seem to case with this config file as no change if I comment or not the line)

Unlikely (but maybe…) it will make difference here but could you try the latest rclone? Also maybe the latest beta?

Unfortunatly, latest rclone is not solving the issue: on Ubuntu the Rclone version is 1.69 and I have same error.

Not sure what happened, as both Ubuntu and Fedora were able to connect a couple of weeks ago but not now... I had to reboot the NAS after power shortage but I did not change the firmware nor the parameters.

fwiw, test the samba share, without using rclone.

check out my handy, dandy howto guide
https://forum.rclone.org/t/how-to-access-smb-samba-with-rclone/42754

Yes, I can connect to the share without Rclone.

I can connect with the gnome file gui, with smbclient and also with mount.cifs although I need to adjust the SMB version.

Using mount would be a workaround. I'd rather have Rclone work as before