On 07/25/2019 10:36 AM, Rowland penny via samba wrote:> This probably means that you do not have the libnss-winbind links > and/or /etc/nsswitch.conf set up to return AD users (this is not > required on a DC, only if you want to use the DC as a fileserver).Not using it as a file server.? So back to the original question which is why am I getting a serverinfo error: athena:~# samba-tool dns serverinfo athena ERROR(runtime): uncaught exception - (9717, 'WERR_DNS_ERROR_DS_UNAVAILABLE') ? File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 177, in _run ??? return self.run(*args, **kwargs) ? File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 564, in run ??? None, 'ServerInfo') -- Bob Wooldridge EDM Incorporated
Hai, I've had look at you posts. Im missing a lot of info, might be me.. But can you get this file and run it. https://raw.githubusercontent.com/thctlo/samba4/master/samba-collect-debug-i nfo.sh Anonimize the output of needed. This wil help up finding the source of your problem. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Robert A Wooldridge via samba > Verzonden: donderdag 25 juli 2019 17:48 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] Serverinfo Error > > On 07/25/2019 10:36 AM, Rowland penny via samba wrote: > > This probably means that you do not have the libnss-winbind links > > and/or /etc/nsswitch.conf set up to return AD users (this is not > > required on a DC, only if you want to use the DC as a fileserver). > Not using it as a file server.? So back to the original > question which > is why am I getting a serverinfo error: > > athena:~# samba-tool dns serverinfo athena > ERROR(runtime): uncaught exception - (9717, > 'WERR_DNS_ERROR_DS_UNAVAILABLE') > ? File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", > line 177, in _run > ??? return self.run(*args, **kwargs) > ? File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line > 564, in run > ??? None, 'ServerInfo') > > > -- > Bob Wooldridge > EDM Incorporated > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >
On 07/25/2019 11:12 AM, L. van Belle via samba wrote:> Hai, > > I've had look at you posts. > Im missing a lot of info, might be me.. > But can you get this file and run it. > https://raw.githubusercontent.com/thctlo/samba4/master/samba-collect-debug-i > nfo.shI'm getting a 404 error on this link. -- Bob Wooldridge EDM Incorporated
On 25/07/2019 16:48, Robert A Wooldridge via samba wrote:> On 07/25/2019 10:36 AM, Rowland penny via samba wrote: >> This probably means that you do not have the libnss-winbind links >> and/or /etc/nsswitch.conf set up to return AD users (this is not >> required on a DC, only if you want to use the DC as a fileserver). > Not using it as a file server.? So back to the original question which > is why am I getting a serverinfo error: > > athena:~# samba-tool dns serverinfo athena > ERROR(runtime): uncaught exception - (9717, > 'WERR_DNS_ERROR_DS_UNAVAILABLE') > ? File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", > line 177, in _run > ??? return self.run(*args, **kwargs) > ? File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line > 564, in run > ??? None, 'ServerInfo') > >Well, 'WERR' is short for 'Windows Error' (I think) and 'DNS_ERROR_DS_UNAVAILABLE' is supposed to mean that the Directory Service is unavailable. Is something getting in the way (Apparmor, Selinux, a firewall etc). Is Samba actually running ? Are you using Bind9, if so, is it running and set up correctly ? Rowland
On 07/25/2019 11:35 AM, Rowland penny via samba wrote:> Well, 'WERR' is short for 'Windows Error' (I think) and > 'DNS_ERROR_DS_UNAVAILABLE' is supposed to mean that the Directory > Service is unavailable. Is something getting in the way (Apparmor, > Selinux, a firewall etc). Is Samba actually running ? Are you using > Bind9, if so, is it running and set up correctly ?I don't know what Apparmor is, selinux is not installed, and no firewall at this time is configured. Not using Bind9. Is samba running?? Well: athena:~# systemctl status samba-ad-dc.service ? samba-ad-dc.service - Samba AD Daemon ?? Loaded: loaded (/lib/systemd/system/samba-ad-dc.service; disabled; vendor preset: enabled) ?? Active: active (running) since Thu 2019-07-18 14:26:00 CDT; 6 days ago ???? Docs: man:samba(8) ?????????? man:samba(7) ?????????? man:smb.conf(5) ?Main PID: 3198 (samba) ?? Status: "winbindd: ready to serve connections..." ??? Tasks: 24 (limit: 4915) ?? Memory: 439.9M ?? CGroup: /system.slice/samba-ad-dc.service ?????????? ?? 3198 samba: root process ?????????? ?? 3199 samba: task[s3fs_parent] ?????????? ?? 3200 samba: task[dcesrv] ?????????? ?? 3201 samba: tfork waiter process ?????????? ?? 3202 samba: task[nbtd] ?????????? ?? 3203 /usr/sbin/smbd -D --option=server role check:inhibit=yes --foreground ?????????? ?? 3204 samba: task[wrepl] ?????????? ?? 3205 samba: task[ldapsrv] ?????????? ?? 3206 samba: task[cldapd] ?????????? ?? 3207 samba: conn[kdc_tcp] c[ipv4:10.10.10.204:55740] s[ipv4:10.10.1.10:88] server_id[3207.3] ?????????? ?? 3208 samba: task[dreplsrv] ?????????? ?? 3209 samba: task[winbindd_parent] ?????????? ?? 3210 samba: task[ntp_signd] ?????????? ?? 3211 samba: task[kccsrv] ?????????? ?? 3212 samba: task[dnsupdate] ?????????? ?? 3213 samba: tfork waiter process ?????????? ?? 3214 samba: conn[dns_tcp] c[ipv4:10.10.10.242:63297] s[ipv4:10.10.1.10:53] server_id[3214.41] ?????????? ?? 3215 /usr/sbin/winbindd -D --option=server role check:inhibit=yes --foreground ?????????? ?? 3223 /usr/sbin/smbd -D --option=server role check:inhibit=yes --foreground ?????????? ?? 3225 /usr/sbin/smbd -D --option=server role check:inhibit=yes --foreground ?????????? ?? 3445 winbindd: domain child [EDM] ?????????? ?? 3446 winbindd: idmap child ?????????? ??16924 /usr/sbin/smbd -D --option=server role check:inhibit=yes --foreground ?????????? ??20302 winbindd: domain child [BUILTIN] Jul 25 11:46:16 athena samba[3208]: task[dreplsrv][3208]: [2019/07/25 11:46:16.392261,? 0] ../source4/dsdb/repl/drepl_out_helpers.c:1030(dre -- Bob Wooldridge EDM Incorporated