This forum has been archived. All content is frozen. Please use KDE Discuss instead.

3 Local folders with only one agent after 4.8 update

Tags: None
(comma "," separated)
alvanx
Registered Member
Posts
136
Karma
1
OS
Hi,

since my update to KDE 4.8, I have three Local Folder instances. There is only one agent. They all use the same directory, but differ somewhat in the amount of new mail they display. Only one instance displays the correct amount of unread mail (the others show several more random messages as unread) and contains my tags (task, important etc.). The others don't. Two of the instances show all text in red, the third doesn't. The instance that retained all my mail is one of the red ones. I have no clue what the red text is supposed to tell me, but it's almost as annoying as 3 different local folders. I also cannot read mail in one of the folders in this one; I can read mail in a different folder and I can read mail from the same folder in a different instance.

I have tried deleting the Local Folders agent, knowing it would automatically create a new one (if you are reading this because you have a similar problem, don't clone or create a new Local Folders agent. You will end up with 2!). This has helped before but didn't this time.

Here's a screenshot:
Image

I have also checked all configuration files and the local-mail folder (/home/[user]/.local/share/local-mail/). Nowhere is any indication why there are three instances displayed (as far as I can tell).

In the mail directory (or rather in the hidden .local-mail.directory), all mail files have ":2,S" attached to them (like this one: 1318019279.R44.alvanx:2,S), which to my best knowledge indicates a double email. Akonadi seems to have the bad habit of duplicating email occasionally as you upgrade. Is there any way to fix this? I mean I don't care about this as long as it doesn't show in my 3 instances of Local Folders.

In the meantime, I had noticed that despite my settings there were 2 maildir directories active (as in (~/.config/akonadi/agentsrc). I deleted one, which was apparently the wrong one. Apparently, the agent that I had deleted earlier (so that a new Local Folders agent would be created by the program) was not removed at all. In the meantime, I now have 4 instances of Local Folders!

I'd be indebted for useful help.

Here's akonadiserverrc:
Code: Select all
[%General]
Driver=QPSQL

[QPSQL]
StartServer=true
Name=akonadi
Host=/home/alvanx/.local/share/akonadi/socket-alvanx.ichthys
Options=
ServerPath=/usr/bin/pg_ctl
InitDbPath=/usr/bin/initdb

[QMYSQL]
StartServer=true
ServerPath=/usr/sbin/mysqld
Name=akonadi
Host=
User=
Password=
Options="UNIX_SOCKET=/home/alvanx/.local/share/akonadi/socket-alvanx.ichthys/mysql.socket"

[Debug]
Tracer=null


Here's the correspoding section from agentsrc:
Code: Select all
[Instances]
akonadi_maildispatcher_agent\AgentType=akonadi_maildispatcher_agent
akonadi_kabc_resource_0\AgentType=akonadi_kabc_resource
akonadi_pop3_resource_0\AgentType=akonadi_pop3_resource
akonadi_pop3_resource_1\AgentType=akonadi_pop3_resource
akonadi_pop3_resource_2\AgentType=akonadi_pop3_resource
akonadi_birthdays_resource\AgentType=akonadi_birthdays_resource
akonadi_contacts_resource_2\AgentType=akonadi_contacts_resource
akonadi_kcal_resource_4\AgentType=akonadi_kcal_resource
akonadi_ical_resource_11\AgentType=akonadi_ical_resource
akonadi_vcarddir_resource_0\AgentType=akonadi_vcarddir_resource
akonadi_nepomuk_feeder\AgentType=akonadi_nepomuk_feeder
akonadi_mailfilter_agent\AgentType=akonadi_mailfilter_agent
akonadi_maildir_resource_19\AgentType=akonadi_maildir_resource


EDIT: Discovered a bug to where an agent can only be removed (in akonadiconsole) properly when all the config files for that agent are in place, namely the one for online/offline in .config/akonadi and the one in .kde4/share/config/ as well as the entry in .config/akonadi/agentsrc.

After making sure that there is no other rebel instance of Local Folders, I am back from four to 3 now and it seems clear that there's something wrong with this particular agent. I'll try deleting it again.

EDIT2: Deleting worked this time, but the problem persists.
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
Text in red means "broken" resource, i.e. thast it cannot be accessed for a variety of reasons. Nevertheless, this is quite strange. Do you have any meaningful errors in ~/.xsession-errors when you start up kmail?


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
alvanx
Registered Member
Posts
136
Karma
1
OS
Not sure how much of this applies, but this is it:
Code: Select all
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 2 (X_ChangeWindowAttributes)
  Resource id:  0x26007dd
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 2 (X_ChangeWindowAttributes)
  Resource id:  0x26007dd
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Known subscriber "kmail2" subscribes again
Known subscriber "kmail2" subscribes again
[/usr/bin/nepomukservicestub] virtual void Soprano::Server::LocalServer::incomingConnection(quintptr)
[/usr/bin/nepomukservicestub] void Soprano::Server::ServerCorePrivate::addConnection(Soprano::Server::ServerConnection*) New connection. New count: 14
[/usr/bin/nepomukservicestub] Soprano::ODBC::Connection::Connection() Soprano::Server::ServerConnection(0x85b09f0)
Known subscriber "kmail2" subscribes again
Known subscriber "kmail2" subscribes again
[/usr/bin/nepomukservicestub] virtual void Soprano::Server::LocalServer::incomingConnection(quintptr)
[/usr/bin/nepomukservicestub] void Soprano::Server::ServerCorePrivate::addConnection(Soprano::Server::ServerConnection*) New connection. New count: 15
[/usr/bin/nepomukservicestub] Soprano::ODBC::Connection::Connection() Soprano::Server::ServerConnection(0x84c8ca0)
kmail2(20820)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
kmail2(20820)/kdepimlibs (mailtransport): Could not access Outbox.
kmail2(20820)/kdeui (kdelibs): Attempt to use QAction "" with KXMLGUIFactory!
kmail2(20820)/kdeui (kdelibs): Attempt to use QAction "" with KXMLGUIFactory!
Database "akonadi" opened using driver "QPSQL"
Database "akonadi" opened using driver "QPSQL"
akonadi_pop3_resource_2(2685)/kio (KIOJob) KIO::TransferJob::slotData: mimeType() not emitted when sending first data!; job URL = KUrl("pop3s://[different mail server]:995/index") data size = 8
akonadi_pop3_resource_2(2685)/kio (KIOJob) KIO::TransferJob::slotData: mimeType() not emitted when sending first data!; job URL = KUrl("pop3s://[different mail server]:995/uidl") data size = 54
akonadi_pop3_resource_2(2685)/kio (KIOJob) KIO::TransferJob::slotData: mimeType() not emitted when sending first data!; job URL = KUrl("pop3s://[different mail server]:995/download/") data size = 0
akonadi_pop3_resource_2(2685)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
akonadi_pop3_resource_0(2682)/kio (KIOJob) KIO::TransferJob::slotData: mimeType() not emitted when sending first data!; job URL = KUrl("pop3s://[address1]@pop.gmail.com:995/index") data size = 0
akonadi_pop3_resource_0(2682)/kio (KIOJob) KIO::TransferJob::slotData: mimeType() not emitted when sending first data!; job URL = KUrl("pop3s://[address1]@pop.gmail.com:995/uidl") data size = 0
akonadi_pop3_resource_0(2682)/kio (KIOJob) KIO::TransferJob::slotData: mimeType() not emitted when sending first data!; job URL = KUrl("pop3s://[address1]@pop.gmail.com:995/download/") data size = 0
akonadi_pop3_resource_1(2684)/kio (KIOJob) KIO::TransferJob::slotData: mimeType() not emitted when sending first data!; job URL = KUrl("pop3s://[address2]@pop.gmail.com:995/index") data size = 0
akonadi_pop3_resource_0(2682)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
akonadi_pop3_resource_1(2684)/kio (KIOJob) KIO::TransferJob::slotData: mimeType() not emitted when sending first data!; job URL = KUrl("pop3s://[address2]@pop.gmail.com:995/uidl") data size = 0
akonadi_pop3_resource_1(2684)/kio (KIOJob) KIO::TransferJob::slotData: mimeType() not emitted when sending first data!; job URL = KUrl("pop3s://[address2]@pop.gmail.com:995/download/") data size = 0
akonadi_pop3_resource_1(2684)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
"Cannot connect to agent instance with identifier 'akonadi_maildir_resource_14', error message: 'Could not get owner of name 'org.freedesktop.Akonadi.Resource.akonadi_maildir_resource_14': no such name'"
[/usr/bin/nepomukservicestub] virtual void Soprano::Server::LocalServer::incomingConnection(quintptr)
[/usr/bin/nepomukservicestub] void Soprano::Server::ServerCorePrivate::addConnection(Soprano::Server::ServerConnection*) New connection. New count: 16
[/usr/bin/nepomukservicestub] Soprano::ODBC::Connection::Connection() Soprano::Server::ServerConnection(0x81aebd8)
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.


EDIT: Edited out my email addresses.
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
"Cannot connect to agent instance with identifier 'akonadi_maildir_resource_14', error message: 'Could not get owner of name 'org.freedesktop.Akonadi.Resource.akonadi_maildir_resource_14': no such name'"


This looks like one of the rogue resources. I think it would be wise to post a bug to bugs.kde.org with a detailed description of the problem, as I'm not sure whether there is some inconsistency in your Akonadi database or you (by chance) hit a bug.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
alvanx
Registered Member
Posts
136
Karma
1
OS
Thanks for your help up to this point. I posted the bug report here: https://bugs.kde.org/show_bug.cgi?id=292679

There is clearly a problem with akonadi duplicating agents. Look at my current agentsrc. There's a second maildir agent AGAIN, and there are about 8 contacts resources listed - I should have 3 and no more. Same with calender resources; there should be 2+birthdays.

Code: Select all
[Instances]
akonadi_maildispatcher_agent\AgentType=akonadi_maildispatcher_agent
akonadi_kabc_resource_0\AgentType=akonadi_kabc_resource
akonadi_pop3_resource_0\AgentType=akonadi_pop3_resource
akonadi_pop3_resource_1\AgentType=akonadi_pop3_resource
akonadi_pop3_resource_2\AgentType=akonadi_pop3_resource
akonadi_birthdays_resource\AgentType=akonadi_birthdays_resource
akonadi_contacts_resource_2\AgentType=akonadi_contacts_resource
akonadi_kcal_resource_4\AgentType=akonadi_kcal_resource
akonadi_ical_resource_11\AgentType=akonadi_ical_resource
akonadi_vcarddir_resource_0\AgentType=akonadi_vcarddir_resource
akonadi_nepomuk_feeder\AgentType=akonadi_nepomuk_feeder
akonadi_mailfilter_agent\AgentType=akonadi_mailfilter_agent
akonadi_maildir_resource_20\AgentType=akonadi_maildir_resource
akonadi_contacts_resource_6\AgentType=akonadi_contacts_resource
akonadi_ical_resource_12\AgentType=akonadi_ical_resource
akonadi_akonotes_resource_5\AgentType=akonadi_akonotes_resource
akonadi_contacts_resource_7\AgentType=akonadi_contacts_resource
akonadi_contacts_resource_8\AgentType=akonadi_contacts_resource
akonadi_contacts_resource_9\AgentType=akonadi_contacts_resource
akonadi_contacts_resource_10\AgentType=akonadi_contacts_resource
akonadi_contacts_resource_11\AgentType=akonadi_contacts_resource
akonadi_contacts_resource_12\AgentType=akonadi_contacts_resource
akonadi_ical_resource_13\AgentType=akonadi_ical_resource
akonadi_maildir_resource_21\AgentType=akonadi_maildir_resource
akonadi_akonotes_resource_6\AgentType=akonadi_akonotes_resource
akonadi_contacts_resource_13\AgentType=akonadi_contacts_resource
akonadi_ical_resource_14\AgentType=akonadi_ical_resource
akonadi_akonotes_resource_7\AgentType=akonadi_akonotes_resource
akonadi_contacts_resource_14\AgentType=akonadi_contacts_resource
akonadi_ical_resource_15\AgentType=akonadi_ical_resource
akonadi_akonotes_resource_8\AgentType=akonadi_akonotes_resource
akonadi_kabc_resource_1\AgentType=akonadi_kabc_resource
akonadi_ical_resource_16\AgentType=akonadi_ical_resource
akonadi_akonotes_resource_9\AgentType=akonadi_akonotes_resource
akonadi_vcard_resource_3\AgentType=akonadi_vcard_resource
alvanx
Registered Member
Posts
136
Karma
1
OS
Ok jfyi, I was able to delete all the duplicate agents and there was no problem as to that they would have reappeared. But there was no luck getting rid of the duplicate Local Folders. Starting a new akonadi database took care of that problem, but caused another one. It never ends.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]