Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
samba crashes on reboot, works if restarted
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
madchaz
l33t
l33t


Joined: 01 Jul 2003
Posts: 993
Location: Quebec, Canada

PostPosted: Thu Aug 21, 2014 3:22 pm    Post subject: samba crashes on reboot, works if restarted Reply with quote

Ran an update on my file server and I am now facing a somewhat ... strange issue.

When I reboot the server, nmbd crashes on boot.

If I then restart the service, all is well.

Checking after a reboot, ps -ef | grep nmbd returns only the grep. After restarting the service, I can see the process.

Here is the nmbd log from a reboot.

Code:

[2014/08/21 10:38:55,  0] nmbd/nmbd.c:861(main)
  nmbd version 3.6.23 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011
[2014/08/21 10:38:55,  0] nmbd/nmbd.c:690(open_sockets)


then from restarting the smbd service. The part at 10:40:46 only appear when I first browse the shares and it works.

Code:

[2014/08/21 10:40:23,  0] nmbd/nmbd.c:861(main)
  nmbd version 3.6.23 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011
[2014/08/21 10:40:46,  0] nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
  *****

  Samba name server SAIBAMAN2 is now a local master browser for workgroup DBZ on subnet 192.168.27.21

  *****
[2014/08/21 10:40:46,  0] nmbd/nmbd_browsesync.c:351(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name DBZ<1b> for the workgroup DBZ.
  Unable to sync browse lists in this workgroup.



I think I could use a bit of help here.
_________________
Someone asked me once if I suffered from mental illness. I told him I enjoyed every second of it.
www.madchaz.com A small candle of a website. As my lab specs on it.
Back to top
View user's profile Send private message
tomi.e
n00b
n00b


Joined: 24 Aug 2006
Posts: 68
Location: Slovenia

PostPosted: Mon Dec 01, 2014 5:01 pm    Post subject: Reply with quote

Did you ever manage to fix this? I had a similar (if not exactly the same) problem. It was caused by the fact that the nmbd daemon requires an active net.eth0 (or whatever you if-adapter is).

I changed two things to fix it:

1. made sure that the net.eth0 process is cold-started
Code:
rc-update add net.eth0 boot

2. changed a setting in the /etc/rc.conf
Code:
rc_hotplug="!net.*"


The solution is mostly based on this topic.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum