Ampache

Pour l'Amour de la Musique

introduction

You are not logged in.

Announcement

- Forums Updated 12/27/2008 -

Please read the Rules before posting. Also please always update to the latest stable release before submitting a bug report. If you are using a development release please update to the latest SVN.

Useful Links

#1 2008-05-15 11:28:23

QkEterror
Closet Fan
Registered: 2008-05-15
Posts: 7
Reputation :   

Music not streaming

I have ampache stable (3.4 I believe) running on a Gentoo Linux system (Apache 2.2.8, PHP 5.2.6 and MySQL 5.0.54) that is directly connected to the internet. The web interface seems to work (The songs get cataloged, I can add users, all functions work). It's just impossible to stream the music.

The errors I find in the log are:

Code:

2008-05-15 18:23:54 { username } ( stream ) - Error: No Songs Passed on m3u stream
2008-05-15 18:32:13 { username } ( stream ) - Error: No Songs Passed on  stream
2008-05-15 18:32:38 { username } ( stream ) - Error: No Songs Passed on xspf_player stream
2008-05-15 18:33:57 { username } ( stream ) - Error: No Songs Passed on xspf_player stream
2008-05-15 18:34:28 { username } ( stream ) - Error: No Songs Passed on xspf_player stream

Does anyone have an idea what's wrong?

Offline

 

#2 2008-05-15 12:12:51

vollmerk
Lead Developer
From: Corvallis, OR
Registered: 2004-09-25
Posts: 3091
Ampache Version: Newer then SVN
MySQL Version: 5.x
PHP Version: 5.2.x
Reputation :   38 
Website

Re: Music not streaming

Are you adding things to your active playlist, and please make sure you're running the stable release (pre stable there were some issues like this in specific configurations)

Offline

 

#3 2008-05-15 12:19:17

QkEterror
Closet Fan
Registered: 2008-05-15
Posts: 7
Reputation :   

Re: Music not streaming

Yes. For instance if I click on random album on the left, the playlist on right gets filled with songs, but if I click play (icon with the orange arcs) there, nothing happens. Well, something does happen. According to firebug this file is loaded:

Code:

<?xml version="1.0" encoding="utf-8" ?>

<root>

    <content div="rfc3514"><![CDATA[<script type="text/javascript">reload_util('http://website/stream.php?action=basket&playlist_method=');</script>]]></content>

</root>

But no music...

Offline

 

#4 2008-05-15 13:00:31

vollmerk
Lead Developer
From: Corvallis, OR
Registered: 2004-09-25
Posts: 3091
Ampache Version: Newer then SVN
MySQL Version: 5.x
PHP Version: 5.2.x
Reputation :   38 
Website

Re: Music not streaming

What play method are you using, and what browser? It sounds like your browser is blocking something

Offline

 

#5 2008-05-16 01:41:31

QkEterror
Closet Fan
Registered: 2008-05-15
Posts: 7
Reputation :   

Re: Music not streaming

Tried both the flash player method and the stream method. The browser is firefox 3 pre and i've got the popups enabled for my domain. The songs I try to play are mp3. Are you sure it's my browser. I tried it with internet explorer 6 (under ubuntu) and this also didn't work. The strange thing is that the 3.3 version worked perfectly.

Offline

 

#6 2008-05-16 16:04:00

vollmerk
Lead Developer
From: Corvallis, OR
Registered: 2004-09-25
Posts: 3091
Ampache Version: Newer then SVN
MySQL Version: 5.x
PHP Version: 5.2.x
Reputation :   38 
Website

Re: Music not streaming

It sounds like either your database is damaged, you are blocking javascript refreshes or you failed to correctly overwrite all files when you updated. The 3.4 stream creation method is completely different and requires javascript.

Offline

 

#7 2008-05-17 02:03:51

QkEterror
Closet Fan
Registered: 2008-05-15
Posts: 7
Reputation :   

Re: Music not streaming

I completely reinstalled ampache: files deleted, downloaded and extracted stable tar.gz, deleted database tables, run a new install and cataloged the mp3's on my computer, but the problem still exists. Also on windows IE6.

Is there a possibility to get more verbose logging or is level 5 the most verbose one?

Offline

 

#8 2008-05-17 08:07:40

vollmerk
Lead Developer
From: Corvallis, OR
Registered: 2004-09-25
Posts: 3091
Ampache Version: Newer then SVN
MySQL Version: 5.x
PHP Version: 5.2.x
Reputation :   38 
Website

Re: Music not streaming

level 6 will give you the queries that are being run, however I think the important thing is are you ever being prompted to open/download a m3u? If so is it just empty. If you are not being prompted to download a m3u then you've got a javascript issue Also do items actually get saved in your playlist on the right? There really isn'tmuch to playing, the m3u gets generated or not....

Offline

 

#9 2008-05-19 05:17:33

QkEterror
Closet Fan
Registered: 2008-05-15
Posts: 7
Reputation :   

Re: Music not streaming

Queries probably aren't very useful indeed. I'm not asked to download the m3u, so it's probably a javascript issue then. But the strange thing is that I tested it on multiple browsers and if I test with firebug I don't get an error. I don't know if the items are saved. They are displayed if that's what you mean. Is it possible the wrong MIME type is given or something? Furthermore see PM.

Offline

 

#10 2008-05-21 01:03:31

QkEterror
Closet Fan
Registered: 2008-05-15
Posts: 7
Reputation :   

Re: Music not streaming

I can't find anything wrong with the database, but I put a level 6 debug on and this is what came out (among with a lot of other stuff)

Code:

2008-05-19 17:34:26 {  } ( Query ) - UPDATE `session` SET `value`='userdata|a:4:{s:8:\"username\";s:9:\"qketerror\";s:2:\"id\";s:1:\"1\";s:4:\"type\";s:5:\"mysql\";s:7:\"success\";b:1;}state|a:1:{s:11:\"sidebar_tab\";s:4:\"home\";}iframe|a:0:{}', `expire`='1211214866' WHERE `id`='1b747c1d9a849d57233d99687ca5c550aa9c68e7' 
2008-05-19 17:34:26 {  } ( SESSION ) - Writing to 1b747c1d9a849d57233d99687ca5c550aa9c68e7 with expire 1211214866 DBError:

The strange thing is that there is no explanation after DBError. Furthermore, if I enter the above query directly in mysql it doesn't give an error.

Update: I notice that every minute (when ampache refreshes probably) the complete tmp_playlist and tmp_playlist_data tables gets emptied.

Another update:
When the Play button is clicked an awful lot of delete queries is run

Code:

2008-05-21 12:31:41 { qketerror } ( Query ) - DELETE FROM `tmp_playlist` WHERE `session`='6157746a2a848b57219a039b88699b983f99b149' AND `id` != '378' 
2008-05-21 12:31:42 { qketerror } ( Query ) - DELETE FROM `tmp_playlist` WHERE `session`='6157746a2a848b57219a039b88699b983f99b149' AND `id` != '379'
2008-05-21 12:31:42 { qketerror } ( Query ) - DELETE FROM `tmp_playlist` WHERE `session`='6157746a2a848b57219a039b88699b983f99b149' AND `id` != '380'

where the playlist that I wanted to play is 377, so that's why it's deleted. This also happens with the refreshes by the way.

Last edited by QkEterror (2008-05-21 03:43:20)

Offline

 

#11 2008-05-21 08:45:30

vollmerk
Lead Developer
From: Corvallis, OR
Registered: 2004-09-25
Posts: 3091
Ampache Version: Newer then SVN
MySQL Version: 5.x
PHP Version: 5.2.x
Reputation :   38 
Website

Re: Music not streaming

That makes me think that your session tables aren't inserting data correctly basic operations is

get interface session
add to tmp_playlist (assoicated with current interface session)
gc dead tmp_playlisit entries
[HIT PLAY]
add stream session
send m3u

one of those is breaking on your install. Again I can't reproduce any of these problems, and nobody else has either so this is a specific db issue with your configuration

Offline

 

#12 2008-05-22 04:22:37

QkEterror
Closet Fan
Registered: 2008-05-15
Posts: 7
Reputation :   

Re: Music not streaming

I'm just going to play around with the database than. Post it here when I succeed. Thank you for your time so far!

Offline

 

#13 2008-05-24 09:48:43

tweaky
Closet Fan
Registered: 2007-12-30
Posts: 8
Reputation :   

Re: Music not streaming

I did a default installation of stable 3.4 and have the same issue.  Both ie7 and FF.  When I click on the "Play" in the playlist it does not initiate the download to start the stream.  If I trash the database and use 3.4 beta 2 or 3 it works properly (default installations on all 3)

Offline

 

#14 2008-05-24 12:29:02

vollmerk
Lead Developer
From: Corvallis, OR
Registered: 2004-09-25
Posts: 3091
Ampache Version: Newer then SVN
MySQL Version: 5.x
PHP Version: 5.2.x
Reputation :   38 
Website

Re: Music not streaming

There is almost no difference and no functional difference between beta 3 and stable for having it create the m3u. I don't know what to tell you

Offline

 

#15 2008-06-05 09:53:12

podo
Member
Registered: 2008-06-05
Posts: 4
Reputation :   

Re: Music not streaming

Hi all,
I have the same issue. I have found out, that if the auth is set to mysql, everything seems to be working, but if switched to http, the stream is not working...

Offline

 

#16 2008-06-06 09:13:30

vollmerk
Lead Developer
From: Corvallis, OR
Registered: 2004-09-25
Posts: 3091
Ampache Version: Newer then SVN
MySQL Version: 5.x
PHP Version: 5.2.x
Reputation :   38 
Website

Re: Music not streaming

Thanks saw the bug report, I'll check http auth this weekend

Offline

 

#17 2008-06-10 11:09:54

podo
Member
Registered: 2008-06-05
Posts: 4
Reputation :   

Re: Music not streaming

OK, thanks...

Offline

 

#18 2008-06-30 11:43:42

podo
Member
Registered: 2008-06-05
Posts: 4
Reputation :   

Re: Music not streaming

Hi there,
have you had any chance to look at that issue...?
Thanks,
Podo

Offline

 

#19 2008-06-30 12:29:03

vollmerk
Lead Developer
From: Corvallis, OR
Registered: 2004-09-25
Posts: 3091
Ampache Version: Newer then SVN
MySQL Version: 5.x
PHP Version: 5.2.x
Reputation :   38 
Website

Re: Music not streaming

nope been gone

Offline

 

#20 2008-10-16 11:53:55

podo
Member
Registered: 2008-06-05
Posts: 4
Reputation :   

Re: Music not streaming

Hi Karl,
how is France...? :)
Still no progress on that issue ?

Regards,
Podo

Offline

 

#21 2008-10-16 22:52:37

vollmerk
Lead Developer
From: Corvallis, OR
Registered: 2004-09-25
Posts: 3091
Ampache Version: Newer then SVN
MySQL Version: 5.x
PHP Version: 5.2.x
Reputation :   38 
Website

Re: Music not streaming

France is good except for the lack of internet, which has made doing anything rather hard

Offline

 

Board footer

Powered by PunBB and MyBestBB

range