Koozali.org: home of the SME Server

[SOLVED] LDAP service won't start after update

Offline bfontaine

  • 3
  • +0/-0
    • AIRRIA Roubaix
[SOLVED] LDAP service won't start after update
« on: November 07, 2014, 10:00:48 AM »
Hello,

I'm running a smeserver 9.
I did update through the server manager and slapd doesn't start anymore.

When I try a manual startup (/etc/init.d/slapd start)
I got the following message :
ls: impossible d'accéder à /etc/openldap/slapd.d//cn=config/olcDatabase*.ldif: Aucun fichier ou dossier de ce type
Translation :
Can't access to /etc/openldap/slapd.d//cn=config/olcDatabase*.ldif:no file or folder of this type

When I check the content of /etc/openmdap/slapd.d/ , it's almost empty, there's just an "unused" file, which empty.

rpm -qa e-smith-ldap e-smith-base
e-smith-base-5.6.0-6.el6.sme.noarch
e-smith-ldap-5.4.0-10.el6.sme.noarch

Help is welcome!

Thanks.

EDIT :

Last lines of /var/log/ldap/current
@40000000545c8b37035db3b4 545c8b2d @(#) $OpenLDAP: slapd 2.4.39 (Oct 15 2014 09:51:43) $
@40000000545c8b37035db79c    mockbuild@c6b8.bsys.dev.centos.org:/builddir/build/BUILD/openldap-2.4.39/openldap-2.4.39/build-servers/servers/slapd
@40000000545c8b37040ff09c 545c8b2d bdb_db_open: database "dc=mydomain,dc=com" cannot be opened, err 13. Restore from backup!
@40000000545c8b370444d794 545c8b2d bdb(dc=mydomain,dc=com): txn_checkpoint interface requires an environment configured for the transaction subsystem
@40000000545c8b370445316c 545c8b2d bdb_db_close: database "dc=mydomain,dc=com": txn_checkpoint failed: Invalid argument (22).
@40000000545c8b370445c9c4 545c8b2d backend_startup_one (type=bdb, suffix="dc=mydomain,dc=com"): bi_db_open failed! (13)
@40000000545c8b370446b424 545c8b2d bdb_db_close: database "dc=mydomain,dc=com": alock_close failed
@40000000545c8b370448a054 545c8b2d slapd stopped.
« Last Edit: November 07, 2014, 10:27:53 AM by bfontaine »
AIRRIA Roubaix - IT manager

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: LDAP service won't start after update
« Reply #1 on: November 07, 2014, 10:10:48 AM »
Hi, welcome here..

check bugzilla, I'm sure there's a open bug about this issue (can't find atm, a bit busy)

Offline bfontaine

  • 3
  • +0/-0
    • AIRRIA Roubaix
Re: LDAP service won't start after update
« Reply #2 on: November 07, 2014, 10:25:03 AM »
That was quick!
And I undertstand the subtitle : check bugzilla before asking on forum  :-)

FYI, related bug is http://bugs.contribs.org/show_bug.cgi?id=8635

Temp solution is :

Code: [Select]
chown ldap:ldap /var/lib/ldap/__db.*
chown ldap:ldap /var/lib.ldap/DB_CONFIG
and reboot
« Last Edit: November 07, 2014, 10:58:26 AM by bfontaine »
AIRRIA Roubaix - IT manager

Offline bfontaine

  • 3
  • +0/-0
    • AIRRIA Roubaix
Re: [SOLVED] LDAP service won't start after update
« Reply #3 on: November 07, 2014, 10:33:53 AM »
Forgot to thank.

Thank you.
AIRRIA Roubaix - IT manager

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: [SOLVED] LDAP service won't start after update
« Reply #4 on: November 07, 2014, 10:44:21 AM »
you are welcome :-)

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: LDAP service won't start after update
« Reply #5 on: November 07, 2014, 11:35:02 AM »
chown ldap:ldap /var/lib.ldap/DB_CONFIG

Apart from the typo, this is not needed, and shouldn't be done. DB_CONFIG permission must not be altered
C'est la fin du monde !!! :lol: