Samba4 Crashes + Port 445 Connections to Itself

Andrew Bartlett abartlet at
Fri Jul 12 15:55:37 MDT 2013

On Fri, 2013-07-12 at 10:35 -0700, kraker wrote:
> After months (I had to take a hiatus from this stuff for a few weeks) of
> running into this issue, I have at least solved one of the issues -
> performance.
> I was going through config files and commenting out things that I knew I had
> changed that might possibly have an effect on what I was trying to do and
> had an idea. I've been running samba at log level 10 in case I run into
> issues. Well, it turns out that was my issue in itself. When I changed it to
> log level 1 and restarted, I could get folder properties, create new
> folders, delete folders, etc pretty much instantaneously. When I looked at
> the number of port 445 connection, it was at 3... not 30, not 300, not 499. 
> I hope this helps someone else that is banging their head as I've been. Go
> figure, I would resolve my own problem the day I finally sucked up my pride
> and asked for help. Maybe I should do it more often.
> Hopefully this is the cause of my other issue as well, but I'll see here
> shortly.

It's not surprising that level 10 would bog down the server, and as we
do make recursive connections, this could cause timeouts that cause
other issues. 

That said, if you try again with git master, even with debugging on
these issues could well be resolved.  We fixed up a number of issues
caused by the winbind implementation in Samba 4.0's AD DC mode -
including one where it made repeated connections to the server, and
another where it left behind stale smbd processes.  

We need to replace winbind, but for now we think we have fixed the most
troubling issues.

These are being backported for 4.0 and 4.1, but the patches are not yet
in a released version.


Andrew Bartlett

Andrew Bartlett                      
Authentication Developer, Samba Team 

More information about the samba-technical mailing list