Problem with SMB share

What is the problem you are having with rclone?

After adding SAMBA share (USB HDD connected to my FritzBox Router), it is impossible to connect or view the files, as it throws error with flags negotiations.
SMB share is working fine with win/linux and also can be added on the phone itself with file managers, but not in rclone

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

rclone 1.60.1-termux

  • os/version: unknown
  • os/kernel: 5.10.66-android12-9-25489753-abS908BXXU2BVKB (aarch64)
  • os/type: android
  • os/arch: arm64
  • go/version: go1.19.3
  • go/linking: dynamic
  • go/tags: noselfupdate

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 lsd net:

The rclone config contents with secrets removed.

[net]
type = smb
host = 192.168.0.1
user = ----
pass = ----
domain = WORKGROUP

A log from the command with the -vv flag

2022/11/30 01:21:10 DEBUG : rclone: Version "1.60.1-termux" starting with parameters ["rclone" "lsd" "net:" "-vv"]
2022/11/30 01:21:10 DEBUG : Creating backend with remote "net:"
2022/11/30 01:21:10 DEBUG : Using config file from "/data/data/com.termux/files/home/.config/rclone/rclone.conf"
2022/11/30 01:21:10 DEBUG : pacer: low level retry 1/10 (error couldn't connect SMB: invalid response error: invalid negotiate flags)
2022/11/30 01:21:10 DEBUG : pacer: Rate limited, increasing sleep to 200ms
2022/11/30 01:21:10 DEBUG : pacer: low level retry 2/10 (error couldn't connect SMB: invalid response error: invalid negotiate flags)
2022/11/30 01:21:10 DEBUG : pacer: Rate limited, increasing sleep to 400ms
2022/11/30 01:21:10 DEBUG : pacer: low level retry 3/10 (error couldn't connect SMB: invalid response error: invalid negotiate flags)
2022/11/30 01:21:10 DEBUG : pacer: Rate limited, increasing sleep to 800ms
2022/11/30 01:21:11 DEBUG : pacer: low level retry 4/10 (error couldn't connect SMB: invalid response error: invalid negotiate flags)
2022/11/30 01:21:11 DEBUG : pacer: Rate limited, increasing sleep to 1.6s
2022/11/30 01:21:11 DEBUG : pacer: low level retry 5/10 (error couldn't connect SMB: invalid response error: invalid negotiate flags)
2022/11/30 01:21:11 DEBUG : pacer: Rate limited, increasing sleep to 2s
2022/11/30 01:21:13 DEBUG : pacer: low level retry 6/10 (error couldn't connect SMB: invalid response error: invalid negotiate flags)
2022/11/30 01:21:15 DEBUG : pacer: low level retry 7/10 (error couldn't connect SMB: invalid response error: invalid negotiate flags)
2022/11/30 01:21:17 DEBUG : pacer: low level retry 8/10 (error couldn't connect SMB: invalid response error: invalid negotiate flags)
2022/11/30 01:21:19 DEBUG : pacer: low level retry 9/10 (error couldn't connect SMB: invalid response error: invalid negotiate flags)
2022/11/30 01:21:21 DEBUG : pacer: low level retry 10/10 (error couldn't connect SMB: invalid response error: invalid negotiate flags)
2022/11/30 01:21:21 ERROR : : error listing: couldn't connect SMB: invalid response error: invalid negotiate flags
2022/11/30 01:21:21 DEBUG : 23 go routines active
2022/11/30 01:21:21 Failed to lsd with 2 errors: last error was: couldn't connect SMB: invalid response error: invalid negotiate flags

That looks like this error: Invalid response error: invalid negotiate flags · Issue #49 · hirochachacha/go-smb2 · GitHub

We could try updating the library to see if that helps.

@Lesmiscore any ideas?

I get this error too for SMB share, on macOS 12.6.2 with FritzBox 7530

Can you make an issue on GitHub about this please with instructions on how to reproduce. Thanks.

done :wink:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.