View previous topic :: View next topic |
Author |
Message |
Cyborg994
Joined: 18 Sep 2009 Posts: 4
|
Posted: Sat Sep 24, 2011 8:56 pm Post subject: Fallback-mount to local file issue with kh build (29-30) |
|
|
I'm trying to change from stock icecast to build kh30. My setup is using a static mp3 file as a fallback file for all streams, for when the source goes down.
There seems to be a difference between the fallback file handling between stock icecast and kh build. In kh the fallback file is never called when a stream is not available.
OS is ubuntu 10.04 LTS 64-bit.
I built a short config file to see the difference in behavior.
Config :
Code: |
<!-- This config file contains a minimal set of configurable parameters,
and mostly just contains the things you need to change. We created
this for those who got scared away from the rather large and heavily
commented icecast.xml.dist file. -->
<icecast>
<limits>
<sources>2</sources>
</limits>
<authentication>
<source-password>hackme</source-password>
<relay-password>hackme</relay-password>
<admin-user>admin</admin-user>
<admin-password>hackme</admin-password>
</authentication>
<hostname>192.168.2.91</hostname>
<listen-socket>
<port>8000</port>
</listen-socket>
<mount>
<mount-name>/test128.mp3</mount-name>
<username>source</username>
<password>whatever</password>
<max-listeners>100</max-listeners>
<stream-name>Test stream 64 kbit</stream-name>
<stream-description>test 128</stream-description>
<stream-url>http://some.place.com</stream-url>
<genre>classical</genre>
<fallback-mount>/128silence.mp3</fallback-mount>
<fallback-override>0</fallback-override>
<fallback-when-full>0</fallback-when-full>
</mount>
<fileserve>1</fileserve>
<paths>
<basedir>/usr/local/share/icecast</basedir>
<logdir>/usr/local/var/log/icecast</logdir>
<webroot>/usr/local/share/icecast/web</webroot>
<adminroot>/usr/local/share/icecast/admin</adminroot>
<alias source="/" dest="/index.html"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
</logging>
</icecast>
|
Debug log in 2.3.2 (fallback to file works) :
Code: |
[2011-09-24 15:46:55] INFO main/main Icecast 2.3.2 server started
[2011-09-24 15:46:55] DBUG yp/yp_recheck_config Updating YP configuration
[2011-09-24 15:46:55] INFO connection/get_ssl_certificate No SSL capability
[2011-09-24 15:46:55] INFO yp/yp_update_thread YP update thread started
[2011-09-24 15:46:55] INFO fserve/fserv_thread_function file serving thread started
[2011-09-24 15:46:55] INFO stats/_stats_thread stats thread started
[2011-09-24 15:46:55] INFO source/source_fallback_file mountpoint /128silence.mp3 is reserved
[2011-09-24 15:46:55] DBUG connection/connection_complete_source sources count is 0
[2011-09-24 15:46:55] DBUG connection/connection_complete_source source is ready to start
[2011-09-24 15:46:55] DBUG source/source_init Source creation complete
[2011-09-24 15:46:55] INFO source/source_main listener count on /128silence.mp3 now 0
[2011-09-24 15:46:55] DBUG stats/modify_node_event update node sources (1)
[2011-09-24 15:46:55] DBUG stats/process_source_event new source stat /128silence.mp3
[2011-09-24 15:46:55] DBUG stats/modify_node_event update node source_client_connections (1)
[2011-09-24 15:46:55] DBUG stats/process_source_event new node listeners (0)
[2011-09-24 15:46:55] DBUG stats/process_source_event new node listenurl (http://192.168.2.91:8000/128silence.mp3)
[2011-09-24 15:46:55] DBUG stats/modify_node_event update node source_total_connections (1)
[2011-09-24 15:46:55] DBUG stats/process_source_event new node slow_listeners (0)
[2011-09-24 15:46:55] DBUG stats/modify_node_event update node listeners (0)
[2011-09-24 15:46:55] DBUG stats/process_source_event new node listener_peak (0)
[2011-09-24 15:46:55] DBUG stats/process_source_event new node stream_start (Sat, 24 Sep 2011 15:46:55 -0400)
[2011-09-24 15:46:55] DBUG stats/process_source_event new node total_bytes_read (0)
[2011-09-24 15:46:55] DBUG stats/process_source_event new node total_bytes_sent (0)
|
Debug log in kh29/30
Code: |
[2011-09-24 16:54:02] INFO main/main Icecast 2.3.2-kh29 server started
[2011-09-24 16:54:02] INFO slave/slave_startup max file descriptors 1024 (hard limit 1024)
[2011-09-24 16:54:02] INFO client/workers_adjust requested worker count 1
[2011-09-24 16:54:02] DBUG yp/yp_recheck_config Updating YP configuration
[2011-09-24 16:54:02] DBUG stats/modify_node_event update "global" banned_IPs (0)
[2011-09-24 16:54:02] DBUG stats/modify_node_event update "global" outgoing_kbitrate (0)
[2011-09-24 16:54:02] INFO connection/connection_thread connection thread started
[2011-09-24 16:54:02] INFO connection/get_ssl_certificate No SSL capability on any configured ports
[2011-09-24 16:54:02] INFO connection/connection_setup_sockets listener socket on port 8000
[2011-09-24 16:54:02] INFO connection/connection_setup_sockets 1 listening sockets setup complete
[2011-09-24 16:54:02] DBUG client/worker 0x1096c30 now has 0 clients
[2011-09-24 16:54:03] DBUG stats/modify_node_event update "global" banned_IPs (0)
[2011-09-24 16:54:03] DBUG stats/modify_node_event update "global" outgoing_kbitrate (0)
[2011-09-24 16:54:04] DBUG stats/modify_node_event update "global" banned_IPs (0)
[2011-09-24 16:54:04] DBUG stats/modify_node_event update "global" outgoing_kbitrate (0)
[2011-09-24 16:54:05] DBUG stats/modify_node_event update "global" banned_IPs (0)
[2011-09-24 16:54:05] DBUG stats/modify_node_event update "global" outgoing_kbitrate (0)
[2011-09-24 16:54:06] DBUG stats/modify_node_event update "global" banned_IPs (0)
[2011-09-24 16:54:06] DBUG stats/modify_node_event update "global" outgoing_kbitrate (0)
[2011-09-24 16:54:07] DBUG stats/modify_node_event update "global" clients (1)
[2011-09-24 16:54:07] DBUG stats/modify_node_event update "global" connections (1)
[2011-09-24 16:54:07] DBUG client/worker_add_pending_clients Added 1 pending clients to 0x1096c30
[2011-09-24 16:54:07] DBUG client/worker 0x1096c30 now has 1 clients
[2011-09-24 16:54:07] DBUG connection/_handle_get_request start with /test128.mp3
[2011-09-24 16:54:07] DBUG stats/modify_node_event update "global" client_connections (1)
[2011-09-24 16:54:07] DBUG fserve/fserve_client_create checking for file /test128.mp3 (/usr/local/share/icecast/web/test128.mp3)
[2011-09-24 16:54:07] WARN fserve/fserve_client_create req for file "/usr/local/share/icecast/web/test128.mp3" No such file or directory
[2011-09-24 16:54:07] DBUG stats/modify_node_event update "global" clients (0)
[2011-09-24 16:54:07] DBUG client/worker 0x1096c30 now has 0 clients
[2011-09-24 16:54:07] DBUG stats/modify_node_event update "global" banned_IPs (0)
[2011-09-24 16:54:07] DBUG stats/modify_node_event update "global" outgoing_kbitrate (4)
[2011-09-24 16:54:07] DBUG stats/modify_node_event update "global" clients (1)
|
Is this an expected behavior in kh builds ? If so is there any way to get it working ? Any suggestion appreciated...
Thanks !
Guillaume |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Sep 24, 2011 11:12 pm Post subject: |
|
|
For now, yes, I'm currently preventing fallback files from bursting at large rates because relays of those go nuts. To get the previous behaviour add a tag into the mount block
<limit-rate>128k</limit-rate>
That provides some information until something can be done to work it out from the file itself.
karl. |
|
Back to top |
|
|
|
|
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
|