Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Openldap died...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
JackPo
n00b
n00b


Joined: 23 Jan 2004
Posts: 19

PostPosted: Tue Aug 30, 2005 10:20 am    Post subject: Openldap died... Reply with quote

ldbm: ==> PANIC: fatal region error detected; run recovery

Can anyone tell me what to do, I'm pretty scared because I'm using LDAP authentication and this would seriously fubar the whole system....

(I googled some, and found most people had this problem with Berkeley's database, not LDBM).

Thanks!
Jack
Back to top
View user's profile Send private message
slam_head
Guru
Guru


Joined: 06 Jan 2003
Posts: 449
Location: New York City

PostPosted: Tue Aug 30, 2005 2:03 pm    Post subject: Reply with quote

In /var/lib/openldap-data create a sym-link to your Timezone

Code:
cd /var/lib/openldap-data
ln -s /usr/share/zoneinfo/US/Eastern .
Back to top
View user's profile Send private message
JackPo
n00b
n00b


Joined: 23 Jan 2004
Posts: 19

PostPosted: Wed Aug 31, 2005 11:44 am    Post subject: Reply with quote

My problem still exists.. and is now getting even worse :(

Is there anyway for openldap to simply rebuild all its indexes?

The data is there when I go to phpldapadmin.. except that I can't add entries... and entries are starting to vanish

db4.2_verify / db4.2_recover doesn't seem to work (or I'm not using it properly).. and everyone seems to only use it for Berkeley databases..
Back to top
View user's profile Send private message
JackPo
n00b
n00b


Joined: 23 Jan 2004
Posts: 19

PostPosted: Thu Sep 01, 2005 2:22 am    Post subject: Reply with quote

any help?

Thanks,
Jack
Back to top
View user's profile Send private message
trbecker
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2003
Posts: 136
Location: Novo Hamburgo, RS, Brazil

PostPosted: Thu Sep 01, 2005 2:31 am    Post subject: Reply with quote

slapindex rebuilds the openldap index. Maybe this helps.
_________________
If you see any violations to the Guidelines, please report it.
Back to top
View user's profile Send private message
Janne Pikkarainen
Veteran
Veteran


Joined: 29 Jul 2003
Posts: 1143
Location: Helsinki, Finland

PostPosted: Fri Sep 09, 2005 7:07 am    Post subject: Reply with quote

If your problem still persists, try to

- backup your current data to LDIF file with slapcat

- recover the database with the correct version of db_recover. First check the correct version with ldd, for example ldd /usr/lib/openldap/slapd and see what version of db your slapd is linked against.

Code:
cd /var/lib/openldap-data
dbX.Y_recover (where X.Y is the version)


- restart slapd

If that didn't help, you should see if your slapcat-backup is reasonably decent and rebuild your database with slapadd.
_________________
Yes, I'm the man. Now it's your turn to decide if I meant "Yes, I'm the male." or "Yes, I am the Unix Manual Page.".
Back to top
View user's profile Send private message
JackPo
n00b
n00b


Joined: 23 Jan 2004
Posts: 19

PostPosted: Mon Sep 26, 2005 2:46 am    Post subject: Reply with quote

just wanted to say thanks... that definitely saved me!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum