Author Topic: [Solved]Samba error during module save  (Read 7319 times)

GarthK

  • Zen Apprentice
  • *
  • Posts: 17
  • Karma: +2/-0
    • View Profile
[Solved]Samba error during module save
« on: February 05, 2014, 01:50:59 pm »
First, using the latest 3.3 64-bit ISO. I have been following the excellent video on joining and then demoting a windows 2003 DC but I am getting the following error:

<start>
Some modules reported error when saving changes . More information on the logs in /var/log/zentyal/

The following modules failed while saving their changes, their state is unknown: samba
<end>

with the following zentyal.log entries (domain and machine names changed):
<start>
2014/02/05 06:36:30 INFO> GlobalImpl.pm:618 EBox::GlobalImpl::saveAllModules - Saving config and restarting services: firewall dns samba logs users
2014/02/05 06:36:30 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: firewall
2014/02/05 06:36:30 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: dns
2014/02/05 06:36:33 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: samba
2014/02/05 06:36:33 INFO> Provision.pm:890 EBox::Samba::Provision::checkAddress - Resolving dc1.mydomain.com to an IP address
2014/02/05 06:36:33 INFO> Provision.pm:910 EBox::Samba::Provision::checkAddress - The DC dc1.mydomain.com has been resolved to 10.173.49.7
2014/02/05 06:36:33 INFO> Provision.pm:913 EBox::Samba::Provision::checkAddress - Checking reverse DNS resolution of '10.173.49.7'...
2014/02/05 06:36:33 INFO> Provision.pm:937 EBox::Samba::Provision::checkAddress - The IP address 10.173.49.7 does not have associated PTR record
2014/02/05 06:36:33 INFO> Provision.pm:836 EBox::Samba::Provision::checkServerReachable - Checking if AD server '10.173.49.7' is online...
2014/02/05 06:36:33 INFO> Provision.pm:946 EBox::Samba::Provision::checkFunctionalLevels - Checking forest and domain functional levels...
2014/02/05 06:36:33 INFO> Provision.pm:855 EBox::Samba::Provision::checkLocalRealmAndDomain - Checking local domain and realm...
2014/02/05 06:36:33 INFO> Provision.pm:1014 EBox::Samba::Provision::checkClockSkew - Checking clock skew with AD server...
2014/02/05 06:36:33 INFO> Provision.pm:1035 EBox::Samba::Provision::checkClockSkew - Clock skew below two minutes, should be enough.
2014/02/05 06:36:33 INFO> Provision.pm:755 EBox::Samba::Provision::checkDnsZonesInMainPartition - Checking for old DNS zones stored in main domain partition...
2014/02/05 06:36:33 INFO> Provision.pm:802 EBox::Samba::Provision::checkForestDomains - Checking number of domains inside forest...
2014/02/05 06:36:33 INFO> Provision.pm:974 EBox::Samba::Provision::checkTrustDomainObjects - Checking for domain trust relationships...
2014/02/05 06:36:33 INFO> Provision.pm:1076 EBox::Samba::Provision::checkADServerSite - Checking the site where the specified server is located
2014/02/05 06:36:33 INFO> Provision.pm:1084 EBox::Samba::Provision::checkADServerSite - The specified server has been located at site named PRR
2014/02/05 06:36:33 INFO> Provision.pm:1101 EBox::Samba::Provision::checkADNebiosName - Checking domain netbios name...
2014/02/05 06:36:33 INFO> Provision.pm:1323 EBox::Samba::Provision::provisionADC - Joining to domain 'mydomain.com' as DC
2014/02/05 06:36:33 INFO> Provision.pm:1336 EBox::Samba::Provision::provisionADC - Trying to get a kerberos ticket for principal 'garthk@mydomain.COM'
2014/02/05 06:36:33 INFO> Provision.pm:1345 EBox::Samba::Provision::provisionADC - Executing domain join
2014/02/05 06:36:50 INFO> Provision.pm:286 EBox::Samba::Provision::setupDNS - Setting up DNS
2014/02/05 06:36:50 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: dns
2014/02/05 06:36:51 INFO> Provision.pm:286 EBox::Samba::Provision::setupDNS - Setting up DNS
2014/02/05 06:36:51 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: dns
2014/02/05 06:36:53 ERROR> GlobalImpl.pm:654 EBox::GlobalImpl::saveAllModules - Failed to save changes in module samba: Can't locate object method "throw" via package "Can't locate object method "throw" via package "Can't locate object method "throw" via package "First line of LDIF entry does not begin with 'dn:' at /usr/share/perl5/EBox/LDB.pm line 824
" (perhaps you forgot to load "First line of LDIF entry does not begin with 'dn:' at /usr/share/perl5/EBox/LDB.pm line 824
"?) at /usr/share/perl5/EBox/Module/Base.pm line 238, <GEN0> line 1505.
" (perhaps you forgot to load "Can't locate object method "throw" via package "First line of LDIF entry does not begin with 'dn:' at /usr/share/perl5/EBox/LDB.pm line 824
" (perhaps you forgot to load "First line of LDIF entry does not begin with 'dn:' at /usr/share/perl5/EBox/LDB.pm line 824
"?) at /usr/share/perl5/EBox/Module/Base.pm line 238, <GEN0> line 1505.
"?) at /usr/share/perl5/EBox/Samba/Provision.pm line 1495, <GEN0> line 1848.
" (perhaps you forgot to load "Can't locate object method "throw" via package "Can't locate object method "throw" via package "First line of LDIF entry does not begin with 'dn:' at /usr/share/perl5/EBox/LDB.pm line 824
" (perhaps you forgot to load "First line of LDIF entry does not begin with 'dn:' at /usr/share/perl5/EBox/LDB.pm line 824
"?) at /usr/share/perl5/EBox/Module/Base.pm line 238, <GEN0> line 1505.
" (perhaps you forgot to load "Can't locate object method "throw" via package "First line of LDIF entry does not begin with 'dn:' at /usr/share/perl5/EBox/LDB.pm line 824
" (perhaps you forgot to load "First line of LDIF entry does not begin with 'dn:' at /usr/share/perl5/EBox/LDB.pm line 824
"?) at /usr/share/perl5/EBox/Module/Base.pm line 238, <GEN0> line 1505.
"?) at /usr/share/perl5/EBox/Samba/Provision.pm line 1495, <GEN0> line 1848.
"?) at /usr/share/perl5/EBox/Module/Base.pm line 238, <GEN0> line 1855.
2014/02/05 06:36:53 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: logs
2014/02/05 06:36:54 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: users
2014/02/05 06:36:54 ERROR> Ldap.pm:475 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi: connect: No such file or directory. Retrying
2014/02/05 06:36:54 INFO> Ldap.pm:486 EBox::Ldap::safeConnect - LDAP reconnect successful
2014/02/05 06:36:55 ERROR> GlobalImpl.pm:738 EBox::GlobalImpl::saveAllModules - The following modules failed while saving their changes, their state is unknown: samba  at Trace begun at /usr/share/perl5/EBox/Exceptions/Base.pm line 79
EBox::Exceptions::Base::stacktrace('EBox::Exceptions::Internal=HASH(0x526dda0)') called at /usr/share/perl5/EBox/Exceptions/Base.pm line 119
EBox::Exceptions::Base::log('EBox::Exceptions::Internal=HASH(0x526dda0)') called at /usr/share/perl5/EBox/Exceptions/Internal.pm line 35
EBox::Exceptions::Internal::new('EBox::Exceptions::Internal', 'The following modules failed while saving their changes, their state is unknown: samba ') called at /usr/share/perl5/EBox/Exceptions/Base.pm line 91
EBox::Exceptions::Base::throw('EBox::Exceptions::Internal', 'The following modules failed while saving their changes, their state is unknown: samba ') called at /usr/share/perl5/EBox/GlobalImpl.pm line 738
EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x25fe6a8)', 'progress', 'EBox::ProgressIndicator=HASH(0x1e985e0)') called at /usr/share/perl5/EBox/Global.pm line 95
EBox::Global::AUTOLOAD('EBox::Global=HASH(0x26065f0)', 'progress', 'EBox::ProgressIndicator=HASH(0x1e985e0)') called at /usr/share/zentyal/global-action line 31
eval {...} at /usr/share/zentyal/global-action line 29
<end>

There are several discussions on the web about this but most indicate that the problem is fixed. What am I doing wrong?

Thanx,
Garth


« Last Edit: February 06, 2014, 11:03:04 am by GarthK »

GarthK

  • Zen Apprentice
  • *
  • Posts: 17
  • Karma: +2/-0
    • View Profile
Re: [Solved]Samba error during module save
« Reply #1 on: February 06, 2014, 11:06:45 am »
Fixed! :-) I had set the forward and reverse DNS on the Windows DC to Active Directory Domain and NOT Active Directory Forest. When I changed them to Forest, all started working.

See ya...