Hi, I upgraded my Samba 4.5.16 installed (by apt-get) on Debian 9.9 to Samba 4.10 through the Van Belle repository (apt.van-belle.nl). apt-get install -t stretch-samba410 samba attr winbind libpam-winbind libnss-winbind libpam-krb5 krb5-config krb5-user bind9 ctdb ldb-tools smbldap-tools ufw glusterfs-common libcephfs1 The packages "bind9 ctdb ldb-tools smbldap-tools ufw glusterfs-common libcephfs1" were suggesteds by apt-get command itself. However, Samba 4 has stopped working as follows: tail -n 50 /var/log/syslog Jul 23 10:19:25 samba4-dc systemd[1]: Starting Samba AD Daemon... Jul 23 10:19:25 samba4-dc liblogging-stdlog: action 'action 14' resumed (module 'builtin:omfwd') [v8.24.0 try http://www.rsyslog.com/e/2359 ] Jul 23 10:19:25 samba4-dc liblogging-stdlog: action 'action 14' resumed (module 'builtin:omfwd') [v8.24.0 try http://www.rsyslog.com/e/2359 ] Jul 23 10:19:25 samba4-dc samba: root process[823]: [2019/07/23 10:19:25.547350, 0] ../../source4/smbd/server.c:587(binary_smbd_main) Jul 23 10:19:25 samba4-dc samba: root process[823]: samba version 4.10.6-Debian started. Jul 23 10:19:25 samba4-dc samba: root process[823]: Copyright Andrew Tridgell and the Samba Team 1992-2019 Jul 23 10:19:25 samba4-dc samba: root process[823]: [2019/07/23 10:19:25.942586, 0] ../../source4/smbd/server.c:773(binary_smbd_main) Jul 23 10:19:25 samba4-dc samba: root process[823]: binary_smbd_main: samba: using 'standard' process model Jul 23 10:19:26 samba4-dc samba: task[dns][838]: [2019/07/23 10:19:26.025682, 0] ../../source4/smbd/service_stream.c:374(stream_setup_socket) Jul 23 10:19:26 samba4-dc samba: task[dns][838]: stream_setup_socket: Failed to listen on :::53 - NT_STATUS_ADDRESS_ALREADY_ASSOCIATED Jul 23 10:19:26 samba4-dc samba: task[dns][838]: [2019/07/23 10:19:26.025819, 0] ../../source4/dns_server/dns_server.c:649(dns_add_socket) Jul 23 10:19:26 samba4-dc samba: task[dns][838]: Failed to bind to :::53 TCP - NT_STATUS_ADDRESS_ALREADY_ASSOCIATED Jul 23 10:19:26 samba4-dc samba: task[dns][838]: [2019/07/23 10:19:26.025879, 0] ../../source4/smbd/service_stream.c:374(stream_setup_socket) Jul 23 10:19:26 samba4-dc samba: task[dns][838]: stream_setup_socket: Failed to listen on 0.0.0.0:53 - NT_STATUS_ADDRESS_ALREADY_ASSOCIATED Jul 23 10:19:26 samba4-dc samba: task[dns][838]: [2019/07/23 10:19:26.025909, 0] ../../source4/dns_server/dns_server.c:649(dns_add_socket) Jul 23 10:19:26 samba4-dc samba: task[dns][838]: Failed to bind to 0.0.0.0:53 TCP - NT_STATUS_ADDRESS_ALREADY_ASSOCIATED Jul 23 10:19:26 samba4-dc samba: task[dns][838]: [2019/07/23 10:19:26.025930, 0] ../../source4/smbd/service_task.c:36(task_server_terminate) Jul 23 10:19:26 samba4-dc samba: task[dns][838]: task_server_terminate: task_server_terminate: [dns failed to setup interfaces] Jul 23 10:19:26 samba4-dc samba: root process[823]: [2019/07/23 10:19:26.026957, 0] ../../source4/smbd/server.c:371(samba_terminate) Jul 23 10:19:26 samba4-dc samba: root process[823]: samba_terminate: samba_terminate of samba 823: dns failed to setup interfaces Jul 23 10:19:26 samba4-dc systemd[1]: samba-ad-dc.service: Main process exited, code=exited, status=1/FAILURE Jul 23 10:19:26 samba4-dc samba: task[ldapsrv][829]: [2019/07/23 10:19:26.654493, 0] ../../source4/smbd/process_standard.c:84(sigterm_signal_handler) Jul 23 10:19:26 samba4-dc samba: task[ldapsrv][829]: sigterm_signal_handler: Exiting pid 829 on SIGTERM Jul 23 10:19:26 samba4-dc systemd[1]: Failed to start Samba AD Daemon. Jul 23 10:19:26 samba4-dc systemd[1]: samba-ad-dc.service: Unit entered failed state. Jul 23 10:19:26 samba4-dc systemd[1]: samba-ad-dc.service: Failed with result 'exit-code'. Follow my file smb.conf root at samba4-dc:~# cat /etc/samba/smb.conf # Global parameters [global] netbios name = SAMBA4-DC realm = EMPRESA.COM.BR workgroup = EMPRESA server role = active directory domain controller [netlogon] path = /var/lib/samba/sysvol/empresa.com.br/scripts read only = No [sysvol] path = /var/lib/samba/sysvol read only = No Regards, M?rcio Bacci
Hai, If you run : apt-get dist-upgrade Does it show extra packages to install, if yes, do so, if no. Can you run this for me and mail it to me. wget https://github.com/thctlo/samba4/blob/master/samba-collect-debug-info.sh bash samba-collect-debug-info.sh Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Marcio Demetrio Bacci via samba > Verzonden: dinsdag 23 juli 2019 15:41 > Aan: samba at lists.samba.org > Onderwerp: [Samba] Problems after upgrade Samba 4 > > Hi, > > I upgraded my Samba 4.5.16 installed (by apt-get) on Debian > 9.9 to Samba > 4.10 through the Van Belle repository (apt.van-belle.nl). > > apt-get install -t stretch-samba410 samba attr winbind libpam-winbind > libnss-winbind libpam-krb5 krb5-config krb5-user bind9 ctdb ldb-tools > smbldap-tools ufw glusterfs-common libcephfs1 > > The packages "bind9 ctdb ldb-tools smbldap-tools ufw glusterfs-common > libcephfs1" were suggesteds by apt-get command itself. > > However, Samba 4 has stopped working as follows: > > > tail -n 50 /var/log/syslog > Jul 23 10:19:25 samba4-dc systemd[1]: Starting Samba AD Daemon... > Jul 23 10:19:25 samba4-dc liblogging-stdlog: action 'action > 14' resumed > (module 'builtin:omfwd') [v8.24.0 try http://www.rsyslog.com/e/2359 ] > Jul 23 10:19:25 samba4-dc liblogging-stdlog: action 'action > 14' resumed > (module 'builtin:omfwd') [v8.24.0 try http://www.rsyslog.com/e/2359 ] > Jul 23 10:19:25 samba4-dc samba: root process[823]: [2019/07/23 > 10:19:25.547350, 0] ../../source4/smbd/server.c:587(binary_smbd_main) > Jul 23 10:19:25 samba4-dc samba: root process[823]: samba version > 4.10.6-Debian started. > Jul 23 10:19:25 samba4-dc samba: root process[823]: Copyright Andrew > Tridgell and the Samba Team 1992-2019 > Jul 23 10:19:25 samba4-dc samba: root process[823]: [2019/07/23 > 10:19:25.942586, 0] ../../source4/smbd/server.c:773(binary_smbd_main) > Jul 23 10:19:25 samba4-dc samba: root process[823]: > binary_smbd_main: > samba: using 'standard' process model > Jul 23 10:19:26 samba4-dc samba: task[dns][838]: [2019/07/23 > 10:19:26.025682, 0] > ../../source4/smbd/service_stream.c:374(stream_setup_socket) > Jul 23 10:19:26 samba4-dc samba: task[dns][838]: > stream_setup_socket: > Failed to listen on :::53 - NT_STATUS_ADDRESS_ALREADY_ASSOCIATED > Jul 23 10:19:26 samba4-dc samba: task[dns][838]: [2019/07/23 > 10:19:26.025819, 0] > ../../source4/dns_server/dns_server.c:649(dns_add_socket) > Jul 23 10:19:26 samba4-dc samba: task[dns][838]: Failed to > bind to :::53 > TCP - NT_STATUS_ADDRESS_ALREADY_ASSOCIATED > Jul 23 10:19:26 samba4-dc samba: task[dns][838]: [2019/07/23 > 10:19:26.025879, 0] > ../../source4/smbd/service_stream.c:374(stream_setup_socket) > Jul 23 10:19:26 samba4-dc samba: task[dns][838]: > stream_setup_socket: > Failed to listen on 0.0.0.0:53 - NT_STATUS_ADDRESS_ALREADY_ASSOCIATED > Jul 23 10:19:26 samba4-dc samba: task[dns][838]: [2019/07/23 > 10:19:26.025909, 0] > ../../source4/dns_server/dns_server.c:649(dns_add_socket) > Jul 23 10:19:26 samba4-dc samba: task[dns][838]: Failed to bind to > 0.0.0.0:53 TCP - NT_STATUS_ADDRESS_ALREADY_ASSOCIATED > Jul 23 10:19:26 samba4-dc samba: task[dns][838]: [2019/07/23 > 10:19:26.025930, 0] > ../../source4/smbd/service_task.c:36(task_server_terminate) > Jul 23 10:19:26 samba4-dc samba: task[dns][838]: > task_server_terminate: > task_server_terminate: [dns failed to setup interfaces] > Jul 23 10:19:26 samba4-dc samba: root process[823]: [2019/07/23 > 10:19:26.026957, 0] ../../source4/smbd/server.c:371(samba_terminate) > Jul 23 10:19:26 samba4-dc samba: root process[823]: samba_terminate: > samba_terminate of samba 823: dns failed to setup interfaces > Jul 23 10:19:26 samba4-dc systemd[1]: samba-ad-dc.service: > Main process > exited, code=exited, status=1/FAILURE > Jul 23 10:19:26 samba4-dc samba: task[ldapsrv][829]: [2019/07/23 > 10:19:26.654493, 0] > ../../source4/smbd/process_standard.c:84(sigterm_signal_handler) > Jul 23 10:19:26 samba4-dc samba: task[ldapsrv][829]: > sigterm_signal_handler: Exiting pid 829 on SIGTERM > Jul 23 10:19:26 samba4-dc systemd[1]: Failed to start Samba AD Daemon. > Jul 23 10:19:26 samba4-dc systemd[1]: samba-ad-dc.service: > Unit entered > failed state. > Jul 23 10:19:26 samba4-dc systemd[1]: samba-ad-dc.service: Failed with > result 'exit-code'. > > > Follow my file smb.conf > > root at samba4-dc:~# cat /etc/samba/smb.conf > # Global parameters > [global] > netbios name = SAMBA4-DC > realm = EMPRESA.COM.BR > workgroup = EMPRESA > server role = active directory domain controller > > [netlogon] > path = /var/lib/samba/sysvol/empresa.com.br/scripts > read only = No > > [sysvol] > path = /var/lib/samba/sysvol > read only = No > > > Regards, > > M?rcio Bacci > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >
On 23/07/2019 14:41, Marcio Demetrio Bacci via samba wrote:> Hi, > > I upgraded my Samba 4.5.16 installed (by apt-get) on Debian 9.9 to Samba > 4.10 through the Van Belle repository (apt.van-belle.nl). > > apt-get install -t stretch-samba410 samba attr winbind libpam-winbind > libnss-winbind libpam-krb5 krb5-config krb5-user bind9 ctdb ldb-tools > smbldap-tools ufw glusterfs-common libcephfs1 > > The packages "bind9 ctdb ldb-tools smbldap-tools ufw glusterfs-common > libcephfs1" were suggesteds by apt-get command itself.Why did you install the 'recommended' packages ???? You seem to using the internal dns server You cannot run ctdb on a Samba AD DC smbldap-tools is for an NT4-style PDC ufw is a firewall glusterfs-common & libcephsfs1 are for clusters in fact, the only one you 'might' need is ldb-tools Now we come to your fix, Bind9 is running on port 53 and blocking your DCs internal dns server. Rowland
> Now we come to your fix, Bind9 is running on port 53 and > blocking your DCs internal dns server... Oeps, i should have seen that. But yes, removing bind9 should fix it.> > > > The packages "bind9 ctdb ldb-tools smbldap-tools ufw > glusterfs-common > > libcephfs1" were suggesteds by apt-get command itself. > > Why did you install the 'recommended' packages ????Uhh.. Rowland .. These are "suggests" not Recommends. ;-) apt-cache show samba , shows that. Recommends: attr, logrotate, samba-dsdb-modules, samba-vfs-modules Suggests: bind9 (>= 1:9.5.1), bind9utils, ctdb, ldb-tools, ntp | chrony (>= 3.0-1), smbldap-tools, winbind, ufw ;-)> > You seem to using the internal dns server > > You cannot run ctdb on a Samba AD DC > > smbldap-tools is for an NT4-style PDC > > ufw is a firewall > > glusterfs-common & libcephsfs1 are for clusters > > in fact, the only one you 'might' need is ldb-tools > > Now we come to your fix, Bind9 is running on port 53 and > blocking your DCs internal dns server... Oeps, i should have seen that. But yes, removing bind9 should fix it. Greetz, Louis P.s Upgrading samba from original or my repo to an higher version on my repo. Just change repo line part "stretch-sambaXX" to stretch-samba410 apt update apt dist-upgrade
On 23/07/2019 15:13, L.P.H. van Belle via samba wrote:>> Now we come to your fix, Bind9 is running on port 53 and >> blocking your DCs internal dns server. > .. Oeps, i should have seen that. > But yes, removing bind9 should fix it.Ah, it is you that needs the glasses now ;-)> > >>> The packages "bind9 ctdb ldb-tools smbldap-tools ufw >> glusterfs-common >>> libcephfs1" were suggesteds by apt-get command itself. >> Why did you install the 'recommended' packages ???? > Uhh.. Rowland .. These are "suggests" not Recommends. ;-)Same thing, different wrapper ;-) Rowland