Bug 199232 - Database not saved until quitting
Summary: Database not saved until quitting
Status: REPORTED
Alias: None
Product: akregator
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-07 04:19 UTC by Ben Boeckel
Modified: 2018-05-18 07:25 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Boeckel 2009-07-07 04:19:26 UTC
Version:            (using KDE 4.2.4)
Installed from:    Fedora RPMs

If Akregator (or Kontact) crashes, Akregator loses all feeds and read/unread state since the last successful quit. It should at least dump to the database on every update of feeds, otherwise weeks of feeds can be lost if something goes wrong.
Comment 1 Micah Gersten 2009-10-26 01:20:55 UTC
I can confirm this with KDE 4.3.2 on Ubuntu:
https://bugs.launchpad.net/bugs/460756
Comment 2 Dominik Stadler 2009-10-28 20:31:11 UTC
This is very similar to Bug 187687 "When there is a crash read links are not stored. ", also Bug 210408 "problems with session saving / restoration" sounds related.
Comment 3 Dominik Stadler 2009-11-05 00:38:46 UTC
Also Bug 196633 and Bug 185507 are related, maybe we can duplicate most of these to this one.

I'm using the following command to ask Akregator to save the current state (all in one line):
 dbus-send --session --dest=org.kde.akregator --type=method_call /Akregator  org.kde.akregator.part.saveSettings

this will use d-bus to instruct Akregator to persist its database, at least it seems to work for me.

Unfortunately you cannot run this workaround in a cron-job periodically as it requires access to the d-bus session, which you don't have inside cron. But you can probably add it to some X-shutdown script and make it work this way.
Comment 4 Oliver Henshaw 2010-03-06 14:35:16 UTC
What is Storage::autoCommit() used for? It looks like it's only checked on close() but isn't this only called on the shutdown path where you'd want to always commit to the database?
Comment 5 Marcin Gryszkalis 2010-09-14 10:59:04 UTC
(In reply to comment #3)
> Unfortunately you cannot run this workaround in a cron-job periodically as it
> requires access to the d-bus session, which you don't have inside cron. 

As a workaround I use a simple wrapper that harvests DBUS_SESSION_BUS_ADDRESS from environment of existsing kde processes (via /proc) - with that you can call dbus from cronjob.

See http://www.mail-archive.com/debian-kde@lists.debian.org/msg30421.html
Comment 6 pitom71 2011-02-19 09:29:37 UTC
Akregator v1.6.5

Besides loosing the read/unread information (which is very annoying) it also looses the settings which columns to display (title/feed/author/date).

Also the severity of this bug should not be "wishlist" but "normal" to its degrade of function during specified conditions.
Comment 7 Patrick 2017-08-01 08:30:20 UTC
This issue is still present in Akregator 5.5.3.
Comment 8 Patrick 2017-08-24 19:19:00 UTC
Regarding my previous comment, I lost a lot of articles after an uptime of about 10 days and a crash of Akregator during startup (after a reboot). I've been monitoring the archived feeds since then, but they seem to be saved correctly after each fetch.
Comment 9 Patrick 2018-01-26 13:21:14 UTC
It seems Akregator (5.7.1) stops saving the feed data after a new feed is added.