[Icecast] Need help with config file

Big Wave Dave bigwavedave at gmail.com
Thu Jun 16 02:39:46 UTC 2011


On Wed, Jun 15, 2011 at 5:25 PM, Luis Barrett <getpaid00 at gmail.com> wrote:
> Thank you for your time...we made some changes to our config file and the
> server doesn't want to start with the command icecast -c
> /path/to/icecast.xml giving the error:
>
> 'Could not create listener socket on port 8000 Server startup failed.
> Exiting'
>
> can you look at the config file bellow and let us know of any changes that
> might help.  we need to be able to have 10,000 clients listening to the
> server at once. 1,000 to start and we want our mount point to be
> /stream1.mp3
> Thank you in advance
> Luis
>
>
>
> <icecast>
> <limits>
> <clients>1000</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-size>65535</burst-size>
> </limits>
>
> <authentication>
>
> <source-password>anveo23</source-password>
>
> <relay-password>hackme</relay-password>
>
> <admin-user>admin</admin-user>
> <admin-password>mami</admin-password>
> </authentication>
>
>
>
> <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>
> -->
>
> <hostname>localhost</hostname>
>
> 8000</port> -->
> 127.0.0.1</bind-address>-->
>
> elements -->
> <listen-socket>
> <port>8000</port>
> 127.0.0.1</bind-address> -->
> </listen-socket>
>
> <port>8001</port>
> </listen-socket>
> -->
>
> 127.0.0.1</master-server>-->
> 8001</master-server-port>-->
> 120</master-update-interval>-->
> hackme</master-password>-->
> 1</master-relay-auth>-->
>
> definitions here.
> The default is 0 -->
> 1</relays-on-demand>-->
>
> and this port to master server for redirecting
> clients to this slave -->
> 8000</master-redirect-port>-->
>
>
>
> <server>127.0.0.1</server>
> <port>8001</port>
> <mount>example.ogg</mount>
> <local-mount>example.ogg</local-mount>
> <on-demand>1</on-demand>
>
> <relay-shoutcast-metadata>0</relay-shoutcast-metadata>
> </relay>
> -->
>
> section if you want to use advanced options,
> like alternative usernames or passwords
> <mount>
> <mount-name>example.ogg</mount-name>
>
> <username>source</username>
> <password>memore</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>/path/to/stream-intro.ogg</intro>
> <hidden>1</hidden>
> <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>
> -->
>
> ....
> <authentication type="command">
> <option name="filename" value="auth_verify"/>
> </authentication>
>
> or
>
> for url auth, the add url needs to return a "icecast-auth-user: 1" http
> header for a user to authenicate. Both urls are sent params via POST,
> add is sent id, mount, user, pass, ip, useragent
> remove is passed id, mount, user, pass, duration
>
> <authentication type="url">
>
> state username/password if url requires it
>
> <option name="username" value="admin"/>
> <option name="password" value="hackme"/>
> <option name="add"
> value="http://myauthserver.com/scripts/add_listener.php"/>
> <option name="remove"
> value="http://myauthserver.com/scripts/del_listener.php"/>
> </authentication>
> </mount -->
>
> <fileserve>1</fileserve>
>
> /stream1.mp3</shoutcast-mount>
> -->
>
> <paths>
>
> <basedir>/usr/share/icecast</basedir>
>
> is turned on below, these paths must both
> be relative to the new root, not the original root -->
> <logdir>/var/log/icecast</logdir>
> <webroot>/usr/share/icecast/web</webroot>
> <adminroot>/usr/share/icecast/admin</adminroot>
> <pidfile>/var/run/icecast/icecast.pid</pidfile>
>
>
>
> -->
>
> <alias source="/" dest="/status.xsl"/>
> </paths>
>
> <logging>
> <accesslog>access.log</accesslog>
> <errorlog>error.log</errorlog>
> <playlistlog>playlist.log</playlistlog>
> <loglevel>4</loglevel>
> </logging>
>
> <security>
> <chroot>0</chroot>
> <changeowner>
> <user>icecast</user>
> <group>icecast</group>
> </changeowner>
> </security>
> </icecast>
>

Perhaps a silly question, but have you tried starting it when logged
in as "root"?   Is it possible some other application is already
running on port 8000?

Dave



More information about the Icecast mailing list