ClearFoundation Tracker - ClearOS
View Issue Details
0017791ClearOSapp-samba - Windows Networkingpublic2017-11-13 07:442020-03-03 03:09
bchambers 
 
normalminorsometimes
closedfixed 
7.4.0 
 
0017791: Samba may fail to start on boot
Depending on some kind of race condition on boot, we have one report of Samba failing to start on boot because the nslcd daemon is in an unhappy state connecting to OpenLDAP
Darryl thinks issue lies somewhere inside openldap, however, may already be fixed upstream in more recent versions.

For now, as a work around, we implemented on an onboot 'hotfix':

 In the folder:

 /var/clearos/events/onboot/

Create a file named 'samba-hotfix' and add to this file:

 #!/bin/sh
/bin/systemctl restart nslcd.service
/bin/systemctl restart smb.service
/bin/systemctl restart nmb.service

Change the attributes of the file:

chmod 755 /var/clearos/events/onboot/samba-hotfix
No tags attached.
Issue History
2017-11-13 07:45bchambersNew Issue
2017-11-14 12:52user2Statusnew => confirmed
2018-06-08 02:58NickHNote Added: 0007541
2020-03-03 03:09NickHNote Added: 0013291
2020-03-03 03:09NickHStatusconfirmed => closed
2020-03-03 03:09NickHResolutionopen => fixed

Notes
(0007541)
NickH   
2018-06-08 02:58   
I had a restart failure a couple of days ago. The problem seemed to be creating the guest account/ from /var/log/samba/smbd:
[2018/06/06 11:43:47.389859, 1] ../lib/param/loadparm.c:1770(lpcfg_do_global_parameter)
  WARNING: The "syslog" option is deprecated
[2018/06/06 11:43:47.391026, 1] ../lib/param/loadparm.c:1020(lpcfg_service_ok)
  NOTE: Service homes is flagged unavailable.
[2018/06/06 11:43:47.391117, 1] ../lib/param/loadparm.c:1020(lpcfg_service_ok)
  NOTE: Service netlogon is flagged unavailable.
[2018/06/06 11:43:47.391163, 1] ../lib/param/loadparm.c:1020(lpcfg_service_ok)
  NOTE: Service profiles is flagged unavailable.
[2018/06/06 11:43:47.457251, 1] ../source3/profile/profile.c:51(set_profile_level)
  INFO: Profiling turned OFF from pid 4415
[2018/06/06 11:43:47.997893, 0] ../source3/auth/auth_util.c:762(get_guest_info3)
  SamInfo3_for_guest: Unable to locate guest account [guest]!
[2018/06/06 11:43:47.997934, 0] ../source3/auth/auth_util.c:830(make_new_session_info_guest)
  get_guest_info3 failed with NT_STATUS_NO_SUCH_USER
[2018/06/06 11:43:48.081939, 0] ../source3/smbd/server.c:1894(main)
  ERROR: failed to setup guest info.

At this point smb halted.

samba-4.6.2-12.v7.1.x86_64
(0013291)
NickH   
2020-03-03 03:09   
Possibly already fixed. See comments in https://gitlab.com/clearos/clearfoundation/app-samba/issues/20 [^]