Project

General

Profile

Bug #17180

samba warning on boot: secrets.tdb: No such file or directory

Added by Tommy Stone almost 3 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Nice to have
Assignee:
William Grzybowski
Category:
OS
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

updated freenas and started seeing this:
---------------------------------------------------------
Aug 31 14:15:03 fn1 generate_smb4_conf.py: [generate_smb4_conf:1498] Unable to open /var/db/samba4/private/secrets.tdb: [Errno 2] No such file or directory
Aug 31 14:15:03 fn1 generate_smb4_conf.py: [common.pipesubr:66] Popen()ing: /sbin/sysctl -n 'kern.maxfilesperproc'
Aug 31 14:15:03 fn1 generate_smb4_conf.py: [common.pipesubr:66] Popen()ing: mount
Aug 31 14:15:03 fn1 generate_smb4_conf.py: [common.pipesubr:66] Popen()ing: mount
Aug 31 14:15:03 fn1 generate_smb4_conf.py: [common.pipesubr:66] Popen()ing: /usr/local/bin/net -d 0 getlocalsid
Aug 31 14:15:05 fn1 smbd: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
Aug 31 14:15:06 fn1 smbd: dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
Aug 31 14:15:06 fn1 root: /etc/rc: WARNING: failed precmd routine for vmware_guestd
Aug 31 14:15:07 fn1 smbd: dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
Aug 31 14:15:08 fn1 smbd: dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mdnsd Socket:35 Err:-1 Errno:2 No such file or directory
Aug 31 14:15:13 fn1 mDNSResponder: mDNSResponder (Engineering Build) (Aug 17 2016 05:46:55) starting
Aug 31 14:15:13 fn1 mDNSResponder: 8: Listening for incoming Unix Domain Socket client requests
Aug 31 14:15:13 fn1 mDNSResponder: mDNS_AddDNSServer: Lock not held! mDNS_busy (0) mDNS_reentrancy (0)
Aug 31 14:15:13 fn1 mDNSResponder: mDNS_AddDNSServer: Lock not held! mDNS_busy (0) mDNS_reentrancy (0)
Aug 31 14:15:22 fn1 mDNSResponder: mDNS_Register_internal: ERROR!! Tried to register AuthRecord 0000000801406D60 fn1.local. (Addr) that's already in the list
Aug 31 14:15:22 fn1 mDNSResponder: mDNS_Register_internal: ERROR!! Tried to register AuthRecord 0000000801407180 123.1.168.192.in-addr.arpa. (PTR) that's already in the list

Stop refresh
---------------------------------------------------------
thought I would share in case someone else is having this error


Related issues

Related to FreeNAS - Bug #14429: redirect mDns responder messages to log file Closed: Duplicate2016-04-04

Associated revisions

Revision 1ee80ef1 (diff)
Added by William Grzybowski almost 3 years ago

fix(rc.d): backup secrets.tb only if it exists

Ticket: #17180

Revision a8a2a8d5 (diff)
Added by William Grzybowski almost 3 years ago

fix(rc.d): backup secrets.tb only if it exists

Ticket: #17180
(cherry picked from commit 1ee80ef147757b449f1c1227fd07c957ec05af87)

Revision c7846709 (diff)
Added by William Grzybowski almost 3 years ago

fix(rc.d): backup secrets.tb only if it exists

Ticket: #17180
(cherry picked from commit 1ee80ef147757b449f1c1227fd07c957ec05af87)

History

#1 Updated by Tommy Stone almost 3 years ago

  • File debug-fn1-20160831183335.txz added

#2 Updated by Heather Ownby almost 3 years ago

  • Status changed from Unscreened to Screened
  • Assignee set to Mike Marshall

#3 Updated by Mike Marshall almost 3 years ago

The mDNSResponder messages are just harmless noise. I'll look into the samba messages.

#4 Updated by Mike Marshall almost 3 years ago

  • Seen in changed from Unspecified to 9.10-RELEASE

I see you are running 9.10
It may be worth trying to upgrade to 9.10.1 and seeing if that resolves it.

#5 Updated by Mike Marshall almost 3 years ago

Make sure to backup your config db first

#6 Updated by Mike Marshall almost 3 years ago

  • Seen in changed from 9.10-RELEASE to 9.10.1-U3

Please disregard the upgrade suggestion. I just saw you were actually running nighties.

#7 Avatar?id=14398&size=24x24 Updated by Kris Moore almost 3 years ago

  • Assignee changed from Mike Marshall to William Grzybowski

William, can comment on this for Mike and the others in support?

#8 Updated by William Grzybowski almost 3 years ago

  • Priority changed from No priority to Nice to have
  • Target version set to 9.10.2
  • Seen in changed from 9.10.1-U3 to 9.10.1

What are you asking? the samba error? This is just a harmless warning, that should be silenced.

#9 Avatar?id=14398&size=24x24 Updated by Kris Moore almost 3 years ago

  • Status changed from Screened to Closed: Behaves correctly

yea now that i look closer this is just noise.

#10 Updated by Josh Paetzel almost 3 years ago

  • Status changed from Closed: Behaves correctly to Screened

There's still a nice to have we can fix here.

The missing file shouldn't be logged. It's a red herring to log that as an error. What's happening is the code is merging in to that file if it exists, or generating it if it doesn't.

#11 Updated by Jordan Hubbard almost 3 years ago

I've also suggested in the past that we should redirect mdnsresponder to /dev/null since it never says anything worth listening to. I thought we had already, in fact, but either that didn't happen or the fix got lost.

#12 Updated by Dru Lavigne almost 3 years ago

  • Related to Bug #14429: redirect mDns responder messages to log file added

#13 Updated by William Grzybowski almost 3 years ago

  • Subject changed from samba to samba warning on boot: secrets.tdb: No such file or directory

#14 Updated by William Grzybowski almost 3 years ago

  • Status changed from Screened to Needs Developer Review

#15 Updated by William Grzybowski almost 3 years ago

  • Assignee changed from William Grzybowski to Suraj Ravichandran

#16 Updated by Suraj Ravichandran over 2 years ago

  • Status changed from Needs Developer Review to Reviewed
  • Assignee changed from Suraj Ravichandran to William Grzybowski
  • % Done changed from 0 to 100

#17 Updated by Vaibhav Chauhan over 2 years ago

  • Status changed from Reviewed to Ready For Release

#18 Updated by Dru Lavigne about 2 years ago

  • File deleted (debug-fn1-20160831183335.txz)

#19 Updated by Dru Lavigne about 2 years ago

  • Private changed from Yes to No

#20 Updated by Dru Lavigne over 1 year ago

  • Status changed from Ready For Release to Resolved

Also available in: Atom PDF