Bug 83778 - kde main and apps configs lost after power failures
Summary: kde main and apps configs lost after power failures
Status: RESOLVED DUPLICATE of bug 82840
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Mandrake RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-21 17:20 UTC by Artemio
Modified: 2008-10-15 15:57 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Artemio 2004-06-21 17:20:14 UTC
Version:           3.2.0 (using KDE KDE 3.2.1)
Installed from:    Mandrake RPMs
Compiler:          gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk) 

Preamble: it has happened three times already on my mdk 10.0 CE system. Thanks God I frequently do "cp -R ./kde/share ./kde/share~" ;-)

If I have a power failure (can't afford a UPS yet), sometimes, KDE and some it's apps loose it's configs. When power is back and I start the system, I see a clean standard KDE config as if I just installed the distro. For two times I have lost my KMail config and all accounts. KPPP and Konqueror used to loose configs too. Sometimes if I open a corrupted KMail config (for instance) I see a complete mess like parts of HTML code etc.

I understand it as when KDE itself, or some app like kicker or KMail starts backing up it's configs and then the system shuts down immediately, the config gets corrupted or completely lost.

I think it would be good to make all apps make a copy of their configs to kapprc~ before updating the config. Also, I think it's easily possible to determine whether KDE exited normally or shut down due to X crash or system power failure, and on next KDE startup prompt if user wants to restore the configs.
Comment 1 Waldo Bastian 2004-06-23 11:52:29 UTC
Which file-system do you use?
Comment 2 Artemio 2004-06-23 12:04:13 UTC
FAT16.

;-)

Just kidding, I have ReiserFS everywhere.
Comment 3 Christian Loose 2004-07-09 10:18:32 UTC
duplicate of Bug 82840?
Comment 4 Waldo Bastian 2004-07-09 14:31:01 UTC

*** This bug has been marked as a duplicate of 82840 ***
Comment 5 Aaron Thoreson 2004-07-29 21:33:42 UTC
Also seeing this error after a lockup or X crash.  Bookmarks are lost in Mozilla, filters and account settings are lost in Kmail, icons, colors, themes, etc. are all lost and workstation appears to be a fresh install.  The files still exist, like mail account settings and passwords, but it's almost as though KDE isn't reading them.

Is there a fix aside from wait for version 3.3?
Comment 6 Waldo Bastian 2004-07-29 22:10:38 UTC
The files will exist but their contents is probably empty or garbage (is that so in your case?)

You can give KDE 3.3beta2 a try.
Comment 7 Gary Krueger 2008-10-15 15:55:28 UTC
(In reply to comment #0)
> Version:           3.2.0 (using KDE KDE 3.2.1)
> Installed from:    Mandrake RPMs
> Compiler:          gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk) 
> 
> Preamble: it has happened three times already on my mdk 10.0 CE system. Thanks
> God I frequently do "cp -R ./kde/share ./kde/share~" ;-)
> 
> If I have a power failure (can't afford a UPS yet), sometimes, KDE and some
> it's apps loose it's configs. When power is back and I start the system, I see
> a clean standard KDE config as if I just installed the distro. For two times I
> have lost my KMail config and all accounts. KPPP and Konqueror used to loose
> configs too. Sometimes if I open a corrupted KMail config (for instance) I see
> a complete mess like parts of HTML code etc.
> 
> I understand it as when KDE itself, or some app like kicker or KMail starts
> backing up it's configs and then the system shuts down immediately, the config
> gets corrupted or completely lost.
> 
> I think it would be good to make all apps make a copy of their configs to
> kapprc~ before updating the config. Also, I think it's easily possible to
> determine whether KDE exited normally or shut down due to X crash or system
> power failure, and on next KDE startup prompt if user wants to restore the
> configs.
> 

This isn't really resolved.  This has been a problem for me ever since Fedora Core 1 (and I've used FC1, FC5, FC6, FS9).

Whenever my system has an abnormal termination, desktop settings are lost.

In particular (and most annoyingly), all of the workspace names revert to their pre-login values.  It becomes a nearly futile effort to make changes to workspace names, because I almost never log off from my system.  I simply lock it.

The settings should be flushed to the configuration files more than once every logout.  Preferrably, at least once every 15 minutes (if there are any changes).

The way to avoid corrupted configuration data, is to write to a temporary file.  Then when satisfied that it has been written correctly, rename (mv) it to the configuration file (for all practical purposes, an atomic operation).
Comment 8 Gary Krueger 2008-10-15 15:57:34 UTC
(In reply to comment #7)
> (In reply to comment #0)
> > Version:           3.2.0 (using KDE KDE 3.2.1)
> > Installed from:    Mandrake RPMs
> > Compiler:          gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk) 
> > 
> > Preamble: it has happened three times already on my mdk 10.0 CE system. Thanks
> > God I frequently do "cp -R ./kde/share ./kde/share~" ;-)
> > 
> > If I have a power failure (can't afford a UPS yet), sometimes, KDE and some
> > it's apps loose it's configs. When power is back and I start the system, I see
> > a clean standard KDE config as if I just installed the distro. For two times I
> > have lost my KMail config and all accounts. KPPP and Konqueror used to loose
> > configs too. Sometimes if I open a corrupted KMail config (for instance) I see
> > a complete mess like parts of HTML code etc.
> > 
> > I understand it as when KDE itself, or some app like kicker or KMail starts
> > backing up it's configs and then the system shuts down immediately, the config
> > gets corrupted or completely lost.
> > 
> > I think it would be good to make all apps make a copy of their configs to
> > kapprc~ before updating the config. Also, I think it's easily possible to
> > determine whether KDE exited normally or shut down due to X crash or system
> > power failure, and on next KDE startup prompt if user wants to restore the
> > configs.
> > 
> 
> This isn't really resolved.  This has been a problem for me ever since Fedora
> Core 1 (and I've used FC1, FC5, FC6, FS9).
> 
> Whenever my system has an abnormal termination, desktop settings are lost.
> 
> In particular (and most annoyingly), all of the workspace names revert to their
> pre-login values.  It becomes a nearly futile effort to make changes to
> workspace names, because I almost never log off from my system.  I simply lock
> it.
> 
> The settings should be flushed to the configuration files more than once every
> logout.  Preferrably, at least once every 15 minutes (if there are any
> changes).
> 
> The way to avoid corrupted configuration data, is to write to a temporary file.
>  Then when satisfied that it has been written correctly, rename (mv) it to the
> configuration file (for all practical purposes, an atomic operation).

By the way, my current KDE version is 4.1.1.