smbstatus reports dead connection as active
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I have a home server running ubuntu 14.04.1 LTS.
It was setup originally with ubuntu 12.04 LTS and running satisfactorily for more than 2 years
The server checks every 10 minutes and goes to sleep if no active clients are detected.
My main PC is a w7 box connecting to some samba shares on the server.
In the past 3 weeks it happened 3 times that the server reported an active samba connection although the client had long been shutdown.
At the first occurrence I set the deadtime parameter to 10 but this did not solve the problem.
The deadtime parameter was not there at all for the past 2 years and the problem only showed up lately so I think the cause of problem is somewhere else.
This is the output of smbstatus -v taken about 2 hours after the client has been powered off.
It should not show the 4366 PID lines.
Samba version 4.1.6-Ubuntu
PID Username Group Machine
-------
4366 father father 192.168.101.69 (ipv4:192.
Opened /var/run/
Service pid machine Connected at
-------
HomeServer 4366 192.168.101.69 Thu Nov 13 19:03:04 2014
Locked files:
Pid Uid DenyMode Access R/W Oplock SharePath Name Time
-------
4366 1000 DENY_NONE 0x100081 RDONLY NONE /Data.Home . Thu Nov 13 19:03:04 2014
apt-cache policy samba reports
samba:
Installed: 2:4.1.6+
Candidate: 2:4.1.6+
Version table:
*** 2:4.1.6+
500 http://
500 http://
100 /var/lib/
2:
500 http://
My list of installed packages is attached.
I'm having the exact same problem. First time I was experiencing this issue was about a year ago when I was setting up a new Server based on Ubuntu 14.04. I was not sure whether it was a bug in Samba or a problem womewhere else. My Solution at that time was going back to 12.04 with Samba 3.6.3 which stills works fine.
Now, for different reasons I thought about upgrading to 14.04 and was hoping to find this bug gone. It's a shame that it's still existing.
I also tried setting up Samba on a Debian server and even compiled the newest Samba version 4.3.1 with no remedy.
I assume it is maybe not a problem based in Ubuntu or Debian but only within the Samba sources.