Hi,
I am getting the following exception in open ldap after upgrading the red hat 6 to 7:
BDB1538 Program version 5.3 doesn't match environment version 4.7
Berkeley Data Base upgraded from 4.7 to 5.3 while upgrading the redhat 6 to 7.
Go to the /var/lib/ldap directory and upgrade the database file version from 4.7 to 5.3 as follows:
Currently I have the following files in the /var/lib/ldap directory
cn.bdb
dn2id.bdb
id2entry.bdb
objectClass.bdb
ou.bdb
Execute the following command to upgrade the database files as follows:
db_upgrade cn.bdb
db_upgrade dn2id.bdbdb_upgrade id2entry.bdb
db_upgrade objectClass.bdb
db_upgrade ou.bdb
After execute the above commands, you need to change the ownership for the files as foolows:
chown ldap:ldap * -R
After executing the above command, it will change the ownership of the files.
Restart the service systemctl restart slapd. The ldap service restart successfully and the issue will be resolved.
I am getting the following exception in open ldap after upgrading the red hat 6 to 7:
BDB1538 Program version 5.3 doesn't match environment version 4.7
Cause:
Berkeley Data Base upgraded from 4.7 to 5.3 while upgrading the redhat 6 to 7.
Solution:
Go to the /var/lib/ldap directory and upgrade the database file version from 4.7 to 5.3 as follows:
Currently I have the following files in the /var/lib/ldap directory
cn.bdb
dn2id.bdb
id2entry.bdb
objectClass.bdb
ou.bdb
Execute the following command to upgrade the database files as follows:
db_upgrade cn.bdb
db_upgrade dn2id.bdbdb_upgrade id2entry.bdb
db_upgrade objectClass.bdb
db_upgrade ou.bdb
After execute the above commands, you need to change the ownership for the files as foolows:
chown ldap:ldap * -R
After executing the above command, it will change the ownership of the files.
Restart the service systemctl restart slapd. The ldap service restart successfully and the issue will be resolved.
Thanks for highlighting the BDB1538 version mismatch issue! Fira Code can be a great asset for debugging these kinds of environment discrepancies. Appreciate the insights!
ReplyDeleteThis comment has been removed by the author.
ReplyDelete