toni_margheriti n00b
Joined: 24 Oct 2024 Posts: 1
|
Posted: Thu Oct 24, 2024 3:11 am Post subject: CIFS: Error -115 connecting to server |
|
|
Hi,
I have a NAS that serves files via Samba. The NAS runs Debian 12.7 and Samba version 4.17.12-Debian. I can connect to the NAS from a Mac, from an iOS device, and from two different Android (14, 15) devices without any issues, using the very same user account. However, when I try to connect from a Gentoo machine I simply can't, no matter what I do.
The Gentoo machine is in the same network as all other devices. It runs an up-to-date Gentoo version with Kernel 6.11.4 and mount.cifs version 7.0. I have enabled debugging using the following commands:
Code: |
echo 'module cifs +p' > /sys/kernel/debug/dynamic_debug/control
echo 'file fs/cifs/* +p' > /sys/kernel/debug/dynamic_debug/control
echo 7 > /proc/fs/cifs/cifsFYI
|
I manually run mount as follows:
Code: |
mount -v -t cifs -o workgroup=XXX,username=toni,uid=1000,gid=1000 //192.168.1.3/toni /mnt/nas/
|
The command returns the following output:
Code: |
mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
|
When I check dmesg, I see the following output:
Code: |
[219391.024500] CIFS: fs/smb/client/fs_context.c: CIFS: parsing cifs mount option 'source'
[219391.024525] CIFS: fs/smb/client/fs_context.c: CIFS: parsing cifs mount option 'ip'
[219391.024531] CIFS: fs/smb/client/fs_context.c: CIFS: parsing cifs mount option 'unc'
[219391.024537] CIFS: fs/smb/client/fs_context.c: CIFS: parsing cifs mount option 'uid'
[219391.024543] CIFS: fs/smb/client/fs_context.c: CIFS: parsing cifs mount option 'gid'
[219391.024547] CIFS: fs/smb/client/fs_context.c: CIFS: parsing cifs mount option 'user'
[219391.024552] CIFS: fs/smb/client/fs_context.c: CIFS: parsing cifs mount option 'domain'
[219391.024557] CIFS: fs/smb/client/fs_context.c: Domain name set
[219391.024560] CIFS: fs/smb/client/fs_context.c: CIFS: parsing cifs mount option 'pass'
[219391.024566] CIFS: enabling forceuid mount option implicitly because uid= option is specified
[219391.024568] CIFS: enabling forcegid mount option implicitly because gid= option is specified
[219391.024570] CIFS: fs/smb/client/cifsfs.c: cifs_smb3_do_mount: devname=//192.168.1.3/toni flags=0x0
[219391.024585] CIFS: fs/smb/client/connect.c: file mode: 0755 dir mode: 0755
[219391.024598] CIFS: fs/smb/client/connect.c: VFS: in cifs_mount_get_session as Xid: 36 with uid: 0
[219391.024604] CIFS: fs/smb/client/connect.c: UNC: \\192.168.1.3\toni
[219391.024611] CIFS: fs/smb/client/connect.c: generic_ip_connect: connecting to 192.168.1:445
[219391.024629] CIFS: fs/smb/client/connect.c: Socket created
[219391.024632] CIFS: fs/smb/client/connect.c: sndbuf 16384 rcvbuf 131072 rcvtimeo 0x834
[219396.106525] CIFS: fs/smb/client/connect.c: Error -115 connecting to server
[219396.106583] CIFS: fs/smb/client/connect.c: generic_ip_connect: connecting to 192.168.1.3:139
[219396.106616] CIFS: fs/smb/client/connect.c: Socket created
[219396.106620] CIFS: fs/smb/client/connect.c: sndbuf 16384 rcvbuf 131072 rcvtimeo 0x834
[219401.226476] CIFS: fs/smb/client/connect.c: Error -115 connecting to server
[219401.226510] CIFS: VFS: Error connecting to socket. Aborting operation.
[219401.226517] CIFS: fs/smb/client/connect.c: VFS: leaving cifs_mount_put_conns (xid = 36) rc = 0
[219401.226522] CIFS: VFS: cifs_mount failed w/return code = -115
|
No matter what sec or vers option I try, the result is the same. However, if I use smbclient like this:
Code: |
smbclient -U toni //192.168.1.3/toni -c "dir"
|
... it returns the content of the home directory without any issues. This means that my machine is able to reach the server, connect to it and authenticate successfully.
Does anyone have an idea of what might be wrong with CIFS? Thank you. |
|