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

[Solved] Amarok not playing ampache library songs (but local play okay)

Tags: None
(comma "," separated)
hysterix
Registered Member
Posts
6
Karma
0
hysterix wrote:
My original problem:

Firstly,  I am currently running:
ubuntu 8.10 (fresh install)
Amarok - Version 2.0-SVN-Neon
Ampache - Version 3.5-Alpha 2
2009-02-04 04:24:46 [ampache] (SESSION) -> Error unable to read session from key 052a01b81ccc34f09e90bd9b28f6c68c no data found

Apparently, verion 3.4.x of ampache's xml-api deals with hashing like this:
$time = time();
$key = 'mypassword';
$passphrase = md5($time . $key);

While as version 3.5.x (the version I have) deals with hashing like this:
$time = time();
$key = hash('sha256','mypassword');
$passphrase = hash('sha256',$time . $key);

Is the latest version of amarok still using the older md5 method of dealing with ampache or the newer sha256 method?  From what I can tell from the errors created by ampache, it seems that the hash is wrong.

My new problem:
I will try to play a song, and if it is from my local drive it plays great, but if I am trying to play it from my ampache collection, the binoculars next to the next track button kind of flash for a bit, and the song does not play.  Amarok then moves on to the next song.

My error logging inside ampache is turned on, and it is not displaying any errors.  It seems this new issue is on amaroks side.

Last edited by hysterix on Wed Feb 04, 2009 1:47 pm, edited 1 time in total.
nhn
KDE Developer
Posts
114
Karma
0
OS

Re: Amarok & Ampache Issues

Wed Feb 04, 2009 12:56 pm
This is a know issue. Amarok 2 currently only works with the older authentication scheme. Karl Vollmer, the Ampache lead dev, has been talking about upgrading the Amarok ampache service to support the new scheme as well for a while, but he has never gotten around to it. If you poke him a bit he might take the tie to do it soon! :-)

- Nikolaj
hysterix
Registered Member
Posts
6
Karma
0

Re: Amarok & Ampache Issues

Wed Feb 04, 2009 1:10 pm
Freespirit wrote:This is a know issue. Amarok 2 currently only works with the older authentication scheme. Karl Vollmer, the Ampache lead dev, has been talking about upgrading the Amarok ampache service to support the new scheme as well for a while, but he has never gotten around to it. If you poke him a bit he might take the tie to do it soon! :-)

- Nikolaj


Thanks a lot Nikolaj!  At least I know it is not me misconfiguration the thing then!  I would bother him about it but I'm sure he knows he needs to do it and will get around to it when he can.  Now, I'll bother him perhaps asking too look at the code myself so I could possibly lend a hand...

I installed the earlier version of ampache, and I can now access my ampache database through amarok, but with a problem.

I will try to play a song, and if it is from my local drive it plays great, but if I am trying to play it from my ampache collection, the binoculars next to the next track button kind of flash, and the song does not play.

Any ideas?

Last edited by hysterix on Wed Feb 04, 2009 1:33 pm, edited 1 time in total.
hysterix
Registered Member
Posts
6
Karma
0
Hey everyone, I fixed the problem.  I made sure I had all my xine-lib packages installed.  Here is what I did:
sudo aptitude search libxine*

I then installed:
sudo apt-get install libxine1-gnome
sudo apt-get install libxine1-plugins
sudo apt-get install libxine1-misc-plugins

I restarted amarok and it now plays files feed to it by my ampache server!  Yay!


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]