Author Topic: Samba service problem  (Read 1037 times)

cmarzotta

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Samba service problem
« on: March 27, 2010, 04:26:39 »
Hello guys,

After doing an update (apt-get update) I got a problem with the samba service.
I am not allowed to access the USERs area in the GUI and I am receiving the following message:

A really nasty bug has occurred
Exception
Can't create ldapi connection
Trace
Can't create ldapi connection at /usr/share/perl5/EBox/Ldap.pm line 175
EBox::Ldap::anonymousLdapCon('EBox::Ldap=HASH(0xa42e3cc)') called at /usr/share/perl5/EBox/Ldap.pm line 243
EBox::Ldap::dn('EBox::Ldap=HASH(0xa42e3cc)') called at /usr/share/perl5/EBox/UsersAndGroups.pm line 338
EBox::UsersAndGroups::groupsDn('EBox::UsersAndGroups=HASH(0xa42e2e8)') called at /usr/share/perl5/EBox/UsersAndGroups.pm line 1678
EBox::UsersAndGroups::groups('EBox::UsersAndGroups=HASH(0xa42e2e8)') called at /usr/share/perl5/EBox/CGI/UsersAndGroups/Users.pm line 48
EBox::CGI::UsersAndGroups::Users::_process('EBox::CGI::UsersAndGroups::Users=HASH(0x9046ed0)') called at /usr/share/perl5/EBox/CGI/Base.pm line 262
EBox::CGI::Base::run('EBox::CGI::UsersAndGroups::Users=HASH(0x9046ed0)') called at /usr/share/perl5/EBox/CGI/Run.pm line 120
EBox::CGI::Run::run('EBox::CGI::Run', 'UsersAndGroups/Users', 'EBox') called at /usr/share/ebox/cgi/ebox.cgi line 19
ModPerl::ROOT::ModPerl::Registry::usr_share_ebox_cgi_ebox_2ecgi::handler('Apache2::RequestRec=SCALAR(0xc1b5888)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
eval {...} called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0xc257240)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0xc257240)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0xc1b5888)') called at -e line 0
eval {...} called at -e line 0

I chequed the /var/log/ebox/ebox.log am I am getting the following:

2010/03/27 12:10:58 ERROR> Ldap.pm:175 EBox::Ldap::anonymousLdapCon - Can't create ldapi connection
2010/03/27 12:11:41 INFO> EventDaemon.pm:303 EBox::EventDaemon::_loadModules - EBox::Event::Watcher::DiskFreeSpace loaded from registeredEvents
2010/03/27 12:11:46 ERROR> Ldap.pm:175 EBox::Ldap::anonymousLdapCon - Can't create ldapi connection
2010/03/27 12:11:46 WARN> EventDaemon.pm:189 EBox::EventDaemon::__ANON__ - Error executing run from EBox::Event::Watcher::DiskFreeSpace: Can't create ldapi connection
2010/03/27 12:12:46 INFO> EventDaemon.pm:303 EBox::EventDaemon::_loadModules - EBox::Event::Watcher::DiskFreeSpace loaded from registeredEvents
2010/03/27 12:12:51 ERROR> Ldap.pm:175 EBox::Ldap::anonymousLdapCon - Can't create ldapi connection
2010/03/27 12:12:51 WARN> EventDaemon.pm:189 EBox::EventDaemon::__ANON__ - Error executing run from EBox::Event::Watcher::DiskFreeSpace: Can't create ldapi connection
2010/03/27 12:13:51 INFO> EventDaemon.pm:303 EBox::EventDaemon::_loadModules - EBox::Event::Watcher::DiskFreeSpace loaded from registeredEvents
2010/03/27 12:13:56 ERROR> Ldap.pm:175 EBox::Ldap::anonymousLdapCon - Can't create ldapi connection
2010/03/27 12:13:56 WARN> EventDaemon.pm:189 EBox::EventDaemon::__ANON__ - Error executing run from EBox::Event::Watcher::DiskFreeSpace: Can't create ldapi connection
2010/03/27 12:14:56 INFO> EventDaemon.pm:303 EBox::EventDaemon::_loadModules - EBox::Event::Watcher::DiskFreeSpace loaded from registeredEvents
2010/03/27 12:15:01 ERROR> Ldap.pm:175 EBox::Ldap::anonymousLdapCon - Can't create ldapi connection
2010/03/27 12:15:01 WARN> EventDaemon.pm:189 EBox::EventDaemon::__ANON__ - Error executing run from EBox::Event::Watcher::DiskFreeSpace: Can't create ldapi connection
2010/03/27 12:15:08 ERROR> Ldap.pm:175 EBox::Ldap::anonymousLdapCon - Can't create ldapi connection
2010/03/27 12:16:01 INFO> EventDaemon.pm:303 EBox::EventDaemon::_loadModules - EBox::Event::Watcher::DiskFreeSpace loaded from registeredEvents

AlgĂșn error ha ocurrido en eBox:
Can't create ldapi connection

I am not familiary with LDAP, does anyone know how to recreate this ldapi connection?

This happened to a server in production, so any help will more more than welcomed.

Thanks a lot.


« Last Edit: March 27, 2010, 05:11:34 by cmarzotta »

cmarzotta

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Samba service problem
« Reply #1 on: March 27, 2010, 07:27:29 »
Regarding this problem, I found out that LDAP is not running and the syslog is reporting the following when I tried to run it:

Mar 27 15:23:50 ebox1 postfix/cleanup[27611]: warning: dict_ldap_connect: Unable to bind to server ldap://127.0.0.1:389 as : -1 (Can't contact LDAP server)

Guys, any idea of what kind of troubleshooting should I do to solve this?
Again, any help on this will be welcomed.

MMaI

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Samba service problem
« Reply #2 on: March 29, 2010, 10:49:39 »
same problem here, slapd cannot start, urgent help required!

MMaI

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Samba service problem
« Reply #3 on: March 31, 2010, 09:12:03 »
problem solved on my side, after somne additional digging I discovered a problem with the latest asterisk update, where the schema file for ldap got renamed.

So for those having the same problem, run slapd -d 65535. If you get the error duplicate schema or something similar, go to /etc/ldap/slapd.d/cn=config/cn=schema  delete the file with the same size as your asterisk schema file (a name like the asterisk file, but without {asterisk} in it) and delete this file.

then restart your ebox, and everything should be up and running
« Last Edit: March 31, 2010, 09:15:47 by MMaI »