seduction
 Language:
Welcome, Guest. Please login or register.
Did you miss your activation email?
2019/11/12, 14:23:14


Help

Author [EN] [PL] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Samba halts shutdown for 5 min  (Read 2562 times)

0 Members and 1 Guest are viewing this topic.

Offline vayu

  • User
  • Posts: 200
Samba halts shutdown for 5 min
« on: 2014/10/03, 05:51:00 »
A few du's ago my system started taking 5+ minutes to shutdown.  After shutting down from kdm I was able to see the message: A stop job is running for LSB: ensure Samba daemons ...min 43s / 5min)

Searching for that I found a bug but no solution I could discern.   There was one suggestion to change in /etc/init.d/samba but it was already set that way.

From reading I think the problem is something with smbd or nmbd not shutting down but it seems like there should be a way to adjust that 5 min timeout limit.  I don't mind forcing samba shut if I power down.  Does anyone know about this problem?  Any ideas about changing that 5 min setting?

Here are the bugs I found:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=762087
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=740942

Offline gypsy56

  • User
  • Posts: 34
Re: Samba halts shutdown for 5 min
« Reply #1 on: 2014/10/03, 08:42:05 »
I have the same Problem since some weeks. It seems to be a problem of Samba AND systemd. My workarround is to stop samba if I need it no more, but that the stoptime is also 5 minutes. The bug is from february and I have not much hope that someone fix it. :-(

Offline devil

  • Administrator
  • User
  • *****
  • Posts: 4.373
Re: Samba halts shutdown for 5 min
« Reply #2 on: 2014/10/03, 21:00:29 »
Your problem is clearly https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=740942. Remove the symlinks mentioned there and you should be fine.


greetz
devil

Offline vayu

  • User
  • Posts: 200
Re: Samba halts shutdown for 5 min
« Reply #3 on: 2014/10/03, 22:37:07 »
Your problem is clearly https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=740942. Remove the symlinks mentioned there and you should be fine.

Thanks, I couldn't come to that on my own.  It worked.


Gypsy, the exact steps I took were:
# update-rc.d -f samba remove
# update-rc.d -f samba-ad-dc remove
# update-rc.d -f smbd remove
# update-rc.d -f nmbd remove

ps. before I did that I quickly copied all the /etc/rc*.d folders into a backup folder.
« Last Edit: 2014/10/03, 22:43:56 by vayu »

Offline hefee

  • User
  • Posts: 392
Re: Samba halts shutdown for 5 min
« Reply #4 on: 2014/10/04, 00:04:49 »
if i understand the bugreport correctly you shouldn't delete all four services. Because now samba isn't started at all. You should only remove the samba service:
Code: [Select]
# update-rc.d -f samba remove

Offline gypsy56

  • User
  • Posts: 34
Re: Samba halts shutdown for 5 min
« Reply #5 on: 2014/10/04, 08:01:44 »
Quote
# update-rc.d -f samba remove
Very much thanks! That works for me.

Offline vayu

  • User
  • Posts: 200
Re: Samba halts shutdown for 5 min
« Reply #6 on: 2014/10/05, 05:21:15 »
if i understand the bugreport correctly you shouldn't delete all four services. Because now samba isn't started at all. You should only remove the samba service:
Code: [Select]
# update-rc.d -f samba remove

The post right after he says he also had to remove smbd and nmbd links.

The four statements worked for me, Samba starts and works the same as it had before.