Ubuntu 22.10 hangs accessing QNAP TS-435XeU using SMB 3.1.1 over 10GB

Discussion about using NAS on Linux and Unix OS.
rakeller
Starting out
Posts: 13
Joined: Sat Nov 19, 2022 6:36 pm

Ubuntu 22.10 hangs accessing QNAP TS-435XeU using SMB 3.1.1 over 10GB

Post by rakeller »

From my Ubuntu 22.10 workstation I've mounted a network share with SMB 3.1.1 over a 10Gbit link, however the connection frequently hangs.

Model: TS-435XeU Firmware: QTS 5.0.1.2194
Interface: 192.168.1.79, connected 10G with mikrotik CRS309-1G-8S+IN (using SPF+ DAC)

Looking at the kernel logs, Echo Requests failed (and I can't see them in wireshark on the wire). DNS resolution should not be required as I've provided the IP address 192.168.1.79.

Any help greatly appreciated, thanks!

Code: Select all

Nov 23 21:43:12 panthera kernel: [ 6572.900270] CIFS: fs/cifs/transport.c: wait_for_free_credits: remove 1 credits total=0
Nov 23 21:43:12 panthera kernel: [ 6572.900285] CIFS: fs/cifs/transport.c: Sending smb: smb_len=72
Nov 23 21:43:12 panthera kernel: [ 6572.900636] CIFS: fs/cifs/connect.c: RFC1002 header 0x44
Nov 23 21:43:12 panthera kernel: [ 6572.900644] CIFS: fs/cifs/smb2misc.c: SMB2 len 68
Nov 23 21:43:12 panthera kernel: [ 6572.900648] CIFS: fs/cifs/smb2ops.c: smb2_add_credits: added 1 credits total=1
Nov 23 21:43:32 panthera kernel: [ 6593.379704] CIFS: fs/cifs/smb2pdu.c: In echo request for conn_id 1
Nov 23 21:43:32 panthera kernel: [ 6593.379714] CIFS: fs/cifs/smb2pdu.c: Echo request failed: -11
Nov 23 21:43:32 panthera kernel: [ 6593.379717] CIFS: fs/cifs/connect.c: Unable to send echo request to server: 192.168.1.79
<snip>
Nov 23 21:45:09 panthera kernel: [ 6689.633971] CIFS: fs/cifs/transport.c: Sending smb: smb_len=125
Nov 23 21:45:09 panthera kernel: [ 6689.634109] CIFS: fs/cifs/dns_resolve.c: dns_resolve_server_name_to_ip: probably server name is whole unc: \\192.168.1.79
Nov 23 21:45:09 panthera kernel: [ 6689.634111] CIFS: fs/cifs/dns_resolve.c: dns_resolve_server_name_to_ip: probably server name is whole unc: \\192.168.1.79
Nov 23 21:45:09 panthera kernel: [ 6689.634115] CIFS: fs/cifs/dns_resolve.c: dns_resolve_server_name_to_ip: unc is IP, skipping dns upcall: 192.168.1.79
Nov 23 21:45:09 panthera kernel: [ 6689.634119] CIFS: fs/cifs/connect.c: reconn_set_ipaddr_from_hostname: next dns resolution scheduled for 600 seconds in the future
Nov 23 21:45:09 panthera kernel: [ 6689.634120] CIFS: fs/cifs/dns_resolve.c: dns_resolve_server_name_to_ip: unc is IP, skipping dns upcall: 192.168.1.79
Nov 23 21:45:09 panthera kernel: [ 6689.634125] CIFS: fs/cifs/connect.c: reconn_set_ipaddr_from_hostname: next dns resolution scheduled for 600 seconds in the future
Nov 23 21:45:09 panthera kernel: [ 6689.634434] CIFS: fs/cifs/connect.c: RFC1002 header 0x49
Nov 23 21:45:09 panthera kernel: [ 6689.634443] CIFS: fs/cifs/smb2misc.c: SMB2 data length 0 offset 0
Nov 23 21:45:09 panthera kernel: [ 6689.634446] CIFS: fs/cifs/smb2misc.c: SMB2 len 73
Nov 23 21:45:09 panthera kernel: [ 6689.634450] CIFS: fs/cifs/smb2ops.c: smb2_add_credits: added 10 credits total=274
Nov 23 21:45:09 panthera kernel: [ 6689.634460] CIFS: fs/cifs/transport.c: cifs_sync_mid_result: cmd=11 mid=15 state=4
Nov 23 21:45:09 panthera kernel: [ 6689.634465] CIFS: Status code returned 0xc0000010 STATUS_INVALID_DEVICE_REQUEST
Nov 23 21:45:09 panthera kernel: [ 6689.634471] CIFS: fs/cifs/smb2maperror.c: Mapping SMB2 status code 0xc0000010 to POSIX err -95
Nov 23 21:45:09 panthera kernel: [ 6689.634474] CIFS: fs/cifs/misc.c: Null buffer passed to cifs_small_buf_release
Nov 23 21:45:09 panthera kernel: [ 6689.634477] CIFS: fs/cifs/smb2ops.c: server does not support query network interfaces
Nov 23 21:45:09 panthera kernel: [ 6689.634479] CIFS: fs/cifs/connect.c: smb2_query_server_interfaces: failed to query server interfaces: -95
Last edited by dolbyman on Thu Nov 24, 2022 5:11 am, edited 1 time in total.
Reason: added code tags
rakeller
Starting out
Posts: 13
Joined: Sat Nov 19, 2022 6:36 pm

Re: Ubuntu 22.10 hangs accessing QNAP TS-435XeU using SMB 3.1.1 over 10GB

Post by rakeller »

Note that I have a similar hanging issue with my QNAP TS-435XeU from my macbook pro:

viewtopic.php?f=30&t=168538
rakeller
Starting out
Posts: 13
Joined: Sat Nov 19, 2022 6:36 pm

Re: Ubuntu 22.10 hangs accessing QNAP TS-435XeU using SMB 3.1.1 over 10GB

Post by rakeller »

A possible issue might be that there are credits total=0:

Code: Select all

Nov 23 22:01:38 panthera kernel: [ 7678.803279] CIFS: fs/cifs/smb2pdu.c: In echo request for conn_id 2
Nov 23 22:01:38 panthera kernel: [ 7678.803292] CIFS: fs/cifs/transport.c: wait_for_free_credits: remove 1 credits total=0
Nov 23 22:01:38 panthera kernel: [ 7678.803314] CIFS: fs/cifs/transport.c: Sending smb: smb_len=72
Nov 23 22:01:38 panthera kernel: [ 7678.804202] CIFS: fs/cifs/connect.c: RFC1002 header 0x44
Nov 23 22:01:38 panthera kernel: [ 7678.804218] CIFS: fs/cifs/smb2misc.c: SMB2 len 68
Nov 23 22:01:38 panthera kernel: [ 7678.804224] CIFS: fs/cifs/smb2ops.c: smb2_add_credits: added 1 credits total=1
Nov 23 22:01:58 panthera kernel: [ 7699.282308] CIFS: fs/cifs/smb2pdu.c: In echo request for conn_id 1
Nov 23 22:01:58 panthera kernel: [ 7699.282320] CIFS: fs/cifs/transport.c: wait_for_free_credits: remove 1 credits total=0
Nov 23 22:01:58 panthera kernel: [ 7699.282336] CIFS: fs/cifs/transport.c: Sending smb: smb_len=72
Nov 23 22:02:39 panthera kernel: [ 7740.241715] CIFS: fs/cifs/smb2pdu.c: In echo request for conn_id 2
Nov 23 22:02:39 panthera kernel: [ 7740.241726] CIFS: fs/cifs/transport.c: wait_for_free_credits: remove 1 credits total=0
Nov 23 22:02:39 panthera kernel: [ 7740.241743] CIFS: fs/cifs/transport.c: Sending smb: smb_len=72
Nov 23 22:02:39 panthera kernel: [ 7740.242180] CIFS: fs/cifs/connect.c: RFC1002 header 0x44
Nov 23 22:02:39 panthera kernel: [ 7740.242193] CIFS: fs/cifs/smb2misc.c: SMB2 len 68
Nov 23 22:02:39 panthera kernel: [ 7740.242197] CIFS: fs/cifs/smb2ops.c: smb2_add_credits: added 1 credits total=1
Nov 23 22:02:47 panthera kernel: [ 7748.409795] CIFS: fs/cifs/cifssmb.c: total_read=4194384 buflen=4194384 remaining=4194304
Nov 23 22:02:47 panthera kernel: [ 7748.409806] CIFS: fs/cifs/smb2pdu.c: smb2_readv_callback: mid=11155643 state=4 result=0 bytes=4194304
Nov 23 22:02:47 panthera kernel: [ 7748.409814] CIFS: fs/cifs/smb2ops.c: smb2_add_credits: added 64 credits total=7976
Nov 23 22:02:47 panthera kernel: [ 7748.409822] CIFS: fs/cifs/connect.c: RFC1002 header 0x400050
Nov 23 22:02:47 panthera kernel: [ 7748.409825] CIFS: fs/cifs/cifssmb.c: cifs_readv_receive: mid=11155707 offset=25697779712 bytes=4194304
Nov 23 22:02:47 panthera kernel: [ 7748.453748] CIFS: fs/cifs/cifssmb.c: 0: iov_base=00000000f113a7be iov_len=0
Nov 23 22:02:47 panthera kernel: [ 7748.453752] CIFS: fs/cifs/cifssmb.c: 1: iov_base=00000000f113a7be iov_len=80
Nov 23 22:02:47 panthera kernel: [ 7748.453754] CIFS: fs/cifs/cifssmb.c: cifs_readv_receive: total_read=80 data_offset=80
Nov 23 22:02:47 panthera kernel: [ 7748.453756] CIFS: fs/cifs/file.c: eof=55476658176 eof_index=13544105
Nov 23 22:03:41 panthera kernel: [ 7801.681227] CIFS: fs/cifs/smb2pdu.c: In echo request for conn_id 2
Nov 23 22:03:41 panthera kernel: [ 7801.681240] CIFS: fs/cifs/transport.c: wait_for_free_credits: remove 1 credits total=0
Nov 23 22:03:41 panthera kernel: [ 7801.681260] CIFS: fs/cifs/transport.c: Sending smb: smb_len=72
Nov 23 22:03:41 panthera kernel: [ 7801.681627] CIFS: fs/cifs/connect.c: RFC1002 header 0x44
Nov 23 22:03:41 panthera kernel: [ 7801.681642] CIFS: fs/cifs/smb2misc.c: SMB2 len 68
Nov 23 22:03:41 panthera kernel: [ 7801.681647] CIFS: fs/cifs/smb2ops.c: smb2_add_credits: added 1 credits total=1
Nov 23 22:04:01 panthera kernel: [ 7822.160589] CIFS: fs/cifs/smb2pdu.c: In echo request for conn_id 1
Nov 23 22:04:01 panthera kernel: [ 7822.160603] CIFS: fs/cifs/smb2pdu.c: Echo request failed: -11
Nov 23 22:04:01 panthera kernel: [ 7822.160607] CIFS: fs/cifs/connect.c: Unable to send echo request to server: 192.168.1.79
Last edited by dolbyman on Thu Nov 24, 2022 5:12 am, edited 1 time in total.
Reason: added code tags
User avatar
dolbyman
Guru
Posts: 35024
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Ubuntu 22.10 hangs accessing QNAP TS-435XeU using SMB 3.1.1 over 10GB

Post by dolbyman »

Please put console outputs in code tags to help readability (I have fixed your two posts)
rakeller
Starting out
Posts: 13
Joined: Sat Nov 19, 2022 6:36 pm

Re: Ubuntu 22.10 hangs accessing QNAP TS-435XeU using SMB 3.1.1 over 10GB

Post by rakeller »

Update: I've tried mounting different SMB versions: SMBv3.1.1, SMBv3.0, SMBv2 all hang intermittently.

However, when mounting with SMBv1, the connection remains stable (I am aware that SMBv1 is outdated), but it seems like an SMB protocol issue.
atomey
New here
Posts: 9
Joined: Mon Nov 28, 2022 7:47 am

Re: Ubuntu 22.10 hangs accessing QNAP TS-435XeU using SMB 3.1.1 over 10GB

Post by atomey »

Rakeller, have you tried on gigabit only? I noticed in my post we are both using 10Gbe. Maybe the ARM model has a stability issue with persistent TCP connections or something when using 10Gbe. Might be worth trying.
fphilip
Starting out
Posts: 16
Joined: Mon Jul 25, 2016 6:21 am

Re: Ubuntu 22.10 hangs accessing QNAP TS-435XeU using SMB 3.1.1 over 10GB

Post by fphilip »

Hey
don't hijack this thread. Create a new thread for your own issue.
QNAP TS-220
QTS Vers. 4.3.3.2211 build 20221124
Drive 1: Seagate ST4000VN008 (Ironwolf)
Drive 2: Seagate ST4000VN008 (Ironwolf)
RAID1
WIN-10 clients & Linux Mint v20.3, Linux Mint v21
atomey
New here
Posts: 9
Joined: Mon Nov 28, 2022 7:47 am

Re: Ubuntu 22.10 hangs accessing QNAP TS-435XeU using SMB 3.1.1 over 10GB

Post by atomey »

fphilip wrote: Thu Dec 01, 2022 1:52 am Hey
don't hijack this thread. Create a new thread for your own issue.
WTF? Mind your business, we're collaborating to help each other, not sure what your problem is.
fphilip
Starting out
Posts: 16
Joined: Mon Jul 25, 2016 6:21 am

Re: Ubuntu 22.10 hangs accessing QNAP TS-435XeU using SMB 3.1.1 over 10GB

Post by fphilip »

No 1 in online blogs.. don't hijack a blog thread.
It's distracting from the original problem and possible solutions for it.
Everyone can hit the "create" button.
And btw, this thread IS MY business.
QNAP TS-220
QTS Vers. 4.3.3.2211 build 20221124
Drive 1: Seagate ST4000VN008 (Ironwolf)
Drive 2: Seagate ST4000VN008 (Ironwolf)
RAID1
WIN-10 clients & Linux Mint v20.3, Linux Mint v21
User avatar
dolbyman
Guru
Posts: 35024
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Ubuntu 22.10 hangs accessing QNAP TS-435XeU using SMB 3.1.1 over 10GB

Post by dolbyman »

fphilip wrote: Thu Dec 01, 2022 5:16 am And btw, this thread IS MY business.
Only one I see derailing the thread right now is fphilip.

Normally I am the one complaining about thread hijacking, but as atomey was contributing/inquiring at the problem at hand. I did see no issue.

Please calm down and be good (both)
atomey
New here
Posts: 9
Joined: Mon Nov 28, 2022 7:47 am

Re: Ubuntu 22.10 hangs accessing QNAP TS-435XeU using SMB 3.1.1 over 10GB

Post by atomey »

fphilip wrote: Thu Dec 01, 2022 5:16 am No 1 in online blogs.. don't hijack a blog thread.
It's distracting from the original problem and possible solutions for it.
Everyone can hit the "create" button.
And btw, this thread IS MY business.
LOL, you have a stick up your ** or something. You have no idea what you are talking about but please, continue to be triggered.

edit: also wanted to add, if you actually read the forum posts or checked my history you'd know that I already posted about my issue here:
viewtopic.php?f=35&t=168636

and RAKeller noticed it and decided to "hijack" it. I didn't mind and was glad to review hisissue. Not sure why you jump to conclusions but you should chill out and relax, maybe we'll even help you solve your issue...
rakeller
Starting out
Posts: 13
Joined: Sat Nov 19, 2022 6:36 pm

Re: Ubuntu 22.10 hangs accessing QNAP TS-435XeU using SMB 3.1.1 over 10GB

Post by rakeller »

Update: I've tried connecting the QNAP TS-435XeU with the Gigabit port (instead of 10Gbit), however I am still experiencing intermittent drops -- so there is no difference between 1Gbit and 10Gbit.
atomey
New here
Posts: 9
Joined: Mon Nov 28, 2022 7:47 am

Re: Ubuntu 22.10 hangs accessing QNAP TS-435XeU using SMB 3.1.1 over 10GB

Post by atomey »

rakeller wrote: Fri Dec 02, 2022 5:00 am Update: I've tried connecting the QNAP TS-435XeU with the Gigabit port (instead of 10Gbit), however I am still experiencing intermittent drops -- so there is no difference between 1Gbit and 10Gbit.
Interesting... was worth a shot. I opened a ticket with QNAP, waiting for word from Taiwan about the issue. I'll let you know if they find anything.
rakeller
Starting out
Posts: 13
Joined: Sat Nov 19, 2022 6:36 pm

Re: Ubuntu 22.10 hangs accessing QNAP TS-435XeU using SMB 3.1.1 over 10GB

Post by rakeller »

Upgraded QNAP TS-435XeU firmware to QTS 5.0.1.2234 (date 2022-12-01) but I am still experiencing intermittent drops with SMBv3, so the problem is not solved.
atomey
New here
Posts: 9
Joined: Mon Nov 28, 2022 7:47 am

Re: Ubuntu 22.10 hangs accessing QNAP TS-435XeU using SMB 3.1.1 over 10GB

Post by atomey »

rakeller wrote: Sat Dec 10, 2022 5:20 pm Upgraded QNAP TS-435XeU firmware to QTS 5.0.1.2234 (date 2022-12-01) but I am still experiencing intermittent drops with SMBv3, so the problem is not solved.
Good to know. I still have a ticket open with QNAP for about 3 weeks. Hoping they can resolve it and I don't have to look at NAS alternatives.
Post Reply

Return to “Linux & Unix (NFS)”