I came in this morning to a to a DNS failure. I think (could be wrong) that a kernel upgrade overnight is causing DNS to failure. Running "systemctl status samba-ad-dc.service" gives this: samba-ad-dc.service - Samba AD DC Loaded: loaded (/etc/systemd/system/samba-ad-dc.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2019-01-30 07:30:44 CST; 26min ago Docs: man:nmbd(8) man:samba(7) man:smb.conf(5) Process: 7611 ExecStart=/usr/local/samba/sbin/samba -D --configfile=/etc/samba/smb.conf (code=exited, status=1/FAILURE) Main PID: 7611 (code=exited, status=1/FAILURE) Status: "daemon failed to start: Samba failed to prime database" Error: 22 (Invalid argument) Running samba dnsupgade: ldb: unable to dlopen /usr/local/samba/lib/ldb/password_hash.so : libgpgme.so.11: cannot open shared object file: No such file or directory WARNING: Module [password_hash] not found - do you need to set LDB_MODULES_PATH? module samba_dsdb initialization failed : Operations error Unable to load modules for tdb:///usr/local/samba/private/sam.ldb: (null) Traceback (most recent call last): File "/usr/local/samba/sbin/samba_dnsupdate", line 748, in <module> samdb = SamDB(url=lp.samdb_url(), session_info=system_session(), lp=lp) File "/usr/local/samba/lib/python2.7/site-packages/samba/samdb.py", line 64, in __init__ options=options) File "/usr/local/samba/lib/python2.7/site-packages/samba/__init__.py", line 115, in __init__ self.connect(url, flags, options) File "/usr/local/samba/lib/python2.7/site-packages/samba/samdb.py", line 79, in connect options=options) _ldb.LdbError: (1, None) Suggestions??? (help!) -- Thank you. Bob Wooden
Hai Bob, Your using compile packages these days? The OS, Still debian? Version? Samba version? Bind DLZ used or not? Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Robert Wooden via samba > Verzonden: woensdag 30 januari 2019 15:03 > Aan: SAMBA MailList > Onderwerp: [Samba] DNS failure > > I came in this morning to a to a DNS failure. > > I think (could be wrong) that a kernel upgrade overnight is > causing DNS to > failure. > > Running "systemctl status samba-ad-dc.service" gives this: > samba-ad-dc.service - Samba AD DC > Loaded: loaded (/etc/systemd/system/samba-ad-dc.service; > enabled; vendor > preset: enabled) > Active: failed (Result: exit-code) since Wed 2019-01-30 > 07:30:44 CST; > 26min ago > Docs: man:nmbd(8) > man:samba(7) > man:smb.conf(5) > Process: 7611 ExecStart=/usr/local/samba/sbin/samba -D > --configfile=/etc/samba/smb.conf (code=exited, status=1/FAILURE) > Main PID: 7611 (code=exited, status=1/FAILURE) > Status: "daemon failed to start: Samba failed to prime database" > Error: 22 (Invalid argument) > > Running samba dnsupgade: > ldb: unable to dlopen /usr/local/samba/lib/ldb/password_hash.so : > libgpgme.so.11: cannot open shared object file: No such file > or directory > WARNING: Module [password_hash] not found - do you need to set > LDB_MODULES_PATH? > module samba_dsdb initialization failed : Operations error > Unable to load modules for > tdb:///usr/local/samba/private/sam.ldb: (null) > Traceback (most recent call last): > File "/usr/local/samba/sbin/samba_dnsupdate", line 748, in <module> > samdb = SamDB(url=lp.samdb_url(), > session_info=system_session(), lp=lp) > File > "/usr/local/samba/lib/python2.7/site-packages/samba/samdb.py", line > 64, in __init__ > options=options) > File > "/usr/local/samba/lib/python2.7/site-packages/samba/__init__.py", > line 115, in __init__ > self.connect(url, flags, options) > File > "/usr/local/samba/lib/python2.7/site-packages/samba/samdb.py", line > 79, in connect > options=options) > _ldb.LdbError: (1, None) > > Suggestions??? (help!) > > -- > Thank you. > > Bob Wooden > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
First try : sudo apt update && sudo apt full-upgrade" and reboot. if thats not working, revert the kernel upgrade. Lets try to get the server running again. I'm reading into this upgrade now. https://news.softpedia.com/news/canonical-outs-major-linux-kernel-update-for-ubuntu-18-04-lts-to-patch-11-flaws-524740.shtml This is not a nice one. can you check also this location. ls /usr/local/samba/lib/ldb/ |grep *.so check if the upgrade didnt do anything on the ext4 filesystem. Is apparmor enabled? yes, or disable it or check if the profile is correct the /usr/local/samba https://help.ubuntu.com/lts/serverguide/samba-fileprint-security.html.en example below on that page. Greetz, Louis Van: Robert Wooden [mailto:bob at donelsontrophy.com] Verzonden: woensdag 30 januari 2019 15:37 Aan: L.P.H. van Belle Onderwerp: Re: [Samba] DNS failure Ubuntu 18.04LTS Samba (from source) 4.9.4 Bind_DLZ (Sorry, should have included in first email.) On Wed, Jan 30, 2019 at 8:34 AM L.P.H. van Belle via samba <samba at lists.samba.org> wrote: Hai Bob, Your using compile packages these days? The OS, Still debian? Version? Samba version? Bind DLZ used or not? Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Robert Wooden via samba > Verzonden: woensdag 30 januari 2019 15:03 > Aan: SAMBA MailList > Onderwerp: [Samba] DNS failure > > I came in this morning to a to a DNS failure. > > I think (could be wrong) that a kernel upgrade overnight is > causing DNS to > failure. > > Running "systemctl status samba-ad-dc.service" gives this: > samba-ad-dc.service - Samba AD DC > Loaded: loaded (/etc/systemd/system/samba-ad-dc.service; > enabled; vendor > preset: enabled) > Active: failed (Result: exit-code) since Wed 2019-01-30 > 07:30:44 CST; > 26min ago > Docs: man:nmbd(8) > man:samba(7) > man:smb.conf(5) > Process: 7611 ExecStart=/usr/local/samba/sbin/samba -D > --configfile=/etc/samba/smb.conf (code=exited, status=1/FAILURE) > Main PID: 7611 (code=exited, status=1/FAILURE) > Status: "daemon failed to start: Samba failed to prime database" > Error: 22 (Invalid argument) > > Running samba dnsupgade: > ldb: unable to dlopen /usr/local/samba/lib/ldb/password_hash.so : > libgpgme.so.11: cannot open shared object file: No such file > or directory > WARNING: Module [password_hash] not found - do you need to set > LDB_MODULES_PATH? > module samba_dsdb initialization failed : Operations error > Unable to load modules for > tdb:///usr/local/samba/private/sam.ldb: (null) > Traceback (most recent call last): > File "/usr/local/samba/sbin/samba_dnsupdate", line 748, in <module> > samdb = SamDB(url=lp.samdb_url(), > session_info=system_session(), lp=lp) > File > "/usr/local/samba/lib/python2.7/site-packages/samba/samdb.py", line > 64, in __init__ > options=options) > File > "/usr/local/samba/lib/python2.7/site-packages/samba/__init__.py", > line 115, in __init__ > self.connect(url, flags, options) > File > "/usr/local/samba/lib/python2.7/site-packages/samba/samdb.py", line > 79, in connect > options=options) > _ldb.LdbError: (1, None) > > Suggestions??? (help!) > > -- > Thank you. > > Bob Wooden > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- Thank you. Bob Wooden