ClearOS Bug Tracker


View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0017791ClearOSapp-samba - Windows Networkingpublic2017-11-13 07:442020-03-03 03:09
Reporterbchambers 
Assigned To 
PrioritynormalSeverityminorReproducibilitysometimes
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version7.4.0 
Target VersionFixed in Version 
Summary0017791: Samba may fail to start on boot
DescriptionDepending 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
Additional InformationDarryl 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
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0007541)
NickH (developer)
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 (developer)
2020-03-03 03:09

Possibly already fixed. See comments in https://gitlab.com/clearos/clearfoundation/app-samba/issues/20 [^]

- Issue History
Date Modified Username Field Change
2017-11-13 07:45 bchambers New Issue
2017-11-14 12:52 user2 Status new => confirmed
2018-06-08 02:58 NickH Note Added: 0007541
2020-03-03 03:09 NickH Note Added: 0013291
2020-03-03 03:09 NickH Status confirmed => closed
2020-03-03 03:09 NickH Resolution open => fixed