| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Wed Mar 26, 2008 10:07 am Post subject: Can't relay shoutcast sources |
|
|
I have install icecast2-2.3.1_7 and configure it in such way:
| Code: |
<icecast>
<limits>
<clients>300</clients>
<sources>10</sources>
<threadpool>20</threadpool>
<queue-size>1048576</queue-size>
<client-timeout>30</client-timeout>
<header-timeout>15</header-timeout>
<source-timeout>60</source-timeout>
<burst-on-connect>1</burst-on-connect>
</limits>
<authentication>
<source-password>*******</source-password>
<relay-password>*******</relay-password>
<admin-user>*******</admin-user>
<admin-password>*******</admin-password>
</authentication>
<hostname>10.0.0.1</hostname>
<listen-socket>
<port>8000</port>
<bind-address>10.0.0.1</bind-address>
</listen-socket>
<listen-socket>
<port>8001</port>
<bind-address>10.0.0.1</bind-address>
</listen-socket>
<fileserve>1</fileserve>
<paths>
<basedir>/usr/local/icecast</basedir>
<logdir>/log</logdir>
<webroot>/web</webroot>
<adminroot>/admin</adminroot>
<pidfile>/run/icecast.pid</pidfile>
<alias source="/" dest="/status.xsl"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<loglevel>1</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
<logsize>10000</logsize> <!-- Max size of a logfile -->
<logarchive>1</logarchive>
</logging>
<security>
<chroot>1</chroot>
<changeowner>
<user>icecast</user>
<group>icecast</group>
</changeowner>
</security>
<!-- ==!!===========================================!!== -->
<relay>
<server>scfire-chi0l-1.stream.aol.com</server>
<port>80</port>
<mount>/stream/1010</mount>
<local-mount>/001</local-mount>
<on-demand>1</on-demand>
<relay-shoutcast-metadata>1</relay-shoutcast-metadata>
</relay>
<mount>
<mount-name>/001</mount-name>
<max-listeners>100</max-listeners>
<burst-size>65536</burst-size>
</mount>
<!-- ==!!===========================================!!== -->
<relay>
<server>208.122.59.30</server>
<port>7042</port>
<mount>/</mount>
<local-mount>/002</local-mount>
<on-demand>1</on-demand>
<relay-shoutcast-metadata>1</relay-shoutcast-metadata>
</relay>
<mount>
<mount-name>/002</mount-name>
<max-listeners>100</max-listeners>
<burst-size>65536</burst-size>
</mount>
<!-- ==!!===========================================!!== -->
</icecast>
|
Sources are taken from Sky.FM: http://www.sky.fm/smoothjazz/
Source 96 kbit/s for winamp enlisted in playlist as http://scfire-chi0l-1.stream.aol.com/stream/1010 relayed as local /001 perfectly.
But source 24 kbit/s AAC+ shown by winamp as shoutcast http://208.122.59.30:7042 can't be relayed as local /002 anyway.
What is wrong in config with shoutcast?
Thx beforehand. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Mar 26, 2008 2:49 pm Post subject: |
|
|
the xml looks fine, but as the log level is 1, you'll probably find very little in the error log to tell you what might be the problem with that particular relay (assuming it is a failure of the relay).
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Thu Mar 27, 2008 7:22 am Post subject: |
|
|
| karlH wrote: |
the xml looks fine, but as the log level is 1, you'll probably find very little in the error log to tell you what might be the problem with that particular relay (assuming it is a failure of the relay).
karl. |
here is log with loglevel set to 4/debug:
| Code: |
INFO main/main Icecast 2.3.1 server started
DBUG yp/yp_recheck_config Updating YP configuration
INFO stats/_stats_thread stats thread started
INFO fserve/fserv_thread_function file serving thread started
INFO yp/yp_update_thread YP update thread started
INFO auth/auth_run_thread Authentication thread started
DBUG slave/_slave_thread checking master stream list
DBUG slave/check_relay_stream Adding relay source at mountpoint "/002"
DBUG slave/check_relay_stream Adding relay source at mountpoint "/001"
DBUG source/source_apply_mount Applying mount information for "/001"
DBUG source/source_update_settings on_demand set
DBUG source/source_update_settings public set to 0
DBUG source/source_update_settings max listeners to 100
DBUG source/source_update_settings queue size to 1048576
DBUG source/source_update_settings burst size to 65536
DBUG source/source_update_settings source timeout to 60
DBUG source/source_update_settings fallback_when_full to 0
DBUG source/source_apply_mount Applying mount information for "/002"
DBUG source/source_update_settings on_demand set
DBUG source/source_update_settings public set to 0
DBUG source/source_update_settings max listeners to 100
DBUG source/source_update_settings queue size to 1048576
DBUG source/source_update_settings burst size to 65536
DBUG source/source_update_settings source timeout to 60
DBUG source/source_update_settings fallback_when_full to 0
DBUG source/source_update_settings queue size to 1048576
DBUG source/source_update_settings burst size to 65536
DBUG source/source_update_settings source timeout to 60
DBUG source/source_update_settings fallback_when_full to 0
DBUG stats/process_source_event new source stat /002
DBUG stats/process_source_event new node listeners (0)
DBUG stats/process_source_event new source stat /001
DBUG stats/process_source_event new node listeners (0)
DBUG stats/process_source_event new node public (0)
DBUG stats/process_source_event new node server_name (Unspecified name)
DBUG stats/process_source_event new node server_description (Unspecified description)
DBUG stats/process_source_event new node genre (various)
DBUG stats/process_source_event new node on_demand (1)
DBUG stats/process_source_event new node max_listeners (100)
DBUG stats/process_source_event new node public (0)
DBUG stats/process_source_event new node server_name (Unspecified name)
DBUG stats/process_source_event new node server_description (Unspecified description)
DBUG stats/process_source_event new node genre (various)
DBUG stats/process_source_event new node on_demand (1)
DBUG stats/process_source_event new node max_listeners (100)
DBUG stats/modify_node_event update node clients (1)
DBUG stats/modify_node_event update node connections (1)
DBUG auth/add_client_to_source max on /002 is 100 (cur 0)
DBUG auth/add_client_to_source kicking off on-demand relay
DBUG auth/add_client_to_source Added client to /002
DBUG auth/add_authenticated_client client authenticated, passed to source
DBUG slave/_slave_thread rescanning relay lists
DBUG source/source_apply_mount Applying mount information for "/001"
DBUG source/source_update_settings on_demand set
DBUG source/source_update_settings public set to 0
DBUG source/source_update_settings max listeners to 100
DBUG source/source_update_settings queue size to 1048576
DBUG source/source_update_settings burst size to 65536
DBUG source/source_update_settings source timeout to 60
DBUG source/source_update_settings fallback_when_full to 0
DBUG source/source_apply_mount Applying mount information for "/002"
DBUG source/source_update_settings on_demand set
DBUG source/source_update_settings public set to 0
DBUG source/source_update_settings max listeners to 100
DBUG source/source_update_settings queue size to 1048576
DBUG source/source_update_settings burst size to 65536
DBUG source/source_update_settings source timeout to 60
DBUG source/source_update_settings fallback_when_full to 0
INFO slave/start_relay_stream Starting relayed source at mountpoint "/002"
DBUG stats/modify_node_event update node client_connections (1)
DBUG stats/modify_node_event update node listener_connections (1)
DBUG stats/modify_node_event update node listeners (0)
DBUG stats/modify_node_event update node listeners (0)
DBUG stats/modify_node_event update node public (0)
DBUG stats/modify_node_event update node server_name (Unspecified name)
DBUG stats/modify_node_event update node server_description (Unspecified description)
DBUG stats/modify_node_event update node genre (various)
DBUG stats/modify_node_event update node on_demand (1)
DBUG stats/modify_node_event update node max_listeners (100)
DBUG stats/modify_node_event update node public (0)
DBUG stats/modify_node_event update node server_name (Unspecified name)
DBUG stats/modify_node_event update node server_description (Unspecified description)
DBUG stats/modify_node_event update node genre (various)
DBUG stats/modify_node_event update node on_demand (1)
DBUG stats/modify_node_event update node max_listeners (100)
|
Seems that session is passed to the client (winamp) but client hangs with the message [TIMED OUT] |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Thu Mar 27, 2008 7:52 am Post subject: |
|
|
That's I've got in log when turn "on-demand" off
| Code: |
WARN slave/start_relay_stream Failed to relay stream from master server, couldn't connect to http://208.122.59.30:7042/
DBUG source/source_clear_source clearing source "/002"
DBUG slave/_slave_thread rescanning relay lists
DBUG slave/check_relay_stream waiting for relay thread for "/002" |
|
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Mar 27, 2008 2:22 pm Post subject: |
|
|
That error means the connect failed. So either it has timed out with no reply (eg firewall block) or the network response was a rejection. That message only appears from the connect, so you need to look at the network side of things to see if a connection can actually be established between the systems.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Thu Mar 27, 2008 2:38 pm Post subject: |
|
|
| karlH wrote: |
So either it has timed out with no reply (eg firewall block) or the network response was a rejection.
karl. |
Bingo! It was a firewall!
I was confused cause everything work fine - from inner box via nat. But not directly from the gateway.
Thanks a lot! |
|
| Back to top |
|
 |
|