Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 566547 - mysql-5.1.43 incompat with akonadi
Summary: mysql-5.1.43 incompat with akonadi
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mysql
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tom Lane
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 568844 (view as bug list)
Depends On:
Blocks: F13Alpha, F13AlphaBlocker
TreeView+ depends on / blocked
 
Reported: 2010-02-18 19:14 UTC by Rex Dieter
Modified: 2013-07-03 03:27 UTC (History)
10 users (show)

Fixed In Version: mysql-5.1.44-1.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-24 20:12:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Trial patch for this problem (deleted)
2010-02-20 05:03 UTC, Tom Lane
no flags Details | Diff
upstream patch for charset issue (deleted)
2010-02-26 19:15 UTC, Rex Dieter
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Debian BTS 569549 0 None None None Never
KDE Software Compilation 226960 0 None None None Never

Description Rex Dieter 2010-02-18 19:14:53 UTC
An akonadi db initialized with 5.1.43 fails to start, gives errors of the form:


[akonadiserver] Character set 'latin1' is not a compiled character set and is not specified in the '/usr/share/mysql/charsets/Index.xml' file
[akonadiserver] Database error: Cannot open database.


See also,
https://bugs.kde.org/show_bug.cgi?id=226960
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=569549

Comment 1 Rex Dieter 2010-02-18 19:23:15 UTC
I and another fellow on irc downgraded to 5.1.42-7 , and it works better (no errors).

Comment 2 Tom Lane 2010-02-18 19:23:58 UTC
Hmph , has anybody reported this upstream to mysql.com?

Comment 3 Rex Dieter 2010-02-18 19:31:40 UTC
Not yet, still investigating for details, not even 100% sure it's all mysql's fault, honestly.

all we know at this point is
akonadi-1.3.1 + mysql-5.1.43  = bad.

Comment 4 Rex Dieter 2010-02-18 20:12:30 UTC
This upstream report looks a lot like what we're seeing,
http://bugs.mysql.com/bug.php?id=15547

but that doesn't seem specific to 5.1.43

Comment 5 Tom Lane 2010-02-18 20:47:29 UTC
15547 is ancient, but what is new in 5.1.43 is the patch for the linked report
http://bugs.mysql.com/bug.php?id=45058
I'll bet that broke it somehow.

Comment 6 Rex Dieter 2010-02-18 21:04:34 UTC
I can do a build reversing that patch, and do some more testing.

Comment 7 Rex Dieter 2010-02-18 21:08:32 UTC
Ugh, only parts of http://lists.mysql.com/commits/87152 seem to be applied in 5.1.53

Comment 8 Tom Lane 2010-02-18 23:11:52 UTC
Yeah, figuring out which patch actually got applied is often no fun with mysql.  I think they intentionally make their SCM not too transparent.

Comment 9 Tom Lane 2010-02-20 01:32:28 UTC
Keeping in mind that I know less than zip about akonadi --- could someone give me a step-by-step to reproduce this bug?

Comment 10 Rex Dieter 2010-02-20 01:51:20 UTC
Sure.

0.  yum install akonadi

1.  make sure you have no existing ~/.local/share/akonadi dir.  (if exists, remove or rename)

2.  in terminal, 
$  akonadictl start

with the newer mysql-server, it fails to start and init the db giving errors per comment #1.

3.  (if you get akonadi to start),
$ akonadictl stop

then try repeating steps 1-3, with different mysql-server builds until success.

Comment 11 Tom Lane 2010-02-20 05:03:59 UTC
Created attachment 395215 [details]
Trial patch for this problem

Reverts the relevant changes between 5.1.42 and 5.1.43

Comment 12 Tom Lane 2010-02-20 05:06:44 UTC
I dug through the diff from 5.1.42 to 5.1.43 and extracted the parts that seemed to have to do with charset initialization.  This patch makes the problem go away for me, but I wonder if anyone else would like to try it?  Presumably it also brings back the issue that upstream hoped to fix in their bug 45058...

Comment 13 Rex Dieter 2010-02-20 16:24:53 UTC
Thanks, I'll try to test that out today.

Comment 14 Bartosz Fabianowski 2010-02-20 16:46:43 UTC
While I am not a Redhat user, I can confirm your patch addresses the issue. I was running into the same problems under FreeBSD with MySQL 5.5.1. Your patch applies cleanly to MySQL 5.5.1 as well and allows Akonadi to start normally. Thanks!

Comment 15 Tom Lane 2010-02-20 17:07:25 UTC
(In reply to comment #14)

5.5.1 broke too, huh?  I thought they'd just messed up the back-port to the 5.1.x branch.  Please report that at the upstream bug 45058.

Comment 16 Bartosz Fabianowski 2010-02-20 17:55:11 UTC
(In reply to comment #15)

I reported upstream that this also happens with 5.5.1 earlier today. It seems that the code change in itself is causing a problem, across all branches of MySQL it was applied to.

Comment 17 Tom Lane 2010-02-21 13:54:24 UTC
I've added that patch to the just-completed build of 5.1.44; hopefully it will make things better.

Comment 18 Fedora Update System 2010-02-21 13:59:55 UTC
mysql-5.1.44-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/mysql-5.1.44-1.fc12

Comment 19 Fedora Update System 2010-02-21 14:00:10 UTC
mysql-5.1.44-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/mysql-5.1.44-1.fc13

Comment 20 Fedora Update System 2010-02-21 14:00:19 UTC
mysql-5.1.44-1.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/mysql-5.1.44-1.fc11

Comment 21 Fedora Update System 2010-02-21 16:57:07 UTC
mysql-5.1.44-1.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update mysql'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F13/FEDORA-2010-1922

Comment 22 Rex Dieter 2010-02-21 17:18:19 UTC
I can confirm that with the patched mysql-server-5.1.44-1.fc12.x86_64 build, I
can no longer reproduce the problem described here.  Thanks!

Comment 23 Fedora Update System 2010-02-22 03:43:54 UTC
mysql-5.1.44-2.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/mysql-5.1.44-2.fc13

Comment 24 Fedora Update System 2010-02-23 05:14:29 UTC
mysql-5.1.44-1.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update mysql'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2010-2470

Comment 25 Fedora Update System 2010-02-23 05:23:51 UTC
mysql-5.1.44-2.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update mysql'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F13/FEDORA-2010-2519

Comment 26 Fedora Update System 2010-02-23 05:25:46 UTC
mysql-5.1.44-1.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update mysql'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-2547

Comment 27 Kevin Kofler 2010-02-23 14:15:57 UTC
I'm taking this off the blocker for the F11 and F12 KDE 4.4.0 updates as the MySQL in F11/F12 updates is fine and the one in F11/F12 updates-testing is now fixed too.

However, I had to add this to the F13Alpha blocker as the current MySQL in F13 Alpha is broken and this screws up the KDE spin. :-(

Comment 28 Kevin Kofler 2010-02-23 14:17:10 UTC
(mysql-5.1.44-2.fc13 has the fix, we need that build in the alpha.)

Comment 29 Adam Williamson 2010-02-23 16:54:06 UTC
just to keep it on the public record, kevin tells me jesse is aware of this issue and will pull the fix into rc3.

it's a very borderline call on its actual alpha blocker-iness - per the criteria, we wouldn't necessarily consider a similar issue even in GNOME to be a blocker. but i'd certainly support including the fix if it's an obvious and relatively simple change that isn't likely to break anything else.



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 30 Tom Lane 2010-02-23 17:21:37 UTC
I'm prepared to push this stable if it gets another +1 karma.  But given mysql's recent track record a version update isn't necessarily a totally safe thing, so more testing would definitely make me feel better about it.

Comment 31 Jesse Keating 2010-02-24 19:04:38 UTC
I've pulled mysql-5.1.44-2.fc13 into my side repo for the RC3 compose.

Comment 32 Tom Lane 2010-02-24 19:26:34 UTC
[ shrug... ]  Since apparently this will be in rc3 regardless of my concerns about stability, I might as well push it stable instead of having it go in through a back door.

Comment 33 Rex Dieter 2010-02-24 19:36:16 UTC
Do you have a better suggestion wrt rc3?

1.  leave in 4.1.43 and keep the breakage outlined here
2.  patch 4.1.43 instead
3.  revert to 4.1.42
4.  ??

Comment 34 Tom Lane 2010-02-24 19:50:54 UTC
What I asked for was more people to test the package while it was in testing, like say more than one of the half dozen people subscribed to this bug report.  Doesn't seem that that's going to happen in any timely fashion, so I marked it stable.

Comment 35 Rex Dieter 2010-02-24 20:03:53 UTC
If it makes you feel better, there were several other confirmations on irc (but I agree that getting the explicit bodhi +1's would've been nicer).

Comment 36 Adam Williamson 2010-02-24 20:12:52 UTC
given the amount of confirmations mentioned by rex, and since this is blocking the alpha, let's close it. please re-open if there turn out to be problems.

if you want to confirm this you can fake up an alpha pre-rc3 KDE live build by using the KDE desktop .ks along with jesse's side repo, at http://alt.fedoraproject.org/pub/alt/stage/bleed/ . I'm doing this myself for the desktop spin to do some testing on that.

Comment 37 Fedora Update System 2010-02-25 12:49:37 UTC
mysql-5.1.44-2.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 38 Davi Arnaut 2010-02-26 16:21:00 UTC
A patch has been committed to mysql that hopefully addresses this problem. Testing is appreciated.

Tom Lane: We use distributed revision control, a patch associated with a bug report might not be the merged patch due to code differences when merging between trees. To retrieve the exact path, use bzr to branch from launchpad and extract the exact revision (*).

http://forge.mysql.com/wiki/Bazaar

Comment 39 Rex Dieter 2010-02-26 16:34:55 UTC
I'll try testing that out, provide feedback upstream.

Comment 40 Rex Dieter 2010-02-26 18:47:30 UTC
upstream fix appears good, on initial testing.

For posterity, I'll attach the patch I used

Comment 41 Rex Dieter 2010-02-26 19:15:58 UTC
Created attachment 396644 [details]
upstream patch for charset issue

replaces existing mysql-chartset-bug.patch

Comment 42 Rex Dieter 2010-02-27 14:41:28 UTC
*** Bug 568844 has been marked as a duplicate of this bug. ***

Comment 43 Fedora Update System 2010-03-09 03:18:37 UTC
mysql-5.1.44-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 44 Fedora Update System 2010-03-10 06:45:17 UTC
mysql-5.1.44-1.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.