Ticket #3227 (closed defect: fixed)
Zentyal as Active Directory slave
| Reported by: | lucas.justino@… | Owned by: | cperez@… |
|---|---|---|---|
| Milestone: | 2.2.X | Component: | users |
| Severity: | critical | Keywords: | users ad active directory slave |
| Cc: |
Description
I've set up Zentyal escrado as Active Directory, populate the parameters and save the changes. Then I tried to activate the module users, so I clicked to accept the changes he tried to apply them, however, I received a post saying that there was a failure in setting or something. I went back to the main page and sent to save the changes, this time I get an error message like the one below:
2011/09/15 16:06:30 INFO> GlobalImpl?.pm:539 EBox::GlobalImpl::saveAllModules - Saving config and restarting services: firewall users 2011/09/15 16:06:30 INFO> Base.pm:228 EBox::Module::Base::save - Restarting service for module: firewall 2011/09/15 16:06:36 INFO> Base.pm:228 EBox::Module::Base::save - Restarting service for module: users 2011/09/15 16:06:37 ERROR> Ldap.pm:1103 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying 2011/09/15 16:06:39 ERROR> Ldap.pm:1103 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying 2011/09/15 16:06:41 ERROR> Ldap.pm:1103 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying 2011/09/15 16:06:42 ERROR> Ldap.pm:1103 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying 2011/09/15 16:06:43 ERROR> Ldap.pm:1107 EBox::Ldap::safeConnect - FATAL: Couldn't connect to LDAP server: ldapi://%2fvar%2frun%2fslapd%2fldapi 2011/09/15 16:06:43 ERROR> GlobalImpl?.pm:612 EBox::GlobalImpl::ANON - Failed to save changes in module users: FATAL: Couldn't connect to LDAP server: ldapi://%2fvar%2frun%2fslapd%2fldapi 2011/09/15 16:06:43 ERROR> GlobalImpl?.pm:659 EBox::GlobalImpl::saveAllModules - The following modules failed while saving their changes, their state is unknown: users
I did the same procedure in version 2.0 of Zentyal and everything went well. I think it's a bug.
Thanks
Attachments
Change History
comment:2 follow-up: ↓ 3 Changed 20 months ago by jacalvo@…
which version of the zentyal-users package are you using? You can check that with "apt-cache policy zentyal-users"
comment:3 in reply to: ↑ 2 Changed 20 months ago by lucas.justino@…
Replying to jacalvo@…:
which version of the zentyal-users package are you using? You can check that with "apt-cache policy zentyal-users"
Hi !
I'm using the 2.2 version of zentyal-users.
zentyal-users:
Instalado: 2.2 Candidato: 2.2 Tabela de versão:
* 2.2 0
500 http://ppa.launchpad.net/zentyal/2.2/ubuntu/ lucid/main Packages 500 file:/var/tmp/ebox-packages/ ./ Packages 100 /var/lib/dpkg/status
comment:5 Changed 20 months ago by cperez@…
Can you try to reproduce the issue? First reinstall users and groups module:
/usr/share/zentyal-users/reinstall
Then retry enable, and please, post here your zentyal.log
Please, also check /var/log/syslog for slapd errors:
cat /var/log/syslog | grep slapd
comment:6 Changed 20 months ago by lucas.justino@…
Hi, I did what you said. The following are the logs:
zentyal.log
2011/09/27 14:32:12 INFO> Service.pm:716 EBox::Module::Service::restartService - Restarting service for module: apache 2011/09/27 14:32:13 INFO> Service.pm:716 EBox::Module::Service::restartService - Restarting service for module: logs 2011/09/27 14:32:51 INFO> apache-restart:53 main:: - Waiting for apache to shutdown, attempt 0 2011/09/27 14:32:51 INFO> Service.pm:716 EBox::Module::Service::restartService - Restarting service for module: events 2011/09/27 14:32:56 INFO> EventDaemon.pm:307 EBox::EventDaemon::_loadModules - EBox::Event::Dispatcher::Log loaded from registeredDispatchers 2011/09/27 14:33:09 INFO> Firewall.pm:995 EBox::Firewall::_addService - Not adding adsync service as it already exists instead 2011/09/27 14:33:09 INFO> Base.pm:250 EBox::Module::Base::__ANON__ - Saving config for module: services 2011/09/27 14:33:09 INFO> Firewall.pm:774 EBox::Firewall::_setService - Existing rule for adsync overrides default rule 2011/09/27 14:33:09 INFO> Base.pm:250 EBox::Module::Base::__ANON__ - Saving config for module: objects 2011/09/27 14:33:09 INFO> Base.pm:250 EBox::Module::Base::__ANON__ - Saving config for module: network 2011/09/27 14:33:10 INFO> Base.pm:250 EBox::Module::Base::__ANON__ - Saving config for module: services 2011/09/27 14:33:10 INFO> Base.pm:250 EBox::Module::Base::__ANON__ - Saving config for module: firewall 2011/09/27 14:33:10 INFO> Firewall.pm:995 EBox::Firewall::_addService - Not adding ldap service as it already exists instead 2011/09/27 14:33:10 INFO> Base.pm:250 EBox::Module::Base::__ANON__ - Saving config for module: services 2011/09/27 14:33:10 INFO> Firewall.pm:774 EBox::Firewall::_setService - Existing rule for ldap overrides default rule 2011/09/27 14:33:10 INFO> Base.pm:250 EBox::Module::Base::__ANON__ - Saving config for module: objects 2011/09/27 14:33:10 INFO> Base.pm:250 EBox::Module::Base::__ANON__ - Saving config for module: network 2011/09/27 14:33:10 INFO> Base.pm:250 EBox::Module::Base::__ANON__ - Saving config for module: services 2011/09/27 14:33:10 INFO> Base.pm:250 EBox::Module::Base::__ANON__ - Saving config for module: firewall 2011/09/27 14:33:10 INFO> Base.pm:250 EBox::Module::Base::__ANON__ - Saving config for module: objects 2011/09/27 14:33:10 INFO> Base.pm:250 EBox::Module::Base::__ANON__ - Saving config for module: network 2011/09/27 14:33:11 INFO> Base.pm:250 EBox::Module::Base::__ANON__ - Saving config for module: services 2011/09/27 14:33:11 INFO> Base.pm:250 EBox::Module::Base::__ANON__ - Saving config for module: firewall 2011/09/27 14:33:11 INFO> Base.pm:250 EBox::Module::Base::__ANON__ - Saving config for module: users 2011/09/27 14:33:12 INFO> Service.pm:716 EBox::Module::Service::restartService - Restarting service for module: users 2011/09/27 14:33:14 INFO> Service.pm:716 EBox::Module::Service::restartService - Restarting service for module: apache 2011/09/27 14:33:15 INFO> Service.pm:716 EBox::Module::Service::restartService - Restarting service for module: logs 2011/09/27 14:33:16 INFO> apache-restart:53 main:: - Waiting for apache to shutdown, attempt 0 2011/09/27 14:33:17 INFO> Service.pm:716 EBox::Module::Service::restartService - Restarting service for module: events 2011/09/27 14:33:22 INFO> EventDaemon.pm:307 EBox::EventDaemon::_loadModules - EBox::Event::Dispatcher::Log loaded from registeredDispatchers 2011/09/27 14:34:47 INFO> GlobalImpl.pm:539 EBox::GlobalImpl::saveAllModules - Saving config and restarting services: firewall users 2011/09/27 14:34:47 INFO> Base.pm:228 EBox::Module::Base::save - Restarting service for module: firewall 2011/09/27 14:35:03 INFO> ServiceManager.pm:631 EBox::ServiceManager::_getMD5 - File /etc/ldap.conf does not exist. So we won't compute its digest 2011/09/27 14:35:03 INFO> ServiceManager.pm:631 EBox::ServiceManager::_getMD5 - File /etc/ldap.secret does not exist. So we won't compute its digest 2011/09/27 14:35:04 INFO> ServiceManager.pm:631 EBox::ServiceManager::_getMD5 - File /etc/ldap.conf does not exist. So we won't compute its digest 2011/09/27 14:35:04 INFO> ServiceManager.pm:631 EBox::ServiceManager::_getMD5 - File /etc/ldap.secret does not exist. So we won't compute its digest 2011/09/27 14:35:06 ERROR> Sudo.pm:213 EBox::Sudo::_rootError - root command set -e ldapadd -H 'ldapi://' -Y EXTERNAL -c -f /var/lib/zentyal/tmp//slapd-master.ldif ldapadd -H 'ldapi://' -Y EXTERNAL -c -f /var/lib/zentyal/tmp//slapd-master-db.ldif failed. Error output: ldap_sasl_interactive_bind_s: Can't contact LDAP server (-1) Command output: . Exit value: 255 2011/09/27 14:35:06 WARN> Setup.pm:134 EBox::UsersAndGroups::Setup::__ANON__ - Trying to setup master ldap failed, exit value: 255 2011/09/27 14:35:06 ERROR> Ldap.pm:1103 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying 2011/09/27 14:35:08 ERROR> Ldap.pm:1103 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying 2011/09/27 14:35:10 ERROR> Ldap.pm:1103 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying 2011/09/27 14:35:11 ERROR> Ldap.pm:1103 EBox::Ldap::safeConnect - Couldn't connect to LDAP server ldapi://%2fvar%2frun%2fslapd%2fldapi, retrying 2011/09/27 14:35:12 ERROR> Ldap.pm:1107 EBox::Ldap::safeConnect - FATAL: Couldn't connect to LDAP server: ldapi://%2fvar%2frun%2fslapd%2fldapi 2011/09/27 14:35:12 ERROR> ConfigureModuleController.pm:74 EBox::CGI::ServiceModule::ConfigureModuleController::__ANON__ - Failed to enable: FATAL: Couldn't connect to LDAP server: ldapi://%2fvar%2frun%2fslapd%2fldapi
syslog
Sep 27 08:33:38 server2 slapd[12928]: @(#) $OpenLDAP: slapd 2.4.21 (Jun 2 2011 19:36:19) $#012#011buildd@allspice:/build/buildd/openldap-2.4.21/debian/build/servers/slapd Sep 27 08:33:39 server2 slapd[12928]: invalid config directory /etc/ldap/slapd-replica.d, error 2 Sep 27 08:33:39 server2 slapd[12928]: slapd stopped. Sep 27 08:33:39 server2 slapd[12928]: connections_destroy: nothing to destroy. Sep 27 08:33:39 server2 init: ebox.slapd-replica main process (12928) terminated with status 1 Sep 27 08:33:39 server2 init: ebox.slapd-replica main process ended, respawning Sep 27 08:33:39 server2 slapd[12934]: @(#) $OpenLDAP: slapd 2.4.21 (Jun 2 2011 19:36:19) $#012#011buildd@allspice:/build/buildd/openldap-2.4.21/debian/build/servers/slapd Sep 27 08:33:39 server2 slapd[12934]: invalid config directory /etc/ldap/slapd-replica.d, error 2 Sep 27 08:33:39 server2 slapd[12934]: slapd stopped. Sep 27 08:33:39 server2 slapd[12934]: connections_destroy: nothing to destroy. Sep 27 08:33:39 server2 init: ebox.slapd-replica main process (12934) terminated with status 1 Sep 27 08:33:39 server2 init: ebox.slapd-replica main process ended, respawning Sep 27 08:33:39 server2 slapd[12940]: @(#) $OpenLDAP: slapd 2.4.21 (Jun 2 2011 19:36:19) $#012#011buildd@allspice:/build/buildd/openldap-2.4.21/debian/build/servers/slapd Sep 27 08:33:39 server2 slapd[12940]: invalid config directory /etc/ldap/slapd-replica.d, error 2 Sep 27 08:33:39 server2 slapd[12940]: slapd stopped. Sep 27 08:33:39 server2 slapd[12940]: connections_destroy: nothing to destroy. Sep 27 08:33:39 server2 init: ebox.slapd-replica main process (12940) terminated with status 1 Sep 27 08:33:39 server2 init: ebox.slapd-replica main process ended, respawning Sep 27 08:33:39 server2 slapd[12946]: @(#) $OpenLDAP: slapd 2.4.21 (Jun 2 2011 19:36:19) $#012#011buildd@allspice:/build/buildd/openldap-2.4.21/debian/build/servers/slapd Sep 27 08:33:39 server2 slapd[12946]: invalid config directory /etc/ldap/slapd-replica.d, error 2 Sep 27 08:33:39 server2 slapd[12946]: slapd stopped. Sep 27 08:33:39 server2 slapd[12946]: connections_destroy: nothing to destroy. Sep 27 08:33:39 server2 init: ebox.slapd-replica main process (12946) terminated with status 1 Sep 27 08:33:39 server2 init: ebox.slapd-replica main process ended, respawning Sep 27 08:33:39 server2 slapd[12953]: @(#) $OpenLDAP: slapd 2.4.21 (Jun 2 2011 19:36:19) $#012#011buildd@allspice:/build/buildd/openldap-2.4.21/debian/build/servers/slapd Sep 27 08:33:39 server2 slapd[12953]: invalid config directory /etc/ldap/slapd-replica.d, error 2 Sep 27 08:33:39 server2 slapd[12953]: slapd stopped. Sep 27 08:33:39 server2 slapd[12953]: connections_destroy: nothing to destroy. Sep 27 08:33:39 server2 init: ebox.slapd-replica main process (12953) terminated with status 1 Sep 27 08:33:39 server2 init: ebox.slapd-replica main process ended, respawning Sep 27 08:33:40 server2 slapd[12959]: @(#) $OpenLDAP: slapd 2.4.21 (Jun 2 2011 19:36:19) $#012#011buildd@allspice:/build/buildd/openldap-2.4.21/debian/build/servers/slapd Sep 27 08:33:40 server2 slapd[12959]: invalid config directory /etc/ldap/slapd-replica.d, error 2 Sep 27 08:33:40 server2 slapd[12959]: slapd stopped. Sep 27 08:33:40 server2 slapd[12959]: connections_destroy: nothing to destroy. Sep 27 08:33:40 server2 init: ebox.slapd-replica main process (12959) terminated with status 1 Sep 27 08:33:40 server2 init: ebox.slapd-replica main process ended, respawning Sep 27 08:33:40 server2 slapd[12965]: @(#) $OpenLDAP: slapd 2.4.21 (Jun 2 2011 19:36:19) $#012#011buildd@allspice:/build/buildd/openldap-2.4.21/debian/build/servers/slapd Sep 27 08:33:40 server2 slapd[12965]: invalid config directory /etc/ldap/slapd-replica.d, error 2 Sep 27 08:33:40 server2 slapd[12965]: slapd stopped. Sep 27 08:33:40 server2 slapd[12965]: connections_destroy: nothing to destroy. Sep 27 08:33:40 server2 init: ebox.slapd-replica main process (12965) terminated with status 1 Sep 27 08:33:40 server2 init: ebox.slapd-replica main process ended, respawning Sep 27 08:33:40 server2 slapd[12974]: @(#) $OpenLDAP: slapd 2.4.21 (Jun 2 2011 19:36:19) $#012#011buildd@allspice:/build/buildd/openldap-2.4.21/debian/build/servers/slapd Sep 27 08:33:40 server2 slapd[12974]: invalid config directory /etc/ldap/slapd-replica.d, error 2 Sep 27 08:33:40 server2 slapd[12974]: slapd stopped. Sep 27 08:33:40 server2 slapd[12974]: connections_destroy: nothing to destroy. Sep 27 08:33:40 server2 init: ebox.slapd-replica main process (12974) terminated with status 1 Sep 27 08:33:40 server2 init: ebox.slapd-replica main process ended, respawning Sep 27 08:33:40 server2 slapd[12981]: @(#) $OpenLDAP: slapd 2.4.21 (Jun 2 2011 19:36:19) $#012#011buildd@allspice:/build/buildd/openldap-2.4.21/debian/build/servers/slapd Sep 27 08:33:40 server2 slapd[12981]: invalid config directory /etc/ldap/slapd-replica.d, error 2 Sep 27 08:33:40 server2 slapd[12981]: slapd stopped. Sep 27 08:33:40 server2 slapd[12981]: connections_destroy: nothing to destroy. Sep 27 08:33:40 server2 init: ebox.slapd-replica main process (12981) terminated with status 1 Sep 27 08:33:40 server2 init: ebox.slapd-replica main process ended, respawning Sep 27 08:33:40 server2 slapd[12987]: @(#) $OpenLDAP: slapd 2.4.21 (Jun 2 2011 19:36:19) $#012#011buildd@allspice:/build/buildd/openldap-2.4.21/debian/build/servers/slapd Sep 27 08:33:40 server2 slapd[12987]: invalid config directory /etc/ldap/slapd-replica.d, error 2 Sep 27 08:33:40 server2 slapd[12987]: slapd stopped. Sep 27 08:33:40 server2 slapd[12987]: connections_destroy: nothing to destroy. Sep 27 08:33:40 server2 init: ebox.slapd-replica main process (12987) terminated with status 1 Sep 27 08:33:40 server2 init: ebox.slapd-replica main process ended, respawning Sep 27 08:33:41 server2 slapd[12993]: @(#) $OpenLDAP: slapd 2.4.21 (Jun 2 2011 19:36:19) $#012#011buildd@allspice:/build/buildd/openldap-2.4.21/debian/build/servers/slapd Sep 27 08:33:41 server2 slapd[12993]: invalid config directory /etc/ldap/slapd-replica.d, error 2 Sep 27 08:33:41 server2 slapd[12993]: slapd stopped. Sep 27 08:33:41 server2 slapd[12993]: connections_destroy: nothing to destroy. Sep 27 08:33:41 server2 init: ebox.slapd-replica main process (12993) terminated with status 1 Sep 27 08:33:41 server2 init: ebox.slapd-replica respawning too fast, stopped Sep 27 08:34:36 server2 kernel: [ 2400.656493] type=1505 audit(1317123276.172:26): operation="profile_replace" pid=13490 name="/usr/sbin/slapd" Sep 27 08:34:36 server2 slapd[13513]: @(#) $OpenLDAP: slapd 2.4.21 (Jun 2 2011 19:36:19) $#012#011buildd@allspice:/build/buildd/openldap-2.4.21/debian/build/servers/slapd Sep 27 08:34:36 server2 slapd[13514]: slapd starting Sep 27 08:38:58 server2 slapd[13514]: daemon: shutdown requested and initiated. Sep 27 08:38:58 server2 slapd[13514]: slapd shutdown: waiting for 0 operations/tasks to finish Sep 27 08:38:58 server2 slapd[13514]: slapd stopped. Sep 27 14:18:11 server2 kernel: [ 20.003381] type=1505 audit(1317143891.702:23): operation="profile_load" pid=754 name="/usr/sbin/slapd" Sep 27 14:27:05 server2 kernel: [ 553.495153] type=1505 audit(1317144425.190:25): operation="profile_replace" pid=3128 name="/usr/sbin/slapd" Sep 27 14:27:05 server2 slapd[3151]: @(#) $OpenLDAP: slapd 2.4.21 (Jun 2 2011 19:36:19) $#012#011buildd@allspice:/build/buildd/openldap-2.4.21/debian/build/servers/slapd Sep 27 14:27:06 server2 slapd[3152]: slapd starting Sep 27 14:29:43 server2 slapd[3152]: daemon: shutdown requested and initiated. Sep 27 14:29:43 server2 slapd[3152]: slapd shutdown: waiting for 0 operations/tasks to finish Sep 27 14:29:43 server2 slapd[3152]: slapd stopped. Sep 27 14:33:07 server2 kernel: [ 881.101211] type=1505 audit(1317144787.824:26): operation="profile_replace" pid=4814 name="/usr/sbin/slapd" Sep 27 14:33:08 server2 slapd[4837]: @(#) $OpenLDAP: slapd 2.4.21 (Jun 2 2011 19:36:19) $#012#011buildd@allspice:/build/buildd/openldap-2.4.21/debian/build/servers/slapd Sep 27 14:33:08 server2 slapd[4838]: slapd starting Sep 27 14:35:04 server2 slapd[4838]: daemon: shutdown requested and initiated. Sep 27 14:35:04 server2 slapd[4838]: slapd shutdown: waiting for 0 operations/tasks to finish Sep 27 14:35:04 server2 slapd[4838]: slapd stopped.
Thanks.
the first message was this:
--- OK
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
after this, I received the others.