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 

setting mount for relay server
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
maddy



Joined: 03 Oct 2008
Posts: 17

PostPosted: Fri Oct 03, 2008 3:52 am    Post subject: setting mount for relay server Reply with quote

I'm relying from a master shoutcast to my icecast server, relaying is working fine but I want to change the default mount for it to customized.
I want to customize the mount-name from /stream.nsv to my-radio and http://myserver:port/stream.nsv to http://myserver:port/radio.mp3 and do not want to show Current Listeners and Listeners Peak.
Please note that I have not defined any mount.
Thanks
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 Oct 03, 2008 12:34 pm    Post subject: Reply with quote

use the local-mount setting in <relay> to use a different mountpoint locally and if you don't want to show the listener and peak counts on the web pages then edit the status.xsl file and remove/comment those parts.

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



Joined: 03 Oct 2008
Posts: 17

PostPosted: Fri Oct 03, 2008 3:34 pm    Post subject: Reply with quote

thanks appreciated.
I'm having another issue with relay it disconnects me after some time and then i have to reconnect. The source (master relay) do not get disconnected and is there any option that automatically reconnect a listener when stream is back again otherwise when they are disconnected it keep playing old songs.
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 Oct 03, 2008 4:06 pm    Post subject: Reply with quote

If it disconnects then there has to be a reason, a timeout of end of stream. icecast will retry a configured relay every <master-update-interval> seconds.

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



Joined: 03 Oct 2008
Posts: 17

PostPosted: Fri Oct 03, 2008 4:29 pm    Post subject: Reply with quote

thanks for your quick reply, the master shoutcast is located on same box and i m using localhost to connect to it, I don't understand the reason of its time out. Does this <master-update-interval> also works for shoutcast relay?
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 Oct 03, 2008 4:46 pm    Post subject: Reply with quote

yes. If you are getting s source timeout then icecast is not receiving any data from shoutcast (typically 10 seconds).

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



Joined: 03 Oct 2008
Posts: 17

PostPosted: Fri Oct 03, 2008 4:58 pm    Post subject: Reply with quote

yes you were right.

do i need to change something on my shoutcast server?

Code:
MetaInterval=8192
or
AutoDumpSourceTime=30

Quote:
[2008-10-03 23:28:16] DBUG stats/modify_node_event update node total_bytes_sent (3635657)
[2008-10-03 23:29:16] DBUG source/get_next_buffer last 1223072891, timeout 10, now 1223072955
[2008-10-03 23:29:16] WARN source/get_next_buffer Disconnecting source due to socket timeout
[2008-10-03 23:29:16] INFO source/source_shutdown Source "/stream.mp3" exiting
[2008-10-03 23:29:16] DBUG source/source_clear_source clearing source "/stream.mp3"
[2008-10-03 23:29:16] DBUG stats/modify_node_event update node total_bytes_read (4211540)
[2008-10-03 23:29:16] DBUG stats/modify_node_event update node total_bytes_sent (3635657)
[2008-10-03 23:29:16] DBUG stats/process_source_event delete source node /stream.mp3
[2008-10-03 23:29:16] DBUG stats/modify_node_event update node clients (1)
[2008-10-03 23:29:16] DBUG stats/modify_node_event update node clients (0)
[2008-10-03 23:29:16] DBUG stats/modify_node_event update node sources (0)
[2008-10-03 23:29:17] DBUG slave/_slave_thread rescanning relay lists
[2008-10-03 23:29:17] DBUG slave/check_relay_stream waiting for relay thread for "/stream.mp3"
[2008-10-03 23:29:31] DBUG stats/modify_node_event update node clients (1)
[2008-10-03 23:29:31] DBUG stats/modify_node_event update node connections (30)
[2008-10-03 23:29:31] INFO fserve/fserve_client_create checking for file /stream.mp3 (/srv/www/$
[2008-10-03 23:29:31] WARN fserve/fserve_client_create req for file "/srv/www/htdocs/radio/web/$
[2008-10-03 23:29:31] DBUG fserve/fserve_add_client Adding client to file serving engine
[2008-10-03 23:29:31] DBUG stats/modify_node_event update node client_connections (30)
[2008-10-03 23:29:31] DBUG stats/modify_node_event update node clients (0)
Back to top
View user's profile Send private message
maddy



Joined: 03 Oct 2008
Posts: 17

PostPosted: Fri Oct 03, 2008 5:41 pm    Post subject: Reply with quote

Quote:
[2008-10-04 00:09:41] DBUG source/source_update_settings source timeout to 10
[2008-10-04 00:09:41] DBUG source/source_update_settings fallback_when_full to 0
[2008-10-04 00:09:41] DBUG connection/connection_complete_source source is ready to start
[2008-10-04 00:09:41] DBUG source/source_init Source creation complete
[2008-10-04 00:09:41] DBUG stats/modify_node_event update node clients (1)
[2008-10-04 00:09:41] DBUG stats/modify_node_event update node sources (1)
[2008-10-04 00:09:41] DBUG stats/process_source_event new source stat /stream.mp3
[2008-10-04 00:09:41] DBUG stats/process_source_event new node public (1)
[2008-10-04 00:09:41] DBUG stats/process_source_event new node server_name (Yoda`On`Doda)
[2008-10-04 00:09:41] DBUG stats/process_source_event new node server_description (Unspecified $
[2008-10-04 00:09:41] DBUG stats/process_source_event new node genre (various)
[2008-10-04 00:09:41] DBUG stats/process_source_event new node bitrate (40)
[2008-10-04 00:09:41] DBUG stats/process_source_event new node server_type (audio/mpeg)
[2008-10-04 00:09:41] DBUG stats/process_source_event new node max_listeners (unlimited)
[2008-10-04 00:09:41] DBUG stats/modify_node_event update node source_relay_connections (3)
[2008-10-04 00:09:41] DBUG stats/process_source_event new node source_ip (localhost)
[2008-10-04 00:09:41] DBUG stats/process_source_event new node listenurl (http://localhost:5864$
[2008-10-04 00:09:41] DBUG stats/modify_node_event update node source_total_connections (3)
[2008-10-04 00:09:41] DBUG stats/process_source_event new node slow_listeners (0)
[2008-10-04 00:09:41] DBUG stats/process_source_event new node listeners (0)
[2008-10-04 00:09:41] DBUG stats/process_source_event new node listener_peak (1)
[2008-10-04 00:09:41] DBUG stats/process_source_event new node stream_start (Sat, 04 Oct 2008 0$
[2008-10-04 00:09:41] DBUG stats/process_source_event new node total_bytes_read (0)
[2008-10-04 00:09:41] DBUG stats/process_source_event new node total_bytes_sent (0)
[2008-10-04 00:09:41] DBUG format-mp3/mp3_get_filter_meta shoutcast metadata StreamTitle='Rihan$
[2008-10-04 00:09:42] DBUG stats/process_source_event new node title (Rihanna - Umbrella)
[2008-10-04 00:09:46] DBUG stats/modify_node_event update node total_bytes_read (277996)
[2008-10-04 00:09:46] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2008-10-04 00:09:51] DBUG stats/modify_node_event update node total_bytes_read (303800)
[2008-10-04 00:09:51] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2008-10-04 00:09:56] DBUG stats/modify_node_event update node total_bytes_read (328025)
[2008-10-04 00:09:56] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2008-10-04 00:09:57] DBUG auth/add_client_to_source max on /stream.mp3 is -1 (cur 0)
[2008-10-04 00:09:57] DBUG auth/add_client_to_source Added client to /stream.mp3
[2008-10-04 00:09:57] DBUG auth/add_authenticated_client client authenticated, passed to source
[2008-10-04 00:09:58] DBUG stats/modify_node_event update node clients (2)
[2008-10-04 00:09:58] DBUG stats/modify_node_event update node connections (16)
[2008-10-04 00:09:58] DBUG stats/modify_node_event update node client_connections (16)
[2008-10-04 00:09:58] DBUG stats/modify_node_event update node listener_connections (5)
[2008-10-04 00:09:58] DBUG source/source_main Client added
[2008-10-04 00:09:58] INFO source/source_main listener count on /stream.mp3 now 1
[2008-10-04 00:09:58] DBUG format/format_check_http_buffer processing pending client headers
[2008-10-04 00:09:58] DBUG stats/modify_node_event update node listeners (1)
[2008-10-04 00:09:59] DBUG client/client_send_bytes Client connection died
[2008-10-04 00:09:59] DBUG source/source_main Client removed
[2008-10-04 00:09:59] INFO source/source_main listener count on /stream.mp3 now 0
[2008-10-04 00:09:59] DBUG stats/modify_node_event update node clients (1)
[2008-10-04 00:09:59] DBUG stats/modify_node_event update node listeners (0)
[2008-10-04 00:09:59] DBUG auth/add_client_to_source max on /stream.mp3 is -1 (cur 0)
[2008-10-04 00:09:59] DBUG auth/add_client_to_source Added client to /stream.mp3
[2008-10-04 00:09:59] DBUG auth/add_authenticated_client client authenticated, passed to source
[2008-10-04 00:09:59] DBUG stats/modify_node_event update node clients (2)
[2008-10-04 00:09:59] DBUG stats/modify_node_event update node connections (17)
[2008-10-04 00:09:59] DBUG stats/modify_node_event update node client_connections (17)
[2008-10-04 00:09:59] DBUG stats/modify_node_event update node listener_connections (6)
[2008-10-04 00:09:59] DBUG source/source_main Client added
[2008-10-04 00:09:59] INFO source/source_main listener count on /stream.mp3 now 1
[2008-10-04 00:09:59] DBUG format/format_check_http_buffer processing pending client headers
[2008-10-04 00:09:59] DBUG stats/modify_node_event update node listeners (1)
[2008-10-04 00:10:01] DBUG stats/modify_node_event update node total_bytes_read (353492)
[2008-10-04 00:10:01] DBUG stats/modify_node_event update node total_bytes_sent (29104)
[2008-10-04 00:10:02] INFO fserve/fserve_client_create checking for file /stream.smi (/srv/www/xxx/xxx//stream.smi)
[2008-10-04 00:10:02] WARN fserve/fserve_client_create req for file "/srv/www/xxx/stream.smi" No such file or directory)

Please note that i m using Icecast 2.3.1
SUSE linux and master server (shoutcast)
I changed my <relay> to below code:
<relay>
<server>localhost</server>
<port>xxxx</port>
<mount>/</mount>
<local-mount>/stream.mp3</local-mount>
<on-demand>0</on-demand>
<relay-shoutcast-metadata>1</relay-shoutcast-metadata>
<master-update-interval>10</master-update-interval>
</relay>
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 Oct 03, 2008 6:39 pm    Post subject: Reply with quote

firstly 2.3.2 is the current release not 2.3.1. secondly the master-update-interval is not a relay setting but a global one (there should be no description or example that lists it in a relay). Lastly the timeout line shows something odd which I'm not sure what to make of

[2008-10-03 23:29:16] DBUG source/get_next_buffer last 1223072891, timeout 10, now 1223072955

That is not 10 seconds, more like 65 seconds which is very odd as I haven't heard of anyone suffering for time lapses like that before. If the clock was being changed then this could show this sort of behavior, it could also affect other time critical applications you may be running.

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



Joined: 03 Oct 2008
Posts: 17

PostPosted: Fri Oct 03, 2008 9:02 pm    Post subject: Reply with quote

i executed"
Code:
hwclock --show ; date ; date -u

and got this ...
Quote:
Fri Oct 3 21:59:31 2008 -0.919157 seconds
Fri Oct 3 22:00:26 BST 2008
Fri Oct 3 21:00:26 UTC 2008


can you please guide me how to fix this problem and what could be the cause?
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 Oct 03, 2008 9:51 pm    Post subject: Reply with quote

personally I prefer keeping the hwclock as UTC. Do you have any utils that are changing the time like ntp. Maybe more of the log is required to check the timestamps leading up to the timeout. Have you updated to 2.3.2 yet?

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



Joined: 03 Oct 2008
Posts: 17

PostPosted: Sat Oct 04, 2008 12:02 pm    Post subject: Reply with quote

yea i updated it.
Quote:
icecast -v
Icecast 2.3.2
Back to top
View user's profile Send private message
maddy



Joined: 03 Oct 2008
Posts: 17

PostPosted: Sun Oct 05, 2008 10:40 am    Post subject: Reply with quote

I updated the icecast and restarted it and got this error I dont know where did i messed up
Quote:
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

The download of the specified resource has failed. Error processing resource 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict...
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sun Oct 05, 2008 1:32 pm    Post subject: Reply with quote

that would indicate that you are using an incorrectly modified xsl page in webroot/adminroot. Check the error log for specifics.

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



Joined: 03 Oct 2008
Posts: 17

PostPosted: Sun Oct 05, 2008 2:57 pm    Post subject: Reply with quote

now this xsl is nt being execute, i changed the perm lately, i guess it has something to do with that
Quote:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html (View Source for full doctype...)>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Icecast Streaming Media Server</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
- <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
<img align="left" src="/icecast.png" />
- <h2>
<center>Icecast2 Status</center>
</h2>
<br />
- <div class="roundcont">
- <div class="roundtop">
<img src="/corner_topleft.jpg" class="corner" style="display: none" />
</div>
- <table border="0" width="100%" id="table1" cellspacing="0" cellpadding="4">
- <tr>
- <td bgcolor="#656565" rowspan="1" colspan="1">
<a class="nav" href="admin/" shape="rect">Administration</a>
|
<a class="nav" href="status.xsl" shape="rect">Server Status</a>
|
<a class="nav" href="server_version.xsl" shape="rect">Version</a>
|
</td>
</tr>
</table>
- <div class="roundbottom">
<img src="/corner_bottomleft.jpg" class="corner" style="display: none" />
</div>
</div>
<br />
<br />

- <div class="poster">
Support icecast development at
<a class="nav" target="_blank" href="http://www.icecast.org" shape="rect">www.icecast.org</a>
</div>
</body>
</html>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
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