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

Zentyal 6.0 New install initial configuration failure - 74% "Saving samba module" #1873

Open
rootless4real opened this issue Apr 25, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@rootless4real
Copy link

commented Apr 25, 2019

A new Zentyal 6.0 install fails while doing the initial configuration at 74% with the Current operation: "Saving samba module".

Looking at /var/log/zentyal/zentyal.log shows:

 tail /var/log/zentyal/zentyal.log
2019/04/25 11:47:46 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: audit
2019/04/25 11:47:46 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: firewall
2019/04/25 11:47:47 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: sysinfo
2019/04/25 11:47:47 INFO> GlobalImpl.pm:659 EBox::GlobalImpl::saveAllModules - Saving configuration: webadmin
2019/04/25 11:47:47 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: webadmin
2019/04/25 11:47:47 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: audit
2019/04/25 11:47:47 ERROR> GlobalImpl.pm:727 EBox::GlobalImpl::saveAllModules - The following modules failed while saving their changes, their state is unknown: samba  at The following modules failed while saving their changes, their state is unknown: samba  at /usr/share/perl5/EBox/GlobalImpl.pm line 727
EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x56008f7095b8)', 'progress', 'EBox::ProgressIndicator=HASH(0x56008ecee140)') called at /usr/share/perl5/EBox/Global.pm line 95
EBox::Global::AUTOLOAD('EBox::Global=HASH(0x56008ecee518)', 'progress', 'EBox::ProgressIndicator=HASH(0x56008ecee140)') called at /usr/share/zentyal/global-action line 32
eval {...} at /usr/share/zentyal/global-action line 30

According to the software.log, things seem to go fine:

2019-04-25 11:42:02> Setting up zentyal-dns (6.0) ...
2019-04-25 11:42:05>  * Restarting Zentyal module: dns
2019-04-25 11:42:05>    ...done.
2019-04-25 11:42:05> Setting up heimdal-clients (7.5.0+dfsg-1) ...
2019-04-25 11:42:05> update-alternatives: using /usr/bin/kpagsh to provide /usr/bin/pagsh (pagsh) in auto mode
2019-04-25 11:42:05> update-alternatives: using /usr/bin/kinit.heimdal to provide /usr/bin/kinit (kinit) in auto mode
2019-04-25 11:42:05> update-alternatives: using /usr/bin/klist.heimdal to provide /usr/bin/klist (klist) in auto mode
2019-04-25 11:42:06> update-alternatives: using /usr/bin/kswitch.heimdal to provide /usr/bin/kswitch (kswitch) in auto mode
2019-04-25 11:42:06> update-alternatives: using /usr/bin/ksu.heimdal to provide /usr/bin/ksu (ksu) in auto mode
2019-04-25 11:42:06> update-alternatives: using /usr/bin/kpasswd.heimdal to provide /usr/bin/kpasswd (kpasswd) in auto mode
2019-04-25 11:42:06> update-alternatives: using /usr/bin/kdestroy.heimdal to provide /usr/bin/kdestroy (kdestroy) in auto mode
2019-04-25 11:42:06> update-alternatives: using /usr/bin/kadmin.heimdal to provide /usr/bin/kadmin (kadmin) in auto mode
2019-04-25 11:42:06> update-alternatives: using /usr/bin/ktutil.heimdal to provide /usr/bin/ktutil (ktutil) in auto mode
2019-04-25 11:42:06> Setting up samba-libs:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.2) ...
2019-04-25 11:42:06> Setting up samba-vfs-modules (2:4.7.6+dfsg~ubuntu-0ubuntu2.2) ...
2019-04-25 11:42:06> Setting up python-samba (2:4.7.6+dfsg~ubuntu-0ubuntu2.2) ...
2019-04-25 11:42:06> Setting up gnupg (2.2.4-1ubuntu1.1) ...
2019-04-25 11:42:07> Setting up samba-common-bin (2:4.7.6+dfsg~ubuntu-0ubuntu2.2) ...
2019-04-25 11:42:07> Setting up samba-dsdb-modules (2:4.7.6+dfsg~ubuntu-0ubuntu2.2) ...
2019-04-25 11:42:07> Setting up winbind (2:4.7.6+dfsg~ubuntu-0ubuntu2.2) ...
2019-04-25 11:42:07> mkdir: created directory '/var/lib/samba/winbindd_privileged'
2019-04-25 11:42:07> changed group of '/var/lib/samba/winbindd_privileged' from root to winbindd_priv
2019-04-25 11:42:07> mode of '/var/lib/samba/winbindd_privileged' changed from 0755 (rwxr-xr-x) to 0750 (rwxr-x---)
2019-04-25 11:42:08> Created symlink /etc/systemd/system/multi-user.target.wants/winbind.service -> /lib/systemd/system/winbind.service.
2019-04-25 11:42:08> Setting up libpam-winbind:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.2) ...
2019-04-25 11:42:09> Setting up samba (2:4.7.6+dfsg~ubuntu-0ubuntu2.2) ...
2019-04-25 11:42:09> Samba is not being run as an AD Domain Controller, masking samba-ad-dc.service.
2019-04-25 11:42:09> Please ignore the following error about deb-systemd-helper not finding samba-ad-dc.service.
2019-04-25 11:42:11> Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service -> /lib/systemd/system/nmbd.service.
2019-04-25 11:42:12> Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.
2019-04-25 11:42:12> /usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory
2019-04-25 11:42:12> Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service -> /lib/systemd/system/smbd.service.
2019-04-25 11:42:12> Setting up libnss-winbind:amd64 (2:4.7.6+dfsg~ubuntu-0ubuntu2.2) ...
2019-04-25 11:42:12> Setting up zentyal-samba (6.0) ...
2019-04-25 11:42:16>  * Restarting Zentyal module: samba
2019-04-25 11:42:16>    ...done.
2019-04-25 11:42:16> Processing triggers for libc-bin (2.27-3ubuntu1) ...
2019-04-25 11:42:16> Processing triggers for systemd (237-3ubuntu10.3) ...
2019-04-25 11:42:16> Processing triggers for resolvconf (1.79ubuntu10) ...
2019-04-25 11:42:17> Processing triggers for zentyal-core (6.0) ...
2019-04-25 11:42:18> Zentyal apt-wrapper install finished

When attempting to run winbindd interactively for troubleshooting it returns:

winbindd -i
winbindd version 4.7.6-Ubuntu started.
Copyright Andrew Tridgell and the Samba Team 1992-2017
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[global]"
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
added interface lo ip=127.0.1.1 bcast=127.255.255.255 netmask=255.0.0.0
added interface eth0 ip=10.0.0.3 bcast=10.0.0.255 netmask=255.255.255.0
added interface eth1 ip=192.168.1.20 bcast=192.168.1.255 netmask=255.255.255.0
added interface eth2 ip=10.1.1.2 bcast=10.1.1.255 netmask=255.255.255.0
interpret_string_addr_internal: getaddrinfo failed for name eth3 (flags 32) [Name or service not known]
interpret_interface: Can't find address for eth3
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
added interface lo ip=127.0.1.1 bcast=127.255.255.255 netmask=255.0.0.0
added interface eth0 ip=10.0.0.3 bcast=10.0.0.255 netmask=255.255.255.0
added interface eth1 ip=192.168.1.20 bcast=192.168.1.255 netmask=255.255.255.0
added interface eth2 ip=10.1.1.2 bcast=10.1.1.255 netmask=255.255.255.0
interpret_string_addr_internal: getaddrinfo failed for name eth3 (flags 32) [Name or service not known]
interpret_interface: Can't find address for eth3
initialize_winbindd_cache: clearing cache and re-creating with version number 2
Added domain BUILTIN (null) S-1-5-32
ldb: schema_load_init: no schema head present: (skip schema loading)

ldb: dsdb_schema_from_db() failed: 32:No such object: (null)
ldb: dsdb_get_schema: refresh_fn() failed
ldb: schema_load_init: dsdb_get_schema failed
ldb: module schema_load initialization failed : Operations error
ldb: module dsdb_notification initialization failed : Operations error
ldb: module rootdse initialization failed : Operations error
ldb: module samba_dsdb initialization failed : Operations error
ldb: Unable to load modules for /var/lib/samba/private/sam.ldb: schema_load_init: dsdb_get_schema failed
samdb_connect failed
pdb backend samba_dsdb did not correctly init (error was NT_STATUS_INTERNAL_ERROR)
PANIC (pid 13953): pdb_get_methods: failed to get pdb methods for backend samba_dsdb

BACKTRACE: 9 stack frames:
 #0 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(log_stack_trace+0x1f) [0x7f7b06c799cf]
 #1 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(smb_panic_s3+0x20) [0x7f7b06c79aa0]
 #2 /usr/lib/x86_64-linux-gnu/libsamba-util.so.0(smb_panic+0x2f) [0x7f7b09d965af]
 #3 /usr/lib/x86_64-linux-gnu/libsamba-passdb.so.0(+0xf85b) [0x7f7b0a83485b]
 #4 /usr/lib/x86_64-linux-gnu/libsamba-passdb.so.0(+0x3c7f2) [0x7f7b0a8617f2]
 #5 winbindd(init_domain_list+0x121) [0x559fed1fc281]
 #6 winbindd(main+0x958) [0x559fed1f6128]
 #7 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7f7b0368cb97]
 #8 winbindd(_start+0x2a) [0x559fed1f6ada]
dumping core in /var/log/samba/cores/winbindd
Aborted

testparm doesn't choke on anything:

Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[netlogon]"
Processing section "[sysvol]"
Loaded services file OK.
Server role: ROLE_ACTIVE_DIRECTORY_DC

Press enter to see a dump of your service definitions

# Global parameters
[global]
        bind interfaces only = Yes
        interfaces = lo eth0 eth1 eth2 eth3
        ldap server require strong auth = No
        log file = /var/log/samba/samba.log
        map to guest = Bad User
        max log size = 100000
        passdb backend = samba_dsdb
        realm = mydomain.LOCAL
        server role = active directory domain controller
        server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbindd, ntp_signd, kcc, dnsupdate
        server signing = if_required
        server string = Zentyal Server
        template homedir = /home/%U
        template shell = /bin/bash
        winbind enum groups = Yes
        winbind enum users = Yes
        workgroup = mydomain
        rpc_server:tcpip = no
        rpc_daemon:spoolssd = embedded
        rpc_server:spoolss = embedded
        rpc_server:winreg = embedded
        rpc_server:ntsvcs = embedded
        rpc_server:eventlog = embedded
        rpc_server:srvsvc = embedded
        rpc_server:svcctl = embedded
        rpc_server:default = external
        winbindd:use external pipes = true
        idmap_ldb:use rfc2307 = yes
        drs:max object sync = 1200
        dsdb:schema update allowed = yes
        server role check:inhibit = yes
        idmap config * : backend = tdb
        include = /etc/samba/shares.conf
        map archive = No
        map readonly = no
        store dos attributes = Yes
        vfs objects = dfs_samba4 acl_xattr


[homes]
        browseable = No
        comment = Home Directories
        create mask = 0611
        directory mask = 0711
        path = /home/%S
        read only = No
        vfs objects = acl_xattr full_audit
        full_audit:failure = connect opendir disconnect unlink mkdir rmdir open rename
        full_audit:success = connect opendir disconnect unlink mkdir rmdir open rename


[netlogon]
        browseable = No
        path = /var/lib/samba/sysvol/mydomain.local/scripts


[sysvol]
        path = /var/lib/samba/sysvol
        read only = No

All of this even after manually adding the functioning domain controller to /etc/hosts on the new Zentyal install.

Any solutions?

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.