Re: F17->F18: upgrade OpenLDAP database?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 15 Mar 2013 17:14:40 +0000 (UTC)
Braden McDaniel <braden@xxxxxxxxxxxxx> wrote:

> Brian Millett <bmillett <at> gmail.com> writes:
> 
> [snip]
> 
> > what you want to do is to 'recover' the db, so in /var/lib/ldap, do 
> > 
> > db_recover
> > 
> > then make sure that all files are owned ldap:ldap
> 
> Hm... When I do that, I get:
> 
>   # db_recover
>   db_recover: BDB1538 Program version 5.3 doesn't match environment version
> 5.2
> 
> 
> Braden
> 
> 

Bummer.  Lets see.  In the scripts for the openldap-servers, there is this:

# upgrade the database
if [ -f /var/lib/ldap/rpm_upgrade_openldap ]; then
	if /usr/bin/systemctl --quiet is-active slapd.service; then
		/usr/bin/systemctl stop slapd.service
		start_slapd=1
	fi

	/usr/libexec/openldap/upgrade-db.sh &>/dev/null
	rm -f /var/lib/ldap/rpm_upgrade_openldap
fi

So, if the database needs upgrading, then the pre-install script touches
the /var/lib/ldap/rpm_upgrade_openldap file.  Do you have that, then see if
the above works.

Also, what is the contents of the /var/lib/ldap dir?  Please include the
results from

ls -l of /var/lib/ldap

thanks.

-- 
Brian Millett
"Commander, this little breach of security isn't going to affect my
 Christmas bonus, is it?"
   -- [ Garibaldi, "The Gathering"]
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux