Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

KH28 ODR Source Problems

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
iunderwood



Joined: 23 Aug 2008
Posts: 114
Location: Leicester, MA

PostPosted: Thu Dec 09, 2010 5:32 pm    Post subject: KH28 ODR Source Problems Reply with quote

On-demand relays are broken in KH28, but in a way that has taken me some time to find.

It appears that the source relay redirects incoming on-demands, which is not going to work too well:

From the Relay:

[2010-12-09 12:08:30] INFO slave/open_relay_connection connecting to operations.powerfrag.fm:2112 for /pf-64k.ogg
[2010-12-09 12:08:30] INFO slave/open_relay_connection redirect received http://sinewave.powerfrag.fm:2112/pf-64k.ogg
[2010-12-09 12:08:30] INFO slave/open_relay_connection connecting to sinewave.powerfrag.fm:2112 for /pf-64k.ogg
[2010-12-09 12:08:34] WARN slave/open_relay_connection Failed to connect to sinewave.powerfrag.fm:2112
_________________
++I;
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Dec 10, 2010 12:37 am    Post subject: Reply with quote

You'll have to explain this error case in a bit more detail. Are you saying that kh28 is sending back a 302 response or that kh28 is getting a 302 response? And what is exactly wrong with those log lines?

It looks like a connection was attempted, to start a relay, it received a 302 response and tried the alternative address which failed.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
iunderwood



Joined: 23 Aug 2008
Posts: 114
Location: Leicester, MA

PostPosted: Fri Dec 10, 2010 4:34 pm    Post subject: Reply with quote

That connection on the ls coming from the relay when a listener attempts to connect. The master is redirecting the relay back to itself.

I'll try to get a tcpdump sometime this weekend so there is more to go on.
_________________
++I;
Back to top
View user's profile Send private message
iunderwood



Joined: 23 Aug 2008
Posts: 114
Location: Leicester, MA

PostPosted: Wed Dec 15, 2010 6:55 pm    Post subject: Reply with quote

I have not met with much success getting a dump on this since I'm running it on a VM with no GUI.

What is happening is that the relay (sinewave) is requesting the stream from the master (operations). Operations then redirects sinewave to itself.

Since my relay is set-up as an on-demand relay with a UN/PW to boot, it shouldn't be referenced back to itself.

Of note here is that on my master, I have max-listeners set to 0, so that clients who do connect can get referred out to any available, configured relay.
_________________
++I;
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Dec 16, 2010 2:27 am    Post subject: Reply with quote

I just tried here with the latest code and it seems to be working as expected. Requests to /admin/streams should not be getting redirecting at all, only direct calls to the stream mountpoint. How have you defined the master details in the slave, <master> or the traditional <master-.....> tags?

karl?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
iunderwood



Joined: 23 Aug 2008
Posts: 114
Location: Leicester, MA

PostPosted: Thu Dec 16, 2010 10:07 pm    Post subject: Reply with quote

I have not tried this with 28.5, but I will later tonight and see if that makes a difference.

I am using the new master tags:

Code:

    <master>
      <server>xx</server>
      <port>xx</port>
      <redirect>true</redirect>
      <username>xx</username>
      <password>pw</password>
      <interval>60</interval>
    </master>

_________________
++I;
Back to top
View user's profile Send private message
iunderwood



Joined: 23 Aug 2008
Posts: 114
Location: Leicester, MA

PostPosted: Tue Dec 21, 2010 2:40 pm    Post subject: Reply with quote

A relay master w/ 28.5 is still redirecting my secondary Icecast to itself:

From the relay:

[2010-12-21 09:32:22] INFO slave/start_relay_stream Starting relayed source at mountpoint "/pf-64k.aacp"
[2010-12-21 09:32:22] INFO slave/open_relay_connection connecting to operations.powerfrag.fm:2112 for /pf-64k.aacp
[2010-12-21 09:32:22] DBUG stats/modify_node_event update "global" banned_IPs (0)
[2010-12-21 09:32:22] DBUG stats/modify_node_event update "global" outgoing_kbitrate (314)
[2010-12-21 09:32:22] INFO slave/open_relay_connection redirect received http://sinewave.powerfrag.fm:2112/pf-64k.aacp
[2010-12-21 09:32:22] INFO slave/open_relay_connection connecting to sinewave.powerfrag.fm:2112 for /pf-64k.aacp

From the Master:

[2010-12-21 14:27:43] INFO slave/redirector_add slave (1) at sinewave.powerfrag.fm:2112 added
[2010-12-21 14:28:43] INFO source/source_add_listener max on /pf-64k.aacp is 0 (cur 0)
[2010-12-21 14:28:43] INFO source/source_add_listener max listener count reached on /pf-64k.aacp
[2010-12-21 14:28:43] INFO slave/redirect_client redirecting listener to slave server at sinewave.powerfrag.fm:2112
[2010-12-21 14:28:43] INFO source/source_add_listener max on /pf-64k.aacp is 0 (cur 0)
[2010-12-21 14:28:43] INFO source/source_add_listener max listener count reached on /pf-64k.aacp
[2010-12-21 14:28:43] INFO slave/redirect_client redirecting listener to slave server at sinewave.powerfrag.fm:2112

The times between the boxes were a bit off.
_________________
++I;
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Dec 27, 2010 3:06 am    Post subject: Reply with quote

should be fixed in the kh28.9.update on my site.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
iunderwood



Joined: 23 Aug 2008
Posts: 114
Location: Leicester, MA

PostPosted: Mon Dec 27, 2010 11:17 pm    Post subject: Reply with quote

This appears to be fixed in 28.9. Thanks, again!
_________________
++I;
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Dec 27, 2010 11:36 pm    Post subject: Reply with quote

Unless something significant comes up, I will probably rename it as kh29 in the next day or so. There is a win32 build up there now as well.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber