Bug 358 - Amarok cannot build a collection of local music
Summary: Amarok cannot build a collection of local music
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: John Balcaen
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-13 13:26 CET by Donald
Modified: 2011-03-24 10:42 CET (History)
5 users (show)

See Also:
Source RPM: amarok-2.4.0-1.mga1.src.rpm mysql-5.5.9-2.mga1.src.rpm
CVE:
Status comment:


Attachments

Description Donald 2011-03-13 13:26:16 CET
Description of problem: When Amarok builds the collection it finishes but there is no music listed under local collection.

Seems to be an issue with mysql-embedded and current Amarok


Version-Release number of selected component (if applicable): See SRPMS


How reproducible: Everytime


Steps to Reproduce:
1.Build a local collection in Amarok
2.
3.


Reproducible: 

Steps to Reproduce:
Comment 1 Donald 2011-03-13 13:31:19 CET
Confirmed by mikala on i586 and x86_64.
Comment 2 John Balcaen 2011-03-13 14:53:09 CET
In fact i just noticed it that it should be fixed with a patch from upstream.
Could you test with the amarok-2.4.0-2.mga1

CC: (none) => balcaen.john
Source RPM: mysql-5.5.9 and amarok-2.4.0 => amarok-2.4.0-1.mga1.src.rpm mysql-5.5.9-2.mga1.src.rpm

Comment 3 Lucien XU 2011-03-13 21:52:10 CET
Still here with 2.4.0-2

CC: (none) => sfietkonstantin

Comment 4 John Balcaen 2011-03-13 21:59:59 CET
Could you drop amarok config files ?
~/.kde4/share/apps/amarok & ~/.kde4/share/config/amarok*

& try again ?
Also could you eventually try amarok in debug mode ( amarok --debug)
& past the information related to sql ?

Regards.
Comment 5 Lucien XU 2011-03-13 22:04:54 CET
I have drop configs and apps data (1st thing I have done)

With debug I have this :
amarok:     [ERROR__] [MySqlStorage] Tried to perform query on uninitialized MySQL 
amarok:     [ERROR__] [MySqlStorage] Tried to perform escape() on uninitialized MySQL 

(I'm going to check qt mysql sql plugin ...)
Comment 6 Lucien XU 2011-03-13 22:29:06 CET
My qt MSQL database plugin is installed ... Everything seems to be ok
Comment 7 John Balcaen 2011-03-14 00:35:02 CET
on the first start you can get this info, 
on the second one you should get (i hope) something like :
amarok:         BEGIN: void CollectionManager::loadServices(const KService::List&) 
amarok:           [CollectionManager] Initialising "mysqle-collection" 
amarok:           defaultsFile "/home/mikala/.kde4/share/apps/amarok/my.cnf" 
amarok:           [MySqlStorage] Connected to MySQL server 5.5.9 
amarok:           Connected to MySQL server 5.5.9 
amarok:           [MySqlStorage] Initialized thread, count== 1 

Also could you add more info on the error ?
does it missing a table or something like that ?
Comment 8 Lucien XU 2011-03-14 00:41:29 CET
Here it is : 

BEGIN: void CollectionManager::loadServices(const KService::List&) 
amarok:           [CollectionManager] Initialising "mysqle-collection" 
amarok:           defaultsFile "/home/sk/.kde4/share/apps/amarok/my.cnf" 
amarok:           [ERROR__] Could not connect to mysql! 
amarok:           [ERROR__] [MySqlStorage] "GREPME MySQLe query failed! (2002) Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) on na" 
amarok:           [MySqlStorage] Initialized thread, count== 1 
amarok:           BEGIN: bool DatabaseUpdater::update() 
amarok:             [ERROR__] [MySqlStorage] Tried to perform escape() on uninitialized MySQL 
amarok:             [ERROR__] [MySqlStorage] Tried to perform query on uninitialized MySQL 
amarok:             Database version:  0 
amarok:             BEGIN: void DatabaseUpdater::createTables() const 

It cannot connect to the mysql base !
Comment 9 John Balcaen 2011-03-14 00:51:11 CET
There's something wrong in your config :
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

it's trying to connect to a local mysql server instead of using mysql embedded.
Could you check your amarok configuration (be sure you're not using an external database ) ?
Comment 10 John Balcaen 2011-03-14 01:50:08 CET
Hum... i can reproduce in fact.
Seems like my mysqld was also running...
Could try to install & run mysqld, i guess mysqle is going to work now ... :/
Comment 11 Donald 2011-03-14 08:16:57 CET
I have the same errors, if I try mysql by executing "mysql" I get:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

This is with a clean amarok.

What package contains mysqld?
Comment 12 Donald 2011-03-14 08:23:14 CET
Got it working, stopping ans starting mysqld worked.

/etc/rc.d/init.d/mysqld stop
/etc/rc.d/init.d/mysqld start

Delete the conf files for amarok then rebuild, amarok did have to be restarted to get this to work.

I guess something needs to be done to the mysql package.
Thierry Vignaud 2011-03-15 12:12:32 CET

CC: (none) => thierry.vignaud
Assignee: bugsquad => balcaen.john

Comment 13 Peter Schwanemann 2011-03-18 14:42:29 CET
Same problem here. x86_64 (just to push this a bit forward :))

CC: (none) => Nasenbaer

Comment 14 John Balcaen 2011-03-23 01:46:04 CET
Could you try amarok-2.4.0.90-1.mga1 i just pushed when it's available ?
Mysql-e is now working here :)
Comment 15 Peter Schwanemann 2011-03-24 08:57:54 CET
Works for me :)
Thanks for the fix!
Comment 16 D Morgan 2011-03-24 09:28:52 CET
thanks for this good news.

Status: NEW => RESOLVED
CC: (none) => dmorganec
Resolution: (none) => FIXED

Comment 17 Donald 2011-03-24 10:42:22 CET
Fixed here as well.

Nice work.

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