Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82250 - cyrus-sasl-2.1.20-r2 upgrade clobbers sasldb2 file
Summary: cyrus-sasl-2.1.20-r2 upgrade clobbers sasldb2 file
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-16 07:12 UTC by Kirk Lowery
Modified: 2006-04-12 02:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kirk Lowery 2005-02-16 07:12:00 UTC
After upgrading to cyrus-sasl-2.1.20-r2, the /etc/sasl2/sasldb2 is replaced with an "empty" user database, breaking cyrus authentications.

Reproducible: Always
Steps to Reproduce:
1. use sasldblistusers2 to show current users
2. upgrade
3. after the upgrade sasldblistusers2 shows no users



Expected Results:  
The upgrade should save the current sasldb2 file and restore it. If there is a
change in the database format, the current database should be migrated to it. At
the very minimum, the current database should be saved before overwriting and a
notice given that restoring the database manually is necessary.

Workaround: save the file manually before upgrading, and restoring it after the
upgrade. That's what I did this time around.
Comment 1 Fernando J. Pereda (RETIRED) gentoo-dev 2005-02-16 08:07:54 UTC
When you upgraded and ran etc-update you were prompted about what to do with /etc/sasl2/sasldb2; and you told etc-update to update it.

Sorry, but this is not a bug. Feel free to comment and ask anything you want, tough.

Cheers,
Ferdy
Comment 2 Kirk Lowery 2005-02-16 08:29:42 UTC
It's strange. When I upgraded, there was no notice to use etc-update (and I normally use dispatch-conf) and I'm positive that I did not update any config files at all. I try to be careful about config updates since this box is my production server.

I just reran the upgrade, and, sure enough, there's the notice for etc-update. I ran dispatch-conf, "zapped" the new sasldb2, and all is well.

<sigh> Ok, gremlins.

Thanks for your work maintaining this. I do depend on cyrus and friends...

Kirk
Comment 3 Steven Green 2006-04-12 02:50:28 UTC
I have often had this same problem.  Think it might be a weird problem with dispatch-conf and diff.  See bug 129670