Bug 285945 - Unable to send mail: "There were problems trying to queue the message for sending: Append failed"
Summary: Unable to send mail: "There were problems trying to queue the message for sen...
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.7
Platform: Gentoo Packages Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-06 23:08 UTC by Markus
Modified: 2013-07-09 14:14 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.8.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus 2011-11-06 23:08:15 UTC
Version:           4.7 (using KDE 4.7.3) 
OS:                Linux

When I try to send a mail the composer stalls for a while and then displays "There were problems trying to queue the message for sending: Append failed".
Restarting akonadi, kde or the whole pc did not help.
The Mail is not even saved in drafts. No Error is shown but after a restart the message is gone.

Reproducible: Always

Steps to Reproduce:
Try to send a mail.

Actual Results:  
error message

Expected Results:  
send mail

akonadiconsole:

kmail2-2120106513 (0x29c6ce0) 181 SEARCH "prefix nco:<http://www.semanticdesktop.org/ontologies/2007/03/22/nco#>SELECT DISTINCT ?group WHERE { graph ?g { ?group <http://akonadi-project.org/ontologies/aneo#akonadiItemId> ?itemId . ?group nco:contactGroupName \"x@y.z\"^^<http://www.w3.org/2001/XMLSchema#string>. } }" FULLPAYLOAD EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME) 
kmail2-2120106513 (0x29c6ce0) 181 OK SEARCH completed 
kmail2-2120106513 (0x29c6ce0) 182 SEARCH "prefix nco:<http://www.semanticdesktop.org/ontologies/2007/03/22/nco#>SELECT DISTINCT ?r WHERE { graph ?g { ?r <http://akonadi-project.org/ontologies/aneo#akonadiItemId> ?itemId . ?r a nco:PersonContact . ?r nco:nickname \"x@y.z\"^^<http://www.w3.org/2001/XMLSchema#string> . } }" FULLPAYLOAD EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME) 
kmail2-2120106513 (0x29c6ce0) 182 OK SEARCH completed 
kmail2-2120106513 (0x29c6ce0) 183 SEARCH "prefix nco:<http://www.semanticdesktop.org/ontologies/2007/03/22/nco#>SELECT DISTINCT ?r WHERE { graph ?g { ?r <http://akonadi-project.org/ontologies/aneo#akonadiItemId> ?itemId . ?r a nco:PersonContact . ?r nco:nickname \"\"^^<http://www.w3.org/2001/XMLSchema#string> . } }" FULLPAYLOAD EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME) 
kmail2-2120106513 (0x29c6ce0) 183 OK SEARCH completed 
kmail2-2120106513 (0x29c6ce0) 184 SEARCH "prefix nco:<http://www.semanticdesktop.org/ontologies/2007/03/22/nco#>SELECT DISTINCT ?r WHERE { graph ?g { ?r <http://akonadi-project.org/ontologies/aneo#akonadiItemId> ?itemId . ?r a nco:PersonContact . ?r nco:nickname \"\"^^<http://www.w3.org/2001/XMLSchema#string> . } }" FULLPAYLOAD EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME) 
kmail2-2120106513 (0x29c6ce0) 184 OK SEARCH completed 
kmail2-2120106513 (0x29c6ce0) 185 X-AKAPPEND 129 0 (\MimeType[message/rfc822] $QUEUED) ("PLD:HEAD[1]":319,"PLD:ENVELOPE[1]":176,"PLD:RFC822[1]":324,"ATR:AddressAttribute":80,"ATR:TransportAttribute":10,"ATR:SentActionAttribute":4,"ATR:DispatchModeAttribute":11,"ATR:SentBehaviourAttribute":9) {933} 
kmail2-2120106513 (0x29c6ce0) + Ready for literal data (expecting 933 bytes) 

waiting...

akonadi_pop3_resource_8 (0x7fc09802b760) 14 LSUB 104 0 () () 
akonadi_pop3_resource_8 (0x7fc09802b760) * 104 69 (NAME "inbox" MIMETYPE (message/rfc822 inode/directory) REMOTEID "inbox" REMOTEREVISION "1320170584000" RESOURCE "akonadi_mixedmaildir_resource_0" CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT -1 SYNCONDEMAND true LOCALPARTS (ENVELOPE)) AccessRights "a" SpecialCollectionAttribute "inbox" ENTITYDISPLAY "(\"inbox\" \"mail-folder-inbox\" \"\" ())") 
akonadi_pop3_resource_8 (0x7fc09802b760) 14 OK List completed 
kmail2-2120106513 (0x29c6ce0) 185 NO Append failed 
kmail2-2120106513 (0x29c6ce0) 186 SELECT SILENT 148 
kmail2-2120106513 (0x29c6ce0) 186 OK Completed
Comment 1 Markus 2011-11-07 17:22:21 UTC
Started in console akonadi will wait and after some time, when the error-msg-box is displayed, it also prints:
Error during executing query "INSERT INTO PimItemTable (rev, remoteRevision, collectionId, mimeTypeId, atime, dirty, size) VALUES (:0, :1, :2, :3, :4, :5, :6)" :  "Lock wait timeout exceeded; try restarting transaction QMYSQL3: Unable to execute statement" 
Error during insertion into table "PimItemTable" "Lock wait timeout exceeded; try restarting transaction QMYSQL3: Unable to execute statement" 

Dont know who or what is holding the lock or how to get this info.
Comment 2 Eitzenberger Thomas 2011-11-08 22:11:06 UTC
Can confirm this behaviour with KDE 4.7.2 on OpenSuse 11.4
Comment 3 George L. Emigh 2011-11-09 23:27:48 UTC
I am getting this:
There were problems trying to queue the message for sending: Append failed

after upgrading from 4.7.2 to 4.7.3 on Gentoo
(akonadi-server-1.6.2)

I can send 1 sometimes 2 messages then I get this error, I can logout of KDE and log back in and repeat.

I am pleading for my sanity here, if there is a known patch for this please attach it to this bug.

Thanks.
Comment 4 Julian G 2011-11-21 11:50:30 UTC
i found this and it helped me:

https://bbs.archlinux.org/viewtopic.php?pid=1013928
> I solved the problem by removing my Kmail Maildir in akonadiconsole and adding it again as Maildir (not Kmail Maildir).
Comment 5 George L. Emigh 2011-11-21 21:59:38 UTC
(In reply to comment #4)
> i found this and it helped me:
> 
> https://bbs.archlinux.org/viewtopic.php?pid=1013928
> > I solved the problem by removing my Kmail Maildir in akonadiconsole and adding it again as Maildir (not Kmail Maildir).


When I tried that, all hell broke loose, and kmail crashed on startup, the maildir resource kept adding itself back, and after deleting the .local/share/akonadi directory several times and resetting up my local IMAP stuff, I'm back to square one, after sending an email I have to logout and back in to send another.
Comment 6 mooniac 2011-11-30 02:35:06 UTC
confirming this on KMail 4.7.3 on Fedora 16, 64 bit.
Comment 7 Knut Hansen 2011-12-05 09:01:13 UTC
Also having this problem on Kmail 4.7.3, Fedora 16, 64 bit.
Comment 8 bhonermann 2011-12-09 19:27:07 UTC
Also have this problem on Kmail 4.7.3, Ubuntu 11.10, 64 bit.  Kmail was working fine (relatively) until 7 December, 2011 when I suddenly started getting this error.
Comment 9 Lui Horan 2011-12-13 21:26:19 UTC
I can confirm also this bug, after some updates in first week of december i have very slow response, folders or mails are reading naumber of minutes and sending fails with this error. Kubuntu 11.10, kmail 4.7.3, Linux (i686) release 3.0.0-14-generic....
Comment 10 Christoph Vogtländer 2011-12-17 09:40:25 UTC
Also encountered on OS X (Snow Leopard, macport packages), KMail 4.7.3. Everything worked well before with the same version. I had to restart my system this morning (don't know when I restarted system last time and if this was before or after the last KMail update).
Comment 11 Charlie Figura 2011-12-20 15:32:56 UTC
This bug started affecting me on kubuntu oneiric after upgrading various packages from kde 4.7.2 to 4.7.3/4.7.3a
Comment 12 Christoph Vogtländer 2012-01-29 12:23:12 UTC
The problem seems to solved in KMail 4.8.0. At least for me sending mails works again.
Comment 13 Lui Horan 2012-01-31 12:00:21 UTC
I can confirm, new version works...

2012/1/29 Christoph Vogtländer <kdebugzilla@mockies.de>

> https://bugs.kde.org/show_bug.cgi?id=285945
>
>
>
>
>
> --- Comment #12 from Christoph Vogtländer <kdebugzilla mockies de>  2012-01-29
> 12:23:12 ---
> The problem seems to solved in KMail 4.8.0. At least for me sending mails
> works
> again.
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug.
>
Comment 14 Allen Winter 2012-01-31 12:55:41 UTC
this one should be fixed in 4.8.0

we put in some fixes for APPEND commands
Comment 15 Mike Williams 2013-07-09 14:14:44 UTC
I've just started getting "There were problems trying to queue the message for sending: Append failed" since upgrading to 4.10.4.

For me however restarting kontact allows the email to be sent, but it'll start failing again "later" (measurable in minutes, not days).