Koozali.org: home of the SME Server
Obsolete Releases => SME Server 9.x => Topic started by: bfontaine 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.
-
Hi, welcome here..
check bugzilla, I'm sure there's a open bug about this issue (can't find atm, a bit busy)
-
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 (http://bugs.contribs.org/show_bug.cgi?id=8635)
Temp solution is :
chown ldap:ldap /var/lib/ldap/__db.*
chown ldap:ldap /var/lib.ldap/DB_CONFIG
and reboot
-
Forgot to thank.
Thank you.
-
you are welcome :-)
-
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