Bug 286567 - 'QMYSQL3: Unable to execute statement' errors
Summary: 'QMYSQL3: Unable to execute statement' errors
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.7
Platform: Fedora RPMs Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-14 09:18 UTC by Sérgio Basto
Modified: 2013-03-02 22:32 UTC (History)
4 users (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 Sérgio Basto 2011-11-14 09:18:15 UTC
Version:           4.7 (using KDE 4.7.3) 
OS:                Linux

after upgrade Fedora from 15 to 16 which upgrade kde from 4.6 to 4.7, my email is  a totally mess.
I read  http://userbase.kde.org/Akonadi_4.4/Troubleshooting
which suggest clean  
~/.local/share/akonadi/db_data 
or  
~/.local/share/akonadi/

when I do it any emails shows up. 

with my old db_data, 

I got Error during executing query "UPDATE PimItemTable, CollectionTable SET atime = :0 WHERE ( PimItemTable.remoteId = ( :1 ) AND CollectionTable.resourceId = :2 AND ( PimItemTable.collectionId = CollectionTable.id ) )" :  "Lock wait timeout exceeded; try restarting transaction QMYSQL3: Unable to execute statement" 
Unable to update item access time 
Error during executing query "UPDATE PimItemTable, CollectionTable SET atime = :0 WHERE ( PimItemTable.remoteId = ( :1 ) AND CollectionTable.resourceId = :2 AND ( PimItemTable.collectionId = CollectionTable.id ) )" :  "Lock wait timeout exceeded; try restarting transaction QMYSQL3: Unable to execute statement" 
Unable to update item access time 

mail synchronize stuck , 

Retrieving Folder Contents Please wait . . . 

mysql seems out of date,  
mysql.err:
[ERROR] Native table 'performance_schema'.'events_waits_current' has the wrong structure


Reproducible: Always

Steps to Reproduce:
open kontact


Actual Results:  
no mail

Expected Results:  
have mail
Comment 1 Sérgio Basto 2011-11-14 09:32:28 UTC
after Unable to update item access time:
I got 
request for item 35009 "1254935989.2633.aYYHK" failed: "Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken." 
ItemRetrieverException :  Unable to retrieve item from resource: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Comment 2 Sérgio Basto 2011-11-14 17:26:37 UTC
to get rid of 
mysql.err:
[ERROR] Native table 'performance_schema'.'events_waits_current' has the wrong
structure

I have stop akonadi and move 
mv .local/share/akonadi/ ak_back/

and appears this message: 
Error during updating record with id 39  in table "PimItemTable" "Deadlock found when trying to get lock; try restarting transaction QMYSQL3: Unable to execute statement"
Comment 3 Sérgio Basto 2011-11-14 19:16:35 UTC
I put old .local/share/akonadi/ 
and after restart akonadi
I do :
mysql_upgrade --socket=/home/$USER/.local/share/akonadi/socket-$host/mysql.socket
which end up:
Running 'mysql_fix_privilege_tables'...
OK

and fix "wrong structure"
mysql.err:
[ERROR] Native table 'performance_schema'.'events_waits_current' has the wrong
structure

the mail almost all appears,
but still see:
Error during executing query "UPDATE PimItemTable SET atime = :0 WHERE ( ( PimItemTable.id = :1 OR PimItemTable.id = :2 OR ( PimItemTable.id >= :3 AND PimItemTable.id <= :4 ) ) )" :  "Lock wait timeout exceeded; try restarting transaction QMYSQL3: Unable to execute statement" .

which to me seems to be the problem .
Comment 4 Sérgio Basto 2011-11-14 19:20:13 UTC
other:

Error during executing query "UPDATE PimItemTable SET atime = :0 WHERE ( collectionId = :1 )" :  "Lock wait timeout exceeded; try restarting transaction QMYSQL3: Unable to execute statement" 
Unable to update item access time 

system mysql is : mysql-5.5.16-3.fc16.x86_64
Comment 5 Sérgio Basto 2011-11-16 00:53:54 UTC
ok , I found the problem , and the problem on migration, is not kmail maildir, is a local Folder, when I switch local folder to ~/.kde/share/apps/kmail/mail, instead have a ~/.local/share/local-mail 
and a resource kmail folder with ~/.kde/share/apps/kmail/mail.

- fix your local filters, if you had any

I have 30 and folder expired , none of the filters was correct and expired folder expired others folders than that should, I lose some mails that I don't want to, but hope that was nothing important.

So, backup your mail folders (~/.kde/share/apps/kmail/mail) before change it to local folders.
backup (or move) ~/.config/akonadi/ and ~/.kde/share/config/akonadi*

and build akanodi resources again. 

4 days without mail, and to find out that local folders are where are my emails via POP3.
Comment 6 S. Burmeister 2011-12-05 17:38:14 UTC
(In reply to comment #5)
> ok , I found the problem , and the problem on migration, is not kmail maildir,
> is a local Folder, when I switch local folder to ~/.kde/share/apps/kmail/mail,
> instead have a ~/.local/share/local-mail 
> and a resource kmail folder with ~/.kde/share/apps/kmail/mail.

Could you please write that again. I do not understand what the problem was.
Comment 7 Sérgio Basto 2011-12-05 18:47:14 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > ok , I found the problem , and the problem on migration, is not kmail maildir,
> > is a local Folder, when I switch local folder to ~/.kde/share/apps/kmail/mail,
> > instead have a ~/.local/share/local-mail 
> > and a resource kmail folder with ~/.kde/share/apps/kmail/mail.
> 
> Could you please write that again. I do not understand what the problem was.

Migration puts my mail in a resource "kmail folder", but the resource should be "local Folder" .
so delete resource "kmail folder" and change resource "local Folder" to have your email.
after backup email, of course .
Comment 8 Daniel Vrátil 2013-03-02 21:10:16 UTC

*** This bug has been marked as a duplicate of bug 286711 ***
Comment 9 Daniel Vrátil 2013-03-02 21:12:41 UTC
(Sorry, this is not a duplicate, I clicked a wrong tab)
Comment 10 Sérgio Basto 2013-03-02 21:42:40 UTC
Hi, I Close this bug since , with fix in Current release since ages don't see this bug  ?
Comment 11 Sérgio Basto 2013-03-02 21:50:28 UTC
Hi, can I Close this bug  ? with fix in Current release, since ages don't see this bug ?
Comment 12 Daniel Vrátil 2013-03-02 22:32:45 UTC
Closed. Please reopen if you hit the problem in future again.