KDE – Akonadi fsck – all the KDE/Qt debug settings set to “Off” by means of “kdebugsettings” «RPM package has the same name: “kdebugsettings”»:
- 542 entries as follows in the systemd Journal:
Aug 06 12:44:49 xxx akonadiserver[2921]: org.kde.pim.akonadiserver.search: Executing search "StorageJanitor"
Aug 06 12:44:49 xxx akonadiserver[2921]: org.kde.pim.akonadiserver.search: Search "StorageJanitor" done (without remote search)
- Nothing in ~/.local/share/sddm/xorg-session.log
[HR][/HR]Any ideas?
These are not debug messages, rather log lines from the akonadi server. Had a quick search, but couldn’t find any option to avoid akonadiserver to write those lines to the journal.
This post was caused by the creation of the following shell script which, is intended to be called at the KDE Plasma login –
- Unfortunately, currently, the Akonadi database needs some occasional housekeeping if KMail is to perform as it should do …
#!/bin/bash
#
# Akonadi fsck - 1st, check that Akonadi is running.
#
# Wait until Akonadi Control is running.
until $( /bin/pidof /usr/bin/akonadi_control ) ]]
do
echo "Waiting for Akonadi Control"
sleep 10s
done
#
# Wait unti the Akonadi Server is running.
until $( /bin/pidof /usr/bin/akonadiserver ) ]]
do
echo "Waiting for Akonadi Server"
sleep 10s
done
#
if -f ~/.local/share/akonadi/dateLastChecked ]]
then
declare -i AkonadiFsckLastDate
AkonadiFsckLastDate="$(/usr/bin/cat ~/.local/share/akonadi/dateLastChecked)"
declare -i FiveDaysAgo
FiveDaysAgo="$(/usr/bin/date --date='5 days ago' +%Y%m%d)"
if (( $AkonadiFsckLastDate < $FiveDaysAgo ))
then
echo "Akonadi fsck start"
/usr/bin/logger "Akonadi fsck start"
# Akonadi internal storage consistency check
/usr/bin/akonadictl fsck
/usr/bin/date +%Y%m%d > ~/.local/share/akonadi/dateLastChecked
echo "Akonadi fsck completed"
/usr/bin/logger "Akonadi fsck completed"
#
# Akonadi internal storage vacuum
if -f ~/.local/share/akonadi/dateLastVacuumed ]]
then
declare -i AkonadiVacuumLastDate
AkonadiVacuumLastDate="$(/usr/bin/cat ~/.local/share/akonadi/dateLastVacuumed)"
declare -i ThirtyDaysAgo
ThirtyDaysAgo="$(/usr/bin/date --date='30 days ago' +%Y%m%d)"
if (( $AkonadiVacuumLastDate < $ThirtyDaysAgo ))
then
echo "Akonadi vacuum start"
/usr/bin/logger "Akonadi vacuum start"
/usr/bin/akonadictl vacuum
/usr/bin/date +%Y%m%d > ~/.local/share/akonadi/dateLastVacuumed
echo "Akonadi vacuum completed"
/usr/bin/logger "Akonadi vacuum completed"
echo "Akonadi fsck start"
/usr/bin/logger "Akonadi fsck start"
/usr/bin/akonadictl fsck
echo "Akonadi fsck completed"
/usr/bin/logger "Akonadi fsck completed"
fi
else
/usr/bin/date +%Y%m%d > ~/.local/share/akonadi/dateLastVacuumed
fi
else
echo "Last Akonadi fsck was less than 5 days ago"
fi
else
echo "Akonadi fsck start"
/usr/bin/logger "Akonadi fsck start"
# Akonadi consistency check
/usr/bin/akonadictl fsck
/usr/bin/date +%Y%m%d > ~/.local/share/akonadi/dateLastChecked
echo "Akonadi fsck completed"
/usr/bin/logger "Akonadi fsck completed"
fi
#