Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

samba stopped and can't start anymore #1849

Open
mrPsycho opened this Issue Nov 28, 2018 · 9 comments

Comments

Projects
None yet
3 participants
@mrPsycho
Copy link

commented Nov 28, 2018

root@zentyal:/var/log/zentyal# systemctl start samba-ad-dc
Job for samba-ad-dc.service failed because a timeout was exceeded.
See "systemctl status samba-ad-dc.service" and "journalctl -xe" for details.
root@zentyal:/var/log/zentyal# systemctl status samba-ad-dc.service
● samba-ad-dc.service - Samba AD Daemon
   Loaded: loaded (/lib/systemd/system/samba-ad-dc.service; enabled; vendor preset: enabled)
   Active: failed (Result: timeout) since Wed 2018-11-28 11:00:18 MSK; 36s ago
     Docs: man:samba(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 25530 ExecStart=/usr/sbin/samba --foreground --no-process-group $SAMBAOPTIONS (code=exited, status=127)
 Main PID: 25530 (code=exited, status=127)

Nov 28 11:00:18 zentyal samba[25543]:   Exiting pid 25543 on SIGTERM
Nov 28 11:00:18 zentyal samba[25539]: [2018/11/28 11:00:18.772342,  0] ../source4/smbd/process_standard.c:86(sigterm_signal_handler)
Nov 28 11:00:18 zentyal samba[25539]:   Exiting pid 25539 on SIGTERM
Nov 28 11:00:18 zentyal samba[25534]: [2018/11/28 11:00:18.776202,  0] ../source4/smbd/process_standard.c:86(sigterm_signal_handler)
Nov 28 11:00:18 zentyal samba[25534]:   Exiting pid 25534 on SIGTERM
Nov 28 11:00:18 zentyal samba[25541]: [2018/11/28 11:00:18.779498,  0] ../source4/smbd/process_standard.c:86(sigterm_signal_handler)
Nov 28 11:00:18 zentyal samba[25541]:   Exiting pid 25541 on SIGTERM
Nov 28 11:00:18 zentyal systemd[1]: samba-ad-dc.service: Main process exited, code=exited, status=127/n/a
Nov 28 11:00:18 zentyal systemd[1]: samba-ad-dc.service: Failed with result 'timeout'.
Nov 28 11:00:18 zentyal systemd[1]: Failed to start Samba AD Daemon.
root@zentyal:/var/log/zentyal# journalctl -xe
-- 
-- The start-up result is RESULT.
Nov 28 11:00:41 zentyal anacron[25750]: Anacron 2.3 started on 2018-11-28
Nov 28 11:00:41 zentyal anacron[25750]: Normal exit (0 jobs run)
Nov 28 11:00:42 zentyal named[23942]: resolver priming query complete
Nov 28 11:00:43 zentyal named[23942]: resolver priming query complete
Nov 28 11:00:44 zentyal named[23942]: resolver priming query complete
Nov 28 11:00:45 zentyal dhcpd[23601]: BOOTREQUEST from 84:8e:0c:3e:11:2c via eth0
Nov 28 11:00:45 zentyal dhcpd[23601]: BOOTREPLY on 192.168.1.130 to 84:8e:0c:3e:11:2c via eth0
Nov 28 11:00:45 zentyal named[23942]: samba_dlz: starting transaction on zone domain.local
Nov 28 11:00:45 zentyal named[23942]: samba_dlz: spnego update failed
Nov 28 11:00:45 zentyal named[23942]: client @0x7fa1280e31b0 127.0.0.1#35547/key domain.local: updating zone 'domain.local/NONE': update failed: rejected by secure update (REFUSED)
Nov 28 11:00:45 zentyal named[23942]: samba_dlz: cancelling transaction on zone domain.local
Nov 28 11:00:45 zentyal dhcpd[23601]: Unable to add forward map from dhcp-192-168-1-130.domain.local. to 192.168.1.130: REFUSED
Nov 28 11:00:45 zentyal named[23942]: resolver priming query complete
Nov 28 11:00:46 zentyal named[23942]: resolver priming query complete
Nov 28 11:00:49 zentyal named[23942]: resolver priming query complete
Nov 28 11:00:49 zentyal nmbd[2273]: [2018/11/28 11:00:49.185439,  0] ../source3/nmbd/nmbd_incomingrequests.c:172(process_name_refresh_request)
Nov 28 11:00:49 zentyal nmbd[2273]:   process_name_refresh_request: unicast name registration request received for name ANDROED<20> from IP 192.168.0.117 on subnet UNICAST_SUBNET.
Nov 28 11:00:49 zentyal nmbd[2273]: [2018/11/28 11:00:49.185615,  0] ../source3/nmbd/nmbd_incomingrequests.c:173(process_name_refresh_request)
Nov 28 11:00:49 zentyal nmbd[2273]:   Error - should be sent to WINS server
Nov 28 11:00:53 zentyal nmbd[2273]: [2018/11/28 11:00:53.688497,  0] ../source3/nmbd/nmbd_incomingrequests.c:172(process_name_refresh_request)
Nov 28 11:00:53 zentyal nmbd[2273]:   process_name_refresh_request: unicast name registration request received for name ANDROED<00> from IP 192.168.0.117 on subnet UNICAST_SUBNET.
Nov 28 11:00:53 zentyal nmbd[2273]: [2018/11/28 11:00:53.688599,  0] ../source3/nmbd/nmbd_incomingrequests.c:173(process_name_refresh_request)
Nov 28 11:00:53 zentyal nmbd[2273]:   Error - should be sent to WINS server
Nov 28 11:00:54 zentyal named[23942]: resolver priming query complete
Nov 28 11:00:54 zentyal dhcpd[23601]: DHCPDISCOVER from 48:4b:aa:7d:20:6a via eth0
Nov 28 11:00:55 zentyal dhcpd[23601]: unexpected ICMP Echo Reply from 192.168.3.10
Nov 28 11:00:55 zentyal dhcpd[23601]: DHCPOFFER on 192.168.1.103 to 48:4b:aa:7d:20:6a (iPhone-Evgenia) via eth0
Nov 28 11:00:56 zentyal dhcpd[23601]: DHCPREQUEST for 192.168.1.103 (192.168.2.100) from 48:4b:aa:7d:20:6a (iPhone-Evgenia) via eth0
Nov 28 11:00:56 zentyal dhcpd[23601]: DHCPACK on 192.168.1.103 to 48:4b:aa:7d:20:6a (iPhone-Evgenia) via eth0
Nov 28 11:00:56 zentyal named[23942]: samba_dlz: starting transaction on zone domain.local
Nov 28 11:00:56 zentyal named[23942]: samba_dlz: spnego update failed
Nov 28 11:00:56 zentyal named[23942]: client @0x7fa104025c00 127.0.0.1#47213/key domain.local: updating zone 'domain.local/NONE': update failed: rejected by secure update (REFUSED)
Nov 28 11:00:56 zentyal named[23942]: samba_dlz: cancelling transaction on zone domain.local
Nov 28 11:00:56 zentyal dhcpd[23601]: Unable to add forward map from iPhone-Evgenia.domain.local. to 192.168.1.103: REFUSED
Nov 28 11:00:58 zentyal nmbd[2273]: [2018/11/28 11:00:58.191779,  0] ../source3/nmbd/nmbd_incomingrequests.c:172(process_name_refresh_request)
Nov 28 11:00:58 zentyal nmbd[2273]:   process_name_refresh_request: unicast name registration request received for name WORKGROUP<00> from IP 192.168.0.117 on subnet UNICAST_SUBNET.
Nov 28 11:00:58 zentyal nmbd[2273]: [2018/11/28 11:00:58.191884,  0] ../source3/nmbd/nmbd_incomingrequests.c:173(process_name_refresh_request)
Nov 28 11:00:58 zentyal nmbd[2273]:   Error - should be sent to WINS server
Nov 28 11:00:58 zentyal nmbd[2273]: [2018/11/28 11:00:58.220126,  0] ../source3/nmbd/nmbd_incomingrequests.c:172(process_name_refresh_request)
Nov 28 11:00:58 zentyal nmbd[2273]:   process_name_refresh_request: unicast name registration request received for name DESKTOP-9UAJESM<00> from IP 192.168.1.69 on subnet UNICAST_SUBNET.
Nov 28 11:00:58 zentyal nmbd[2273]: [2018/11/28 11:00:58.220205,  0] ../source3/nmbd/nmbd_incomingrequests.c:173(process_name_refresh_request)
Nov 28 11:00:58 zentyal nmbd[2273]:   Error - should be sent to WINS server
Nov 28 11:00:58 zentyal nmbd[2273]: [2018/11/28 11:00:58.222683,  0] ../source3/nmbd/nmbd_incomingrequests.c:172(process_name_refresh_request)
Nov 28 11:00:58 zentyal nmbd[2273]:   process_name_refresh_request: unicast name registration request received for name DESKTOP-9UAJESM<20> from IP 192.168.1.69 on subnet UNICAST_SUBNET.
Nov 28 11:00:58 zentyal nmbd[2273]: [2018/11/28 11:00:58.222760,  0] ../source3/nmbd/nmbd_incomingrequests.c:173(process_name_refresh_request)
Nov 28 11:00:58 zentyal nmbd[2273]:   Error - should be sent to WINS server
Nov 28 11:00:58 zentyal nmbd[2273]: [2018/11/28 11:00:58.224395,  0] ../source3/nmbd/nmbd_incomingrequests.c:172(process_name_refresh_request)
Nov 28 11:00:58 zentyal nmbd[2273]:   process_name_refresh_request: unicast name registration request received for name WORKGROUP<00> from IP 192.168.1.69 on subnet UNICAST_SUBNET.
Nov 28 11:00:58 zentyal nmbd[2273]: [2018/11/28 11:00:58.224474,  0] ../source3/nmbd/nmbd_incomingrequests.c:173(process_name_refresh_request)
Nov 28 11:00:58 zentyal nmbd[2273]:   Error - should be sent to WINS server
Nov 28 11:00:58 zentyal named[23942]: resolver priming query complete
Nov 28 11:01:00 zentyal named[23942]: resolver priming query complete
Nov 28 11:01:01 zentyal named[23942]: resolver priming query complete
Nov 28 11:01:03 zentyal dhcpd[23601]: DHCPREQUEST for 192.168.0.79 from 30:9c:23:4a:ce:d6 (users-iMac) via eth0
Nov 28 11:01:03 zentyal dhcpd[23601]: DHCPACK on 192.168.0.79 to 30:9c:23:4a:ce:d6 (users-iMac) via eth0
Nov 28 11:01:03 zentyal named[23942]: samba_dlz: starting transaction on zone domain.local
Nov 28 11:01:03 zentyal named[23942]: samba_dlz: spnego update failed
Nov 28 11:01:03 zentyal named[23942]: client @0x7fa1280a9930 127.0.0.1#48282/key domain.local: updating zone 'domain.local/NONE': update failed: rejected by secure update (REFUSED)
Nov 28 11:01:03 zentyal named[23942]: samba_dlz: cancelling transaction on zone domain.local
Nov 28 11:01:03 zentyal dhcpd[23601]: Unable to add forward map from users-iMac.domain.local. to 192.168.0.79: REFUSED

i thought problem is samba_dlz: spnego update failed
and found that: https://lists.samba.org/archive/samba/2017-December/212948.html
it doesn't help:

root@zentyal:/var/log/zentyal# samba_dnsupdate --all-names --fail-immediately
interpret_string_addr_internal: getaddrinfo failed for name eth1 (flags 32) [Name or service not known]
interpret_interface: Can't find address for eth1
ldb_wrap open of secrets.ldb
Error reading smb_krb5 reply packet: NT_STATUS_CONNECTION_REFUSED from 192.168.2.104
Error reading smb_krb5 reply packet: NT_STATUS_CONNECTION_REFUSED from 192.168.2.100
Error reading smb_krb5 reply packet: NT_STATUS_CONNECTION_REFUSED from 192.168.2.104
Error reading smb_krb5 reply packet: NT_STATUS_CONNECTION_REFUSED from 192.168.2.100
Error reading smb_krb5 reply packet: NT_STATUS_CONNECTION_REFUSED from 192.168.2.104
Error reading smb_krb5 reply packet: NT_STATUS_CONNECTION_REFUSED from 192.168.2.100
Failed to get Kerberos credentials, falling back to samba-tool: kinit for ZENTYAL$@DOMAIN.LOCAL failed (Cannot contact any KDC for requested realm)

lpcfg_load: refreshing parameters from /etc/samba/smb.conf
ldb_wrap open of secrets.ldb
GENSEC backend 'gssapi_spnego' registered
GENSEC backend 'gssapi_krb5' registered
GENSEC backend 'gssapi_krb5_sasl' registered
GENSEC backend 'spnego' registered
GENSEC backend 'schannel' registered
GENSEC backend 'naclrpc_as_system' registered
GENSEC backend 'sasl-EXTERNAL' registered
GENSEC backend 'ntlmssp' registered
GENSEC backend 'ntlmssp_resume_ccache' registered
GENSEC backend 'http_basic' registered
GENSEC backend 'http_ntlm' registered
GENSEC backend 'krb5' registered
GENSEC backend 'fake_gssapi_krb5' registered
Using binding ncacn_ip_tcp:192.168.2.100[,sign]
interpret_string_addr_internal: getaddrinfo failed for name eth1 (flags 32) [Name or service not known]
interpret_interface: Can't find address for eth1
interpret_string_addr_internal: getaddrinfo failed for name eth1 (flags 32) [Name or service not known]
interpret_interface: Can't find address for eth1
Failed to connect host 192.168.2.100 on port 135 - NT_STATUS_CONNECTION_REFUSED
Failed to connect host 192.168.2.100 (192.168.2.100) on port 135 - NT_STATUS_CONNECTION_REFUSED.
ERROR: Connecting to DNS RPC server 192.168.2.100 failed with (-1073741258, 'The transport-connection attempt was refused by the remote system.')
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 44, in dns_connect
    dns_conn = dnsserver.dnsserver(binding_str, lp, creds)

and it sucks, cause now NOBODY can login everywhere! :(

@mrPsycho

This comment has been minimized.

Copy link
Author

commented Nov 28, 2018

is there any way to re-init domain controller, with all users and shares in it?

passwords could be restored by users (i use https://ltb-project.org/documentation/self-service-password and it is very helpful to restore by email link.), it ok to forget all connected workstations...

@mrPsycho

This comment has been minimized.

Copy link
Author

commented Nov 28, 2018

zentyal.log:

ommand output: .
Exit value: 1 at /usr/share/perl5/EBox/Sudo.pm line 240
EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/2mWL5gXc10.cmd 2> /var/lib/zentyal/tmp/stderr', 'systemctl start \'samba-ad-dc\'', 256, 'ARRAY(0x560cb8044830)', 'ARRAY(0x560cb333ee48)') called at /usr/share/perl5/EBo
x/Sudo.pm line 210
EBox::Sudo::_root(1, 'systemctl start \'samba-ad-dc\'') called at /usr/share/perl5/EBox/Sudo.pm line 153
EBox::Sudo::root('systemctl start \'samba-ad-dc\'') called at /usr/share/perl5/EBox/Service.pm line 49
EBox::Service::manage('samba-ad-dc', 'start') called at /usr/share/perl5/EBox/Module/Service.pm line 746
EBox::Module::Service::_manageDaemon('EBox::Samba=HASH(0x560cb68ce9f8)', 'HASH(0x560cb8044ce0)', 'start') called at /usr/share/perl5/EBox/Module/Service.pm line 728
EBox::Module::Service::_startDaemon('EBox::Samba=HASH(0x560cb68ce9f8)', 'HASH(0x560cb8044ce0)') called at /usr/share/perl5/EBox/Samba.pm line 509
EBox::Samba::_startDaemon('EBox::Samba=HASH(0x560cb68ce9f8)', 'HASH(0x560cb8044ce0)') called at /usr/share/perl5/EBox/Module/Service.pm line 772
EBox::Module::Service::_manageService('EBox::Samba=HASH(0x560cb68ce9f8)', 'start') called at /usr/share/perl5/EBox/Module/Service.pm line 797
EBox::Module::Service::_startService('EBox::Samba=HASH(0x560cb68ce9f8)') called at /usr/share/perl5/EBox/Samba.pm line 937
EBox::Samba::_startService('EBox::Samba=HASH(0x560cb68ce9f8)') called at /usr/share/perl5/EBox/Module/Service.pm line 996
EBox::Module::Service::_enforceServiceState('EBox::Samba=HASH(0x560cb68ce9f8)') called at /usr/share/perl5/EBox/Module/Service.pm line 947
EBox::Module::Service::_regenConfig('EBox::Samba=HASH(0x560cb68ce9f8)') called at /usr/share/perl5/EBox/Samba.pm line 670
EBox::Samba::_regenConfig('EBox::Samba=HASH(0x560cb68ce9f8)') called at /usr/share/perl5/EBox/Module/Base.pm line 234
eval {...} at /usr/share/perl5/EBox/Module/Base.pm line 233
EBox::Module::Base::save('EBox::Samba=HASH(0x560cb68ce9f8)') called at /usr/share/perl5/EBox/GlobalImpl.pm line 648
eval {...} at /usr/share/perl5/EBox/GlobalImpl.pm line 647
EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x560cb5414a10)', 'progress', 'EBox::ProgressIndicator=HASH(0x560cb1256670)') called at /usr/share/perl5/EBox/Global.pm line 95
EBox::Global::AUTOLOAD('EBox::Global=HASH(0x560cb1233750)', 'progress', 'EBox::ProgressIndicator=HASH(0x560cb1256670)') called at /usr/share/zentyal/global-action line 32
eval {...} at /usr/share/zentyal/global-action line 30
2018/11/28 14:31:59 ERROR> GlobalImpl.pm:652 EBox::GlobalImpl::saveAllModules - Failed to save changes in module samba: root command systemctl start 'samba-ad-dc' failed.
Error output: Job for samba-ad-dc.service failed because a timeout was exceeded.
 See "systemctl status samba-ad-dc.service" and "journalctl -xe" for details.
@mrPsycho

This comment has been minimized.

Copy link
Author

commented Nov 28, 2018

also i see, that auto-updater had ran today:

From root@zentyal.domain.local  Wed Nov 28 03:39:07 2018
Return-Path: <root@zentyal.domain.local>
X-Original-To: root
Delivered-To: root@zentyal.domain.local
Received: by zentyal.domain.local (Postfix, from userid 0)
        id D69E814C00D4; Wed, 28 Nov 2018 03:39:07 +0300 (MSK)
From: root@zentyal.domain.local (Cron Daemon)
To: root@zentyal.domain.local
Subject: Cron <root@zentyal> /usr/share/zentyal-software/auto-updater
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
Message-Id: <20181128003907.D69E814C00D4@zentyal.domain.local>
Date: Wed, 28 Nov 2018 03:39:07 +0300 (MSK)

root command LANG=C DEBIAN_FRONTEND=noninteractive apt-get -o DPkg::Options::="--force-confold" -y --no-install-recommends install python-samba update-notifier-common libwbclient0 git-man samba samba-dsdb-modules git samba-libs libpam-w
inbind winbind samba-common libnss-winbind samba-vfs-modules libsmbclient smbclient samba-common-bin libsmbclient-dev 2>&1 >>/var/log/zentyal/software.log failed.
Error output:
Command output: E: Sub-process /usr/bin/dpkg returned an error code (1)

and software.log:

2018-11-27 03:37:14> Automatic update finished
2018-11-28 03:36:37> Starting automatic update of the following packages: python-samba update-notifier-common libwbclient0 git-man samba samba-dsdb-modules git samba-libs libpam-winbind winbind samba-common libnss-winbind samba-vfs-modules libsmbclient smbclient samba-common-bin libsmbclient-dev
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
  libmysqlclient18
Use 'sudo apt autoremove' to remove it.
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk
  gitweb git-cvs git-mediawiki git-svn python-gpgme ctdb smbldap-tools ufw
  cifs-utils
Recommended packages:
  attr libcephfs2
The following packages will be upgraded:
  git git-man libnss-winbind libpam-winbind libsmbclient libsmbclient-dev
  libwbclient0 python-samba samba samba-common samba-common-bin
  samba-dsdb-modules samba-libs samba-vfs-modules smbclient
  update-notifier-common winbind
17 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 15.0 MB of archives.
After this operation, 1,024 B of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnss-winbind amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.5 [10.6 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 samba-dsdb-modules amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.5 [245 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpam-winbind amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.5 [28.7 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 winbind amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.5 [445 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 samba-vfs-modules amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.5 [297 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 samba amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.5 [854 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 samba-common-bin amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.5 [521 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 smbclient amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.5 [352 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libsmbclient-dev amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.5 [40.9 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libsmbclient amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.5 [54.3 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python-samba amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.5 [1,926 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 samba-libs amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.5 [5,251 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libwbclient0 amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.5 [34.1 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 samba-common all 2:4.7.6+dfsg~ubuntu-0ubuntu2.5 [72.4 kB]
Get:15 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 update-notifier-common all 3.192.1.4 [160 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 git-man all 1:2.17.1-1ubuntu0.4 [803 kB]
Get:17 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 git amd64 1:2.17.1-1ubuntu0.4 [3,907 kB]
Preconfiguring packages ...
Fetched 15.0 MB in 3s (5,017 kB/s)
dpkg: warning: files list file for package 'libabw-0.1-1v5:amd64' missing; assuming package has no files currently installed
(Reading database ... 158274 files and directories currently installed.)
Preparing to unpack .../00-libnss-winbind_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.5_amd64.deb ...
Unpacking libnss-winbind:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) over (2:4.7.6+dfsg~ubuntu-0ubuntu2.4) ...
Preparing to unpack .../01-samba-dsdb-modules_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.5_amd64.deb ...
Unpacking samba-dsdb-modules (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) over (2:4.7.6+dfsg~ubuntu-0ubuntu2.4) ...
Preparing to unpack .../02-libpam-winbind_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.5_amd64.deb ...
Unpacking libpam-winbind:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) over (2:4.7.6+dfsg~ubuntu-0ubuntu2.4) ...
Preparing to unpack .../03-winbind_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.5_amd64.deb ...
Unpacking winbind (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) over (2:4.7.6+dfsg~ubuntu-0ubuntu2.4) ...
Preparing to unpack .../04-samba-vfs-modules_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.5_amd64.deb ...
Unpacking samba-vfs-modules (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) over (2:4.7.6+dfsg~ubuntu-0ubuntu2.4) ...
Preparing to unpack .../05-samba_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.5_amd64.deb ...
Unpacking samba (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) over (2:4.7.6+dfsg~ubuntu-0ubuntu2.4) ...
Preparing to unpack .../06-samba-common-bin_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.5_amd64.deb ...
Unpacking samba-common-bin (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) over (2:4.7.6+dfsg~ubuntu-0ubuntu2.4) ...
Preparing to unpack .../07-smbclient_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.5_amd64.deb ...
Unpacking smbclient (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) over (2:4.7.6+dfsg~ubuntu-0ubuntu2.4) ...
Preparing to unpack .../08-libsmbclient-dev_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.5_amd64.deb ...
Unpacking libsmbclient-dev:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) over (2:4.7.6+dfsg~ubuntu-0ubuntu2.4) ...
Preparing to unpack .../09-libsmbclient_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.5_amd64.deb ...
Unpacking libsmbclient:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) over (2:4.7.6+dfsg~ubuntu-0ubuntu2.4) ...
Preparing to unpack .../10-python-samba_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.5_amd64.deb ...
Unpacking python-samba (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) over (2:4.7.6+dfsg~ubuntu-0ubuntu2.4) ...
Preparing to unpack .../11-samba-libs_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.5_amd64.deb ...
Unpacking samba-libs:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) over (2:4.7.6+dfsg~ubuntu-0ubuntu2.4) ...
Preparing to unpack .../12-libwbclient0_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.5_amd64.deb ...
Unpacking libwbclient0:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) over (2:4.7.6+dfsg~ubuntu-0ubuntu2.4) ...
Preparing to unpack .../13-samba-common_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.5_all.deb ...
Unpacking samba-common (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) over (2:4.7.6+dfsg~ubuntu-0ubuntu2.4) ...
Preparing to unpack .../14-update-notifier-common_3.192.1.4_all.deb ...
Unpacking update-notifier-common (3.192.1.4) over (3.192.1.3) ...
Preparing to unpack .../15-git-man_1%3a2.17.1-1ubuntu0.4_all.deb ...
Unpacking git-man (1:2.17.1-1ubuntu0.4) over (1:2.17.1-1ubuntu0.3) ...
Preparing to unpack .../16-git_1%3a2.17.1-1ubuntu0.4_amd64.deb ...
Unpacking git (1:2.17.1-1ubuntu0.4) over (1:2.17.1-1ubuntu0.3) ...
Setting up git-man (1:2.17.1-1ubuntu0.4) ...
Setting up libwbclient0:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) ...
Setting up samba-libs:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) ...
Setting up samba-vfs-modules (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) ...
Processing triggers for ureadahead (0.100.0-20) ...
Setting up update-notifier-common (3.192.1.4) ...
Setting up python-samba (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) ...
Setting up samba-common (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) ...
Setting up libsmbclient:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) ...
Setting up libsmbclient-dev:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) ...
Setting up smbclient (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for systemd (237-3ubuntu10.9) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up samba-common-bin (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) ...
Setting up samba-dsdb-modules (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) ...
Setting up git (1:2.17.1-1ubuntu0.4) ...
Setting up winbind (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) ...
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
insserv: warning: script 'lxdm' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `lxdm'
insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script `lxdm'
Setting up libpam-winbind:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) ...

pam-auth-update: Local modifications to /etc/pam.d/common-*, not updating.
pam-auth-update: Run pam-auth-update --force to override.

Setting up samba (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) ...
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
insserv: warning: script 'lxdm' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `lxdm'
insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script `lxdm'
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
insserv: warning: script 'lxdm' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `lxdm'
insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script `lxdm'
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
insserv: warning: script 'lxdm' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `lxdm'
insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script `lxdm'
Job for samba-ad-dc.service failed because a timeout was exceeded.
See "systemctl status samba-ad-dc.service" and "journalctl -xe" for details.
invoke-rc.d: initscript samba-ad-dc, action "restart" failed.
● samba-ad-dc.service - Samba AD Daemon
   Loaded: loaded (/lib/systemd/system/samba-ad-dc.service; enabled; vendor preset: enabled)
   Active: failed (Result: timeout) since Wed 2018-11-28 03:39:04 MSK; 11ms ago
     Docs: man:samba(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 2333 ExecStart=/usr/sbin/samba --foreground --no-process-group $SAMBAOPTIONS (code=exited, status=127)
 Main PID: 2333 (code=exited, status=127)

Nov 28 03:39:04 zentyal systemd[1]: samba-ad-dc.service: Start operation timed out. Terminating.
Nov 28 03:39:04 zentyal samba[2342]: [2018/11/28 03:39:04.518280,  0] ../source4/smbd/process_standard.c:86(sigterm_signal_handler)
Nov 28 03:39:04 zentyal samba[2337]: [2018/11/28 03:39:04.518280,  0] ../source4/smbd/process_standard.c:86(sigterm_signal_handler)
Nov 28 03:39:04 zentyal samba[2346]: [2018/11/28 03:39:04.518283,  0] ../source4/smbd/process_standard.c:86(sigterm_signal_handler)
Nov 28 03:39:04 zentyal samba[2337]:   Exiting pid 2337 on SIGTERM
Nov 28 03:39:04 zentyal samba[2342]:   Exiting pid 2342 on SIGTERM
Nov 28 03:39:04 zentyal samba[2346]:   Exiting pid 2346 on SIGTERM
Nov 28 03:39:04 zentyal systemd[1]: samba-ad-dc.service: Main process exited, code=exited, status=127/n/a
Nov 28 03:39:04 zentyal systemd[1]: samba-ad-dc.service: Failed with result 'timeout'.
Nov 28 03:39:04 zentyal systemd[1]: Failed to start Samba AD Daemon.
dpkg: error processing package samba (--configure):
 installed samba package post-installation script subprocess returned error exit status 1
Setting up libnss-winbind:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.5) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Errors were encountered while processing:
 samba

and it looks like yesterday auto update finished without errors.

@mrPsycho

This comment has been minimized.

Copy link
Author

commented Nov 28, 2018

hm.... why running /usr/sbin/samba --foreground --debug-stderr --no-process-group doesn't fail and allows to use samba?

@mrPsycho

This comment has been minimized.

Copy link
Author

commented Nov 28, 2018

ok. i don't know why, but stopping winbind and nmbd allowed me to start samba-ad-dc.

i won't close it, cause want to hear comment from professional!

@mrPsycho

This comment has been minimized.

Copy link
Author

commented Nov 28, 2018

problem still persist:

root@zentyal:/home/user# zs restart
 * Stopping Zentyal module: virt                                                                                                                                                                                                     [ OK ]
 * Stopping Zentyal module: samba                                                                                                                                                                                                    [ OK ]
 * Stopping Zentyal module: ntp                                                                                                                                                                                                      [ OK ]
 * Stopping Zentyal module: logs                                                                                                                                                                                                     [ OK ]
 * Stopping Zentyal module: dns                                                                                                                                                                                                      [ OK ]
 * Stopping Zentyal module: dhcp                                                                                                                                                                                                     [ OK ]
 * Stopping Zentyal module: ca                                                                                                                                                                                                       [ OK ]
 * Stopping Zentyal module: audit                                                                                                                                                                                                    [ OK ]
 * Stopping Zentyal module: firewall                                                                                                                                                                                                 [ OK ]
 * Stopping Zentyal module: network                                                                                                                                                                                                  [ OK ]
 * Stopping Zentyal module: webadmin                                                                                                                                                                                                 [ OK ]
 * Starting Zentyal module: network                                                                                                                                                                                                  [ OK ]
 * Starting Zentyal module: firewall                                                                                                                                                                                                 [ OK ]
 * Starting Zentyal module: audit                                                                                                                                                                                                    [ OK ]
 * Starting Zentyal module: ca                                                                                                                                                                                                       [ OK ]
 * Starting Zentyal module: dhcp                                                                                                                                                                                                     [ OK ]
 * Starting Zentyal module: dns                                                                                                                                                                                                      [ OK ]
 * Starting Zentyal module: logs                                                                                                                                                                                                     [ OK ]
 * Starting Zentyal module: ntp                                                                                                                                                                                                      [ OK ]
 * Starting Zentyal module: samba                                                                                                                                                                                                    [fail]
 * Starting Zentyal module: virt                                                                                                                                                                                                     [ OK ]
 * Starting Zentyal module: webadmin                                                                                                                                                                                                 [ OK ]
root@zentyal:/home/user#

from syslog:

...
Nov 28 23:41:17 zentyal systemd[1]: Starting Samba AD Daemon...
Nov 28 23:41:17 zentyal samba[21696]: [2018/11/28 23:41:17.702867,  0] ../source4/smbd/server.c:448(binary_smbd_main)
Nov 28 23:41:17 zentyal samba[21696]:   samba version 4.7.6-Ubuntu started.
Nov 28 23:41:17 zentyal samba[21696]:   Copyright Andrew Tridgell and the Samba Team 1992-2017
Nov 28 23:41:17 zentyal samba[21696]: [2018/11/28 23:41:17.924050,  0] ../source4/smbd/server.c:620(binary_smbd_main)
Nov 28 23:41:17 zentyal samba[21696]:   samba: using 'standard' process model
Nov 28 23:41:18 zentyal smbd[21702]: [2018/11/28 23:41:18.009080,  0] ../lib/util/pidfile.c:104(pidfile_create)
Nov 28 23:41:18 zentyal smbd[21702]:   ERROR: smbd is already running. File /var/run/samba/smbd.pid exists and process id 27925 is running.
Nov 28 23:41:18 zentyal samba[21698]: [2018/11/28 23:41:18.014753,  0] ../file_server/file_server.c:46(file_server_smbd_done)
Nov 28 23:41:18 zentyal samba[21698]:   file_server smbd daemon died with exit status 1
Nov 28 23:41:18 zentyal samba[21698]: [2018/11/28 23:41:18.015691,  0] ../source4/smbd/service_task.c:35(task_server_terminate)
Nov 28 23:41:18 zentyal samba[21698]:   task_server_terminate: [smbd child process exited]
Nov 28 23:41:18 zentyal winbindd[21712]: [2018/11/28 23:41:18.038774,  0] ../source3/winbindd/winbindd_cache.c:3170(initialize_winbindd_cache)
Nov 28 23:41:18 zentyal winbindd[21712]:   initialize_winbindd_cache: clearing cache and re-creating with version number 2
Nov 28 23:41:18 zentyal samba[21713]: [2018/11/28 23:41:18.124805,  0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
Nov 28 23:41:18 zentyal samba[21713]:   /usr/sbin/samba_dnsupdate: interpret_string_addr_internal: getaddrinfo failed for name eth1 (flags 32) [Name or service not known]
Nov 28 23:41:18 zentyal samba[21713]: [2018/11/28 23:41:18.124985,  0] ../lib/util/util_runcmd.c:327(samba_runcmd_io_handler)
Nov 28 23:41:18 zentyal samba[21713]:   /usr/sbin/samba_dnsupdate: interpret_interface: Can't find address for eth1
Nov 28 23:41:18 zentyal winbindd[21712]: [2018/11/28 23:41:18.243059,  0] ../lib/util/become_daemon.c:124(daemon_ready)
Nov 28 23:41:18 zentyal systemd[1]: Started Samba AD Daemon.
...
@ggowins

This comment has been minimized.

Copy link

commented Feb 16, 2019

I too am having this issue after upgrading to Zentyal 6. I can manually stop and start the services. When I check the status for the nmbd, smbd, samba, and winbind services, they all show that they are running, and I am able to use AD, but in the Zentyal dashboard it is showing Domain Controller and File Sharing Stopped. If after getting the services manually stopped and restarted, if I run 'zs samba restart', I have to once again manually stop and restart the services. This is the order I used:

nmbd stop
winbind stop
samba-ad-dc start
winbind start
nmbd start

@ggowins

This comment has been minimized.

Copy link

commented Feb 24, 2019

I might have found a fix for this issue. I ran sudo testparm which checks samba config files. On my system, it changed a time out in smb.conf, and I can now get samba to start with zs samba start, and it shows it is running on the dashboard.

Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)

@RemiNetEU

This comment has been minimized.

Copy link

commented Mar 9, 2019

Just updated to Zentyal 6 and had same issue. After @ggowins hint I've checked the Samba docs and found the answer here

smbd and winbind are automatically started as subprocess by samba-ad-dc and therefore should be disabled from systemd

systemctl mask smbd nmbd winbind

systemctl disable smbd nmbd winbind

Since then all works fine!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.