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 

icecast linux server

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





PostPosted: Thu Nov 24, 2005 4:45 pm    Post subject: icecast linux server Reply with quote

Hi!
ive installed icecast server, vorbis, ogg, xml and xsl.
the program seems to be running but i cant connect to http://192.168.0.100:8000/admin/stats.xml doesnt work (this is the local ip to the server)

im using debian 3.1
and ps ax outputs this:
Quote:

27144 ? S 0:00 icecast -c /usr/local/etc/icecast.xml
27145 ? S 0:00 icecast -c /usr/local/etc/icecast.xml
27146 ? S 0:00 icecast -c /usr/local/etc/icecast.xml
27147 ? S 0:00 icecast -c /usr/local/etc/icecast.xml
27148 ? S 0:00 icecast -c /usr/local/etc/icecast.xml
27149 ? S 0:00 icecast -c /usr/local/etc/icecast.xml
27150 ? S 0:00 icecast -c /usr/local/etc/icecast.xml
27151 ? S 0:00 icecast -c /usr/local/etc/icecast.xml


im using the debian boot script to run it at startup becouse i didn't seem to work when i tryide
Quote:
icecast -c /usr/local/etc/icecast.xml

it didnt output annything.

this is my error.log
Quote:
[2005-11-24 14:51:44] INFO main/main Icecast 2.3.0 server started
[2005-11-24 14:51:44] DBUG yp/yp_recheck_config Updating YP configuration
[2005-11-24 14:51:44] INFO stats/_stats_thread stats thread started
[2005-11-24 14:51:44] INFO fserve/fserv_thread_function file serving thread started
[2005-11-24 14:51:44] INFO yp/yp_update_thread YP update thread started
[2005-11-24 14:51:44] INFO auth/auth_run_thread Authentication thread started
[2005-11-24 14:51:45] DBUG slave/_slave_thread checking master stream list
[2005-11-24 14:53:46] DBUG slave/_slave_thread checking master stream list
[2005-11-24 14:55:47] DBUG slave/_slave_thread checking master stream list
[2005-11-24 14:57:48] DBUG slave/_slave_thread checking master stream list
[2005-11-24 14:59:49] DBUG slave/_slave_thread checking master stream list
[2005-11-24 14:59:56] DBUG yp/yp_recheck_config Updating YP configuration
[2005-11-24 14:59:57] DBUG slave/_slave_thread checking master stream list
[2005-11-24 15:01:59] DBUG slave/_slave_thread checking master stream list
[2005-11-24 15:03:41] DBUG stats/modify_node_event update node clients (1)
[2005-11-24 15:03:41] DBUG stats/modify_node_event update node connections (1)
[2005-11-24 15:03:55] DBUG stats/modify_node_event update node clients (0)
[2005-11-24 15:04:00] DBUG slave/_slave_thread checking master stream list
[2005-11-24 15:04:27] INFO sighandler/_sig_die Caught signal 15, shutting down...
[2005-11-24 15:04:27] DBUG connection/_handle_connection Connection thread done
[2005-11-24 15:04:27] INFO main/main Shutting down
[2005-11-24 15:04:28] INFO fserve/fserve_shutdown file serving thread stopped
[2005-11-24 15:04:28] DBUG slave/slave_shutdown waiting for slave thread
[2005-11-24 15:04:28] DBUG slave/_slave_thread shutting down current relays
[2005-11-24 15:04:28] INFO slave/_slave_thread Slave thread shutdown complete
[2005-11-24 15:04:28] INFO auth/auth_run_thread Authenication thread shutting down
[2005-11-24 15:04:28] INFO auth/auth_shutdown Auth thread has terminated
[2005-11-24 15:04:28] INFO yp/yp_shutdown YP thread down
[2005-11-24 15:04:29] INFO stats/stats_shutdown stats thread finished
[2005-11-24 16:25:03] INFO main/main Icecast 2.3.0 server started
[2005-11-24 16:25:03] DBUG yp/yp_recheck_config Updating YP configuration
[2005-11-24 16:25:03] INFO yp/yp_update_thread YP update thread started
[2005-11-24 16:25:03] INFO auth/auth_run_thread Authentication thread started
[2005-11-24 16:25:04] DBUG slave/_slave_thread checking master stream list
[2005-11-24 16:25:58] DBUG stats/modify_node_event update node clients (1)
[2005-11-24 16:25:58] DBUG stats/modify_node_event update node connections (1)
[2005-11-24 16:26:13] DBUG stats/modify_node_event update node clients (0)
[2005-11-24 16:26:26] DBUG yp/yp_recheck_config Updating YP configuration
[2005-11-24 16:26:27] DBUG slave/_slave_thread checking master stream list
[2005-11-24 16:28:28] DBUG slave/_slave_thread checking master stream list
[2005-11-24 16:30:30] DBUG slave/_slave_thread checking master stream list
[2005-11-24 16:32:31] DBUG slave/_slave_thread checking master stream list
[2005-11-24 16:33:45] DBUG stats/modify_node_event update node clients (1)
[2005-11-24 16:33:45] DBUG stats/modify_node_event update node connections (2)
[2005-11-24 16:34:00] DBUG stats/modify_node_event update node clients (0)
[2005-11-24 16:34:32] DBUG slave/_slave_thread checking master stream list
[2005-11-24 16:36:33] DBUG slave/_slave_thread checking master stream list
[2005-11-24 16:38:34] DBUG slave/_slave_thread checking master stream list
[2005-11-24 16:40:36] DBUG slave/_slave_thread checking master stream list
[2005-11-24 16:42:37] DBUG slave/_slave_thread checking master stream list
[2005-11-24 16:44:38] DBUG slave/_slave_thread checking master stream list
[2005-11-24 16:46:39] DBUG slave/_slave_thread checking master stream list
[2005-11-24 16:48:40] DBUG slave/_slave_thread checking master stream list
[2005-11-24 16:50:42] DBUG slave/_slave_thread checking master stream list
[2005-11-24 16:52:43] DBUG slave/_slave_thread checking master stream list
[2005-11-24 16:54:44] DBUG slave/_slave_thread checking master stream list
[2005-11-24 16:56:45] DBUG slave/_slave_thread checking master stream list
[2005-11-24 16:58:46] DBUG slave/_slave_thread checking master stream list
[2005-11-24 17:00:48] DBUG slave/_slave_thread checking master stream list
[2005-11-24 17:02:49] DBUG slave/_slave_thread checking master stream list
[2005-11-24 17:04:50] DBUG slave/_slave_thread checking master stream list
[2005-11-24 17:06:51] DBUG slave/_slave_thread checking master stream list
[2005-11-24 17:08:52] DBUG slave/_slave_thread checking master stream list
[2005-11-24 17:10:54] DBUG slave/_slave_thread checking master stream list
[2005-11-24 17:12:55] DBUG slave/_slave_thread checking master stream list
[2005-11-24 17:14:56] DBUG slave/_slave_thread checking master stream list
[2005-11-24 17:16:57] DBUG slave/_slave_thread checking master stream list
[2005-11-24 17:18:58] DBUG slave/_slave_thread checking master stream list
[2005-11-24 17:21:00] DBUG slave/_slave_thread checking master stream list
[2005-11-24 17:23:01] DBUG slave/_slave_thread checking master stream list
[2005-11-24 17:25:02] DBUG slave/_slave_thread checking master stream list
[2005-11-24 17:27:03] DBUG slave/_slave_thread checking master stream list
[2005-11-24 17:29:04] DBUG slave/_slave_thread checking master stream list
[2005-11-24 17:31:06] DBUG slave/_slave_thread checking master stream list
[2005-11-24 17:33:07] DBUG slave/_slave_thread checking master stream list
[2005-11-24 17:35:08] DBUG slave/_slave_thread checking master stream list
[2005-11-24 17:37:09] DBUG slave/_slave_thread checking master stream list
[2005-11-24 17:39:10] DBUG slave/_slave_thread checking master stream list
[2005-11-24 17:41:12] DBUG slave/_slave_thread checking master stream list
[2005-11-24 17:43:13] DBUG slave/_slave_thread checking master stream list


Last edited by Anonymous on Thu Nov 24, 2005 4:49 pm; edited 1 time in total
Back to top
Anonymous
Guest





PostPosted: Thu Nov 24, 2005 4:47 pm    Post subject: continue Reply with quote

And this is my icecast.xml:
Quote:
<icecast>
<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>
<!-- If enabled, this will provide a burst of data when a client
first connects, thereby significantly reducing the startup
time for listeners that do substantial buffering. However,
it also significantly increases latency between the source
client and listening client. For low-latency setups, you
might want to disable this. -->
<burst-on-connect>1</burst-on-connect>
<!-- same as burst-on-connect, but this allows for being more
specific on how much to burst. Most people won't need to
change from the default 64k. Applies to all mountpoints -->
<burst-size>65535</burst-size>
</limits>

<authentication>
<!-- Sources log in with username 'source' -->

<source-password>hackme</source-password>
<!-- Relays log in username 'relay' -->
<relay-password>hackme</relay-password>

<!-- Admin logs in with the username given below -->
<admin-user>admin</admin-user>
<admin-password>hackme</admin-password>
</authentication>

<!-- Uncomment this if you want directory listings -->
<!--
<directory>
<yp-url-timeout>15</yp-url-timeout>
<yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
</directory>
<directory>
<yp-url-timeout>15</yp-url-timeout>
<yp-url>http://www.oddsock.org/cgi-bin/yp-cgi</yp-url>
</directory>
-->

<!-- This is the hostname other people will use to connect to your server.
It affects mainly the urls generated by Icecast for playlists and yp
listings. -->
<hostname>eldamar.hopto.org</hostname>

<!-- You can use these two if you only want a single listener -->
<!--<port>8000</port> -->
<!--<bind-address>127.0.0.1</bind-address>-->

<!-- You may have multiple <listener> elements -->
<listen-socket>
<port>8000</port>
<bind-address>127.0.0.1</bind-address>
</listen-socket>
<!--
<listen-socket>
<port>8001</port>
</listen-socket>
-->

<!--<master-server>127.0.0.1</master-server>-->
<!--<master-server-port>8001</master-server-port>-->
<!--<master-update-interval>120</master-update-interval>-->
<!--<master-password>hackme</master-password>-->

<!-- setting this makes all relays on-demand unless overridden, this is
useful for master relays which do not have <relay> definitions here.
The default is 0 -->
<!--<relays-on-demand>1</relays-on-demand>-->

<!--
<relay>
<server>127.0.0.1</server>
<port>8001</port>
<mount>/example.ogg</mount>
<local-mount>/different.ogg</local-mount>
<on-demand>0</on-demand>

<relay-shoutcast-metadata>0</relay-shoutcast-metadata>
</relay>
-->

<!-- Only define a <mount> section if you want to use advanced options,
like alternative usernames or passwords
<mount>
<mount-name>/example-complex.ogg</mount-name>

<username>othersource</username>
<password>hackmemore</password>

<max-listeners>1</max-listeners>
<dump-file>/tmp/dump-example1.ogg</dump-file>
<burst-size>65536</burst-size>
<fallback-mount>/example2.ogg</fallback-mount>
<fallback-override>1</fallback-override>
<fallback-when-full>1</fallback-when-full>
<intro>/example_intro.ogg</intro>
<hidden>1</hidden>
<no-yp>1</no-yp>
<authentication type="htpasswd">
<option name="filename" value="myauth"/>
<option name="allow_duplicate_users" value="0"/>
</authentication>
<on-connect>/home/icecast/bin/stream-start</on-connect>
<on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
</mount>

<mount>
<mount-name>/auth_example.ogg</mount-name>
<authentication type="url">
<option name="mount_add" value="http://myauthserver.net/notify_mount.php"/>
<option name="mount_remove" value="http://myauthserver.net/notify_mount.php"/>
<option name="listener_add" value="http://myauthserver.net/notify_listener.php"/>
<option name="listener_remove" value="http://myauthserver.net/notify_listener.php"/>
</authentication>
</mount>

-->

<fileserve>1</fileserve>

<!-- set the mountpoint for a shoutcast source to use, the default if not
specified is /stream but you can change it here if an alternative is
wanted or an extension is required
<shoutcast-mount>/live.nsv</shoutcast-mount>
-->

<paths>
<!-- basedir is only used if chroot is enabled -->
<basedir>/usr/local/share/icecast</basedir>

<!-- Note that if <chroot> is turned on below, these paths must both
be relative to the new root, not the original root -->
<logdir>/usr/local/var/log/icecast</logdir>
<webroot>/usr/local/share/icecast/web</webroot>
<adminroot>/usr/local/share/icecast/admin</adminroot>
<!-- <pidfile>/usr/local/share/icecast/icecast.pid</pidfile> -->

<!-- Aliases: treat requests for 'source' path as being for 'dest' path
May be made specific to a port or bound address using the "port"
and "bind-address" attributes.
-->
<!--
<alias source="/foo" dest="/bar"/>
-->
<!-- Aliases: can also be used for simple redirections as well,
this example will redirect all requests for http://server:port/ to
the status page
-->
<alias source="/" dest="/status.xsl"/>
</paths>

<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<!-- <playlistlog>playlist.log</playlistlog> -->
<loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
</logging>

<security>
<chroot>0</chroot>
<!--
<changeowner>
<user>nobody</user>
<group>nogroup</group>
</changeowner>
-->
</security>
</icecast>
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Nov 24, 2005 5:31 pm    Post subject: Reply with quote

well it's not surprising that you cannot connect on 192.168.0.100 as you have told icecast to bind on address 127.0.0.1 only

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






PostPosted: Thu Nov 24, 2005 7:47 pm    Post subject: Reply with quote

ive tryide:
Quote:

<listen-socket>
<port>8000</port>
<bind-address>127.0.0.1</bind-address>
<bind-address>192.168.0.100</bind-address>
</listen-socket>


and:
Quote:

<listen-socket>
<port>8000</port>
<bind-address>192.168.0.100</bind-address>
</listen-socket>


still doesnt work :S
Back to top
Guest






PostPosted: Thu Nov 24, 2005 8:17 pm    Post subject: Reply with quote

Okey my fault, i restarted the server and /etc/init.d/icecast2 dosent work :S

i did
icecast -c /usr/local/etc/icecast.xml
and it worked...

when i installed icecast2 i didnt get icecast in init.d so i copyd icecast2.default to /etc/default and changed the name to icecast2
and icecast2.init to /etc/init.d/icecast2

someone know a howto to this or something?
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Nov 25, 2005 12:33 am    Post subject: Reply with quote

If there is a problem with the distribution package then you are best off talking to the packager in question. As for the bind-address, you can only state one per listen-socket but often people use them when they shouldn't. If you don't know what it does then don't use it.

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