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 

Fallback override ONLY works for mounts not files

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



Joined: 07 Apr 2009
Posts: 6

PostPosted: Mon Apr 13, 2009 9:53 pm    Post subject: Fallback override ONLY works for mounts not files Reply with quote

Hi all.. I am finding that I can return from a fallback if the fallback mount is an actual stream source, ie not a file. If I fallback to a file, it will not return to the original stream.

Is this normal?

Thanks

Rob
Back to top
View user's profile Send private message
Benicio



Joined: 02 Sep 2009
Posts: 13

PostPosted: Thu Sep 17, 2009 9:04 am    Post subject: Reply with quote

Yeah mate I have almost the same question.

I'm trying to use the fallback mount - and use a file, that is located in webroot.
My steps was:

1. Place the file 'intro.mp3' in webroot
2. Add to the current config file new lines lines:
Code:
<limits>                                                                                                                           
  <clients>100</clients>                                                                                                           
  <sources>2</sources>                                                                                                             
  <threadpool>5</threadpool>                                                                                                       
  <queue-size>524288</queue-size>                                                                                                   
  <client-timeout>30</client-timeout>                                                                                               
  <header-timeout>15</header-timeout>                                                                                               
  <source-timeout>10</source-timeout>                                                                                               
  <burst-on-connect>1</burst-on-connect>                                                                                           
  <burst-size>65535</burst-size>                                                                                                   
 </limits>
    <hostname>192.168.1.101</hostname>
    <listen-socket>
        <port>8001</port>

Code:
 
    <relay>
       <server>scfire-ntc-aa03.stream.aol.com</server>
       <port>80</port>
       <mount>/stream/1019</mount>
       <local-mount>/country</local-mount>
       <on-demand>1</on-demand>
       <relay-shoutcast-metadata>1</relay-shoutcast-metadata>
     </relay>

    <mount>
       <mount-name>/country</mount-name>
       <fallback-mount>/intro.mp3</fallback-mount>
       <fallback-override>1</fallback-override>
    </mount>

3. Then in winamp add url http://192.168.1.101:8001/country
It's okay the radiostation played ok.
4. Then using the web admin interface I click on 'kill source' at this mount.
5. But my file didn't replace the radioststion stream (exactly I heard for miliseconds the beginning of my 'into.mp3', but then it replaced with radiostation).
Here is my error.log
Code:

[2009-09-16  22:31:14] INFO main/main.c Icecast 2.3.2 server started
[2009-09-16  22:31:14] INFO yp/yp.c YP update thread started
[2009-09-16  22:31:14] INFO connection/connection.c No SSL capability
[2009-09-16  22:31:14] WARN source/source.c unable to open file "./web/classical_1"
[2009-09-16  22:31:14] INFO source/source.c mountpoint /intro.mp3 is reserved
[2009-09-16  22:31:14] WARN stats/stats.c seen non-UTF8 data, probably incorrect metadata (stream_start, Wed, 16 Sep 2009 22:31:14 ?????????? ????? (????))
[2009-09-16  22:31:14] INFO source/source.c listener count on /intro.mp3 now 0
[2009-09-16  22:31:19] INFO slave/slave.c Starting relayed source at mountpoint "/country"
[2009-09-16  22:31:19] INFO slave/slave.c connecting to scfire-ntc-aa03.stream.aol.com:80
[2009-09-16  22:31:20] WARN stats/stats.c seen non-UTF8 data, probably incorrect metadata (stream_start, Wed, 16 Sep 2009 22:31:20 ?????????? ????? (????))
[2009-09-16  22:31:20] INFO source/source.c passing 0 listeners to "/country"
[2009-09-16  22:31:20] INFO source/source.c listener count on /country now 1
[2009-09-16  22:31:31] INFO admin/admin.c Received admin command listclients.xsl on mount "/classical"
[2009-09-16  22:31:38] INFO admin/admin.c Received admin command listclients.xsl on mount "/country"
[2009-09-16  22:31:45] INFO admin/admin.c Received admin command killsource.xsl on mount "/country"
[2009-09-16  22:31:45] INFO source/source.c Source "/country" exiting
[2009-09-16  22:31:45] INFO source/source.c passing 1 listeners to "/intro.mp3"
[2009-09-16  22:31:45] INFO source/source.c listener count on /intro.mp3 now 1
[2009-09-16  22:31:46] INFO slave/slave.c Starting relayed source at mountpoint "/country"
[2009-09-16  22:31:46] INFO slave/slave.c connecting to scfire-ntc-aa03.stream.aol.com:80
[2009-09-16  22:31:47] WARN stats/stats.c seen non-UTF8 data, probably incorrect metadata (stream_start, Wed, 16 Sep 2009 22:31:47 ?????????? ????? (????))
[2009-09-16  22:31:47] INFO source/source.c passing 1 listeners to "/country"
[2009-09-16  22:31:47] INFO source/source.c listener count on /intro.mp3 now 0
[2009-09-16  22:31:47] INFO source/source.c listener count on /country now 1
[2009-09-16  22:32:13] INFO fserve/fserve.c checking for file /style.css (./web/style.css)
[2009-09-16  22:32:13] INFO fserve/fserve.c checking for file /corner_bottomleft.jpg (./web/corner_bottomleft.jpg)
[2009-09-16  22:32:13] INFO fserve/fserve.c checking for file /corner_topleft.jpg (./web/corner_topleft.jpg)
[2009-09-16  22:32:14] INFO fserve/fserve.c checking for file /corner_topright.jpg (./web/corner_topright.jpg)
[2009-09-16  22:32:14] INFO fserve/fserve.c checking for file /corner_bottomright.jpg (./web/corner_bottomright.jpg)
[2009-09-16  22:32:14] INFO fserve/fserve.c checking for file /icecast.png (./web/icecast.png)
[2009-09-16  22:32:14] INFO fserve/fserve.c checking for file /tunein.png (./web/tunein.png)
[2009-09-16  22:32:19] INFO source/source.c listener count on /country now 0
[2009-09-16  22:32:19] INFO source/source.c Source "/country" exiting
[2009-09-16  22:32:19] INFO source/source.c passing 0 listeners to "/intro.mp3"

What am I doing wrong??? Or how can I sumilate the situation: to be sure that my file is playing instead of source, when it crushes.
________
hotels in mexico


Last edited by Benicio on Wed Feb 02, 2011 2:00 am; edited 1 time in total
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 Sep 17, 2009 1:39 pm    Post subject: Reply with quote

The log does show that listeners were moved and then your relay restarted.

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



Joined: 02 Sep 2009
Posts: 13

PostPosted: Sat Sep 19, 2009 3:15 pm    Post subject: Reply with quote

Quote:
The log does show that listeners were moved and then your relay restarted.

Yes I agree I see this line in the log (but in this simulation when I clicked on 'Kill Source' and then after a second my relay was immediately restarted and I couldn't check that my pre-recorded file 'intro.mp3' is played well and repeat until source is restarted) Sad
Code:
[2009-09-16  22:31:45] INFO source/source.c passing 1 listeners to "/intro.mp3"
[2009-09-16  22:31:45] INFO source/source.c listener count on /intro.mp3 now 1
[2009-09-16  22:31:46] INFO slave/slave.c Starting relayed source at mountpoint "/country"
[2009-09-16  22:32:19] INFO source/source.c passing 0 listeners to "/intro.mp3"


But when I try to shut down the interface to Internet from where I connect to remote sources my pre-recorded file doesn't replace the relay and in error log I see the line
Code:
[2009-09-16  22:32:19] INFO source/source.c passing 0 listeners to "/intro.mp3"


What I have wrong in my config??? Or What is wrong in my simulation? Need help.[/code][/quote]
________
vaporizer help


Last edited by Benicio on Wed Feb 02, 2011 2:00 am; edited 1 time in total
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Sep 19, 2009 3:35 pm    Post subject: Reply with quote

That log line is saying there are 0 listeners on the stream being shut down. Maybe increase your log level to get more info?

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



Joined: 02 Sep 2009
Posts: 13

PostPosted: Mon Sep 21, 2009 10:33 am    Post subject: Reply with quote

Thaks for help karl, everything okay now. Fallback mount with pre-recorded file works fine, the problem was in networking.
But I found another problem (maybe it's not, but i'm confused).
My server had 2 Ethernet Interfaces:
1 - for Internet (remote relay) - first_IP
2 - inside for users to listen to the radiostations internally - second_IP
The problem is that when I try to use web admin, I just can use it with URL http://first_IP:8888/admin , but when I try to use URL http://second_IP:8888/admin nothing happens (file not found) and the error.log is
Code:
[2009-09-21  13:15:43] DBUG connection/_handle_get_request alias has made / into /index.htm                                         
[2009-09-21  13:15:43] INFO fserve/fserve_client_create checking for file /index.htm (/home/icecast/web/index.htm)                 
[2009-09-21  13:15:43] DBUG fserve/fserve_add_client Adding client to file serving engine                                           
[2009-09-21  13:15:43] DBUG stats/modify_node_event update node clients (1)                                                         
[2009-09-21  13:15:43] DBUG stats/modify_node_event update node connections (1)                                                     
[2009-09-21  13:15:43] DBUG stats/modify_node_event update node client_connections (1)                                             
[2009-09-21  13:15:43] DBUG stats/modify_node_event update node file_connections (1)                                               
[2009-09-21  13:15:43] DBUG stats/modify_node_event update node clients (0)                                                         
[2009-09-21  13:15:44] DBUG stats/modify_node_event update node total_bytes_read (0)                                               
[2009-09-21  13:15:44] DBUG stats/modify_node_event update node total_bytes_sent (0)                                               
[2009-09-21  13:15:49] DBUG stats/modify_node_event update node total_bytes_read (0)                                               
[2009-09-21  13:15:49] DBUG stats/modify_node_event update node total_bytes_sent (0)                                               
[2009-09-21  13:15:53] INFO fserve/fserve_client_create checking for file /admin (/home/icecast/web/admin)                         
[2009-09-21  13:15:53] WARN fserve/fserve_client_create req for file "/home/icecast/web/admin" No such file or directory           
[2009-09-21  13:15:53] DBUG fserve/fserve_add_client Adding client to file serving engine

And my configuration for server is
Code:
<icecast>                                                                                                                           
 <limits>                                                                                                                           
  <clients>100</clients>                                                                                                           
  <sources>10</sources>                                                                                                             
  <threadpool>5</threadpool>                                                                                                       
  <queue-size>524288</queue-size>                                                                                                   
  <client-timeout>30</client-timeout>                                                                                               
  <header-timeout>15</header-timeout>                                                                                               
  <source-timeout>10</source-timeout>                                                                                               
  <burst-on-connect>1</burst-on-connect>                                                                                           
  <burst-size>65535</burst-size>                                                                                                   
 </limits>
 <hostname>localhost</hostname>                                                                                                     
 <listen-socket>                                                                                                                   
  <port>8888</port>                                                                                                                 
 </listen-socket>                                                                                                                   
 <fileserve>1</fileserve>
 <paths>                                                                                                                           
  <basedir>/home/icecast</basedir>                                                                                                 
  <logdir>/home/icecast/logs</logdir>                                                                                               
  <webroot>/home/icecast/web</webroot>                                                                                             
  <adminroot>/home/icecast/admin</adminroot>                                                                                       
  <pidfile>/home/icecast/logs/icecast.pid</pidfile>                                                                                 
  <alias source="/" dest="/index.htm"/>                                                                                             
 </paths>

Help would be appreciated like usual Razz
________
buy vaporgenie


Last edited by Benicio on Wed Feb 02, 2011 2:00 am; edited 1 time in total
Back to top
View user's profile Send private message
renders



Joined: 07 Apr 2009
Posts: 6

PostPosted: Mon Sep 21, 2009 1:04 pm    Post subject: Reply with quote

Question is, did your fallback to recorded file return to the original mount after it was restarted?
Back to top
View user's profile Send private message
Benicio



Joined: 02 Sep 2009
Posts: 13

PostPosted: Mon Sep 21, 2009 1:13 pm    Post subject: Reply with quote

renders wrote:
Question is, did your fallback to recorded file return to the original mount after it was restarted?

Yes, when I return the link to the remote relay, my relay stream did replace my pre-recorded file, everything is okay and btw file was played cyclically

P.S. I still need help on my above question about web admin access
________
Honda N engine history


Last edited by Benicio on Wed Feb 02, 2011 2:00 am; edited 1 time in total
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 Sep 21, 2009 2:01 pm    Post subject: Reply with quote

odd log details, clients or client_connections do not increase just before the request is processed. not sure why 2.3.2 would be treating /admin as a webroot request as that is a hardcoded alias to stats.xsl

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