Bug 202903 - CIFS Mounts mounts hang for a few minutes (Send error in Close ... Server has not responded in 120 seconds ...)
Summary: CIFS Mounts mounts hang for a few minutes (Send error in Close ... Server has...
Status: NEW
Alias: None
Product: File System
Classification: Unclassified
Component: CIFS (show other bugs)
Hardware: All Linux
: P1 high
Assignee: fs_cifs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-13 12:34 UTC by t.wede
Modified: 2023-02-15 12:11 UTC (History)
7 users (show)

See Also:
Kernel Version: 5.0.1
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description t.wede 2019-03-13 12:34:43 UTC
I notice that problem since update to Kernel 4.18.

CIFS Mounts hang sporadically.

[15417.600077] CIFS VFS: Send error in Close = -512
[15448.008414] CIFS VFS: Server xxx.xxx.xxx.xxx has not responded in 120 seconds. Reconnecting...
[15545.139675] CIFS VFS: Send error in Close = -5

Mount options are: vers=1.0,user=[smbuser],password=[password],uid=[uid],gid=[gid],serverino,nobrl,mapchars

The server is reachable. From the same machine from Windows in Virtualbox the shares are reachable on the server at the same time.
Comment 1 Steve French 2019-03-18 15:14:29 UTC
What is server type?  Samba? Mac? Windows? NetApp or EMC filer? Azure Cloud?
Comment 2 t.wede 2019-03-18 15:41:47 UTC
Target server is Samba 4.2.4 on openSuse 13.1 (currently kernel 4.20.13).

It seems to be the same as https://bugzilla.kernel.org/show_bug.cgi?id=198349 .
Comment 3 Ferry Toth 2019-05-12 14:49:27 UTC
Me too. Problem started after updating client to Ubuntu 19.03 (kernel 5.0.0), host is on Ubuntu 18.04 (kernel 4.15).

I have mount options: rw,relatime,vers=1.0,cache=strict,username=ferry,uid=1001,forceuid,gid=1001,forcegid,addr=192.168.1.19,soft,unix,posixpaths,mapchars,nobrl,cifsacl,acl,rsize=1048576,wsize=65536,bsize=1048576,echo_interval=60,actimeo=1

notably vers=1.0, same as reporter. I get send error -5 and -9.

It seems to be triggered when saving a file from Libreoffice, which then hangs, and so does my file manager Dolphin (which is active on the share). After a while (some minutes) saving the file completes.
Comment 4 Ferry Toth 2019-05-13 12:55:00 UTC
Today I found that opening a 2nd Dolphin stopped the hang. But now the only error messages were:

[ 2579.253316] CIFS VFS: Server ATHINA has not responded in 120 seconds. Reconnecting...
[ 2588.792276] Leaked POSIX lock on dev=0x0:0x3c ino=0x14fd  fl_owner=00000000ca8b4012 fl_flags=0x1 fl_type=0x1 fl_pid=5348
Comment 5 Ferry Toth 2019-07-05 14:42:12 UTC
The hang is most often triggered by Libreoffice, I don't know what that application does exactly.

But I can confirm that when using Ubuntu's kernel 5.0.0-19 the problem occurs and that falling back to Ubuntu's 4.15.0-1043-oem the problem goes away (so this is a workaround that does not require user to build kernels), just install the package).

Also it may be that this bug is a duplicate of 202611. If so, 202611 may have a patch available.
Comment 6 Randall Rodriguez 2019-10-28 16:02:26 UTC
Hi

I have the exact same problem, this is a backup server with minimal centos 8 fully updated at October 28th, 2019

kernel 4.18
samba 

kernel: CIFS VFS: Server 192.168.13.15 has not responded in 120 seconds. Reconnecting...

the server stops answering network requests, not even ping 

not LibreOffice, not even GUI

samba packages installed:

samba-common-libs-4.9.1-8.el8.x86_64
samba-client-4.9.1-8.el8.x86_64
samba-common-4.9.1-8.el8.noarch
samba-client-libs-4.9.1-8.el8.x86_64

for what i read it happens on ubuntu, opensuse, centos 8

thanks
Comment 7 Agroni 2022-08-24 14:48:18 UTC
I am getting the same error as well.

First of all, browsing windows shared folders with KDE Dolphin is very slow and then when you edit a document on a mounted windows shared folder with LibreOffice and save it, it hangs at about 15% of of saving the file.

JournalCTL showed these errors:
Aug 24 10:17:01 DevBox kernel: CIFS: VFS: \\10.xxx.xxx.xxx has not responded in 180 seconds. Reconnecting...
Aug 24 10:17:02 DevBox kernel: CIFS: Status code returned 0xc00000d0 STATUS_REQUEST_NOT_ACCEPTED
Aug 24 10:17:02 DevBox kernel: CIFS: VFS: \\10.xxx.xxx.xxx Send error in SessSetup = -5
Aug 24 10:18:02 DevBox kernel: INFO: task soffice.bin:445274 blocked for more than 1105 seconds.
Aug 24 10:18:02 DevBox kernel:       Not tainted 5.18.17-1-MANJARO #1
Aug 24 10:18:02 DevBox kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Aug 24 10:18:02 DevBox kernel: task:soffice.bin     state:D stack:    0 pid:445274 ppid:445273 flags:0x0000>

**Please escalate this bug to CRITICAL since data is being lost. You can't even kill LibreOffice or shutdown the PC. Hard reset by holding down the power button for more than 4 seconds is the only way to recover from the situation.

Note You need to log in before you can comment on or make changes to this bug.