| View previous topic :: View next topic |
| Author |
Message |
Gibby
Joined: 13 Feb 2009 Posts: 7
|
Posted: Fri Feb 13, 2009 3:51 am Post subject: I'm having quite the problem getting icecast setup |
|
|
I have FreeBSD 6.4-Stable, downloaded the newest version of icecast.
Here is everything I've done thus far:
1) uncompressed, ./configure, make, make install
2) cp'd icecast.xml.sample and edited it to /usr/local/etc/icecast.xml
a) I edited the web/admin directories to /home/unlisted/public_html/onair & /home/unlisted/public_html/onair/admin and made sure the permissions were set correctly.
b)Bound the correct IP address to the config
3) added user icecast
However, I cannot connect to IP:8000 or IP:8001/admin or Domain:8000/8001/admin
This is what my error log looks like:
| Code: |
[2009-02-12 21:44:30] INFO main/main Icecast 2.3.2 server started
[2009-02-12 21:44:30] INFO connection/get_ssl_certificate No SSL capability on any configured ports
[2009-02-12 21:44:30] INFO stats/_stats_thread stats thread started
[2009-02-12 21:44:30] INFO fserve/fserv_thread_function file serving thread started
[2009-02-12 21:44:30] INFO yp/yp_update_thread YP update thread started
[2009-02-12 21:44:34] INFO sighandler/_sig_die Caught signal 2, shutting down...
[2009-02-12 21:44:34] INFO main/main Shutting down
[2009-02-12 21:44:34] INFO fserve/fserve_shutdown file serving thread stopped
[2009-02-12 21:44:35] INFO slave/_slave_thread shutting down current relays
[2009-02-12 21:44:35] INFO slave/_slave_thread Slave thread shutdown complete
[2009-02-12 21:44:35] INFO auth/auth_shutdown Auth shutdown
[2009-02-12 21:44:35] INFO yp/yp_shutdown YP thread down
[2009-02-12 21:44:35] INFO stats/stats_shutdown stats thread finished
|
This is my xml file with passwords omitted:
| Code: |
<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>******</source-password>
<!-- Relays log in username 'relay' -->
<relay-password>******</relay-password>
<!-- Admin logs in with the username given below -->
<admin-user>admin</admin-user>
<admin-password>*****</admin-password>
</authentication>
<!-- 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>
-->
<!-- 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>
-->
<!-- 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>64.85.165.212</hostname>
<!-- You may have multiple <listener> elements -->
<listen-socket>
<port>8000</port>
<bind-address>64.85.165.212</bind-address>
<shoutcast-mount>/stream</shoutcast-mount>
</listen-socket>
<listen-socket>
<port>8001</port>
</listen-socket>
<!--<master-server>64.85.165.212</master-server>-->
<!--<master-server-port>8001</master-server-port>-->
<!--<master-update-interval>120</master-update-interval>-->
<!--<master-password>******</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>64.85.165.212</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>
<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>/var/log/icecast</logdir>
<webroot>/home/unlisted/public_html/onair</webroot>
<adminroot>/home/unlisted/public_html/onair/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>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
<logsize>10000</logsize> <!-- Max size of a logfile -->
<!-- If logarchive is enabled (1), then when logsize is reached
the logfile will be moved to [error|access|playlist].log.DATESTAMP,
otherwise it will be moved to [error|access|playlist].log.old.
Default is non-archive mode (i.e. overwrite)
-->
<!-- <logarchive>1</logarchive> -->
-->
<!-- <logarchive>1</logarchive> -->
</logging>
<security>
<chroot>0</chroot>
<!--
<changeowner>
<user>gibby</user>
<group>gibby</group>
</changeowner>
-->
</security>
</icecast> |
I have recently changed the user/group to a user that has higher privileges, but alas it still does not work.
Any help would be GREATLY appreciated. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Feb 13, 2009 3:59 am Post subject: |
|
|
My initial question would be, are you absolutely sure that you want to use bind-address, if you are then fine, but many set it incorrectly and have exactly this problem. The other issue to check for is firewall blocking.
karl. |
|
| Back to top |
|
 |
Gibby
Joined: 13 Feb 2009 Posts: 7
|
Posted: Fri Feb 13, 2009 4:05 am Post subject: |
|
|
Ah, it would help if I was more descriptive!
The server is running on a dedicated box with 10 IP addresses. Both ports are open, checked that about a hundred times.
If there is a way to stay away from bind address, I would use it, Correct me if I'm wrong, but I'm pretty sure when there are multiple IP addresses to the server, I need to specify the IP address, correct? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Feb 13, 2009 5:29 am Post subject: |
|
|
no, you don't need to specify it unless you want icecast to only listen on one of those addresses (multiple listen-sockets can used used for other IPs).
netstat or sockstat can be used check the listening status of a running icecast.
karl. |
|
| Back to top |
|
 |
Gibby
Joined: 13 Feb 2009 Posts: 7
|
Posted: Fri Feb 13, 2009 5:38 am Post subject: |
|
|
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
gibby icecast 20479 4 tcp46 *:8001 *:*
gibby icecast 20479 5 tcp46 *:8000 *:*
Yet http://64.85.165.212:8000/ 404's and http://64.85.165.212:8001 does not display.
Now I'm getting permission errors? Tail end of the error log:
| Code: |
[2009-02-12 23:35:02] INFO main/main Icecast 2.3.2 server started
[2009-02-12 23:35:02] INFO connection/get_ssl_certificate No SSL capability on any configured ports
[2009-02-12 23:35:02] INFO stats/_stats_thread stats thread started
[2009-02-12 23:35:02] INFO fserve/fserv_thread_function file serving thread started
[2009-02-12 23:35:02] INFO yp/yp_update_thread YP update thread started
[2009-02-12 23:35:06] WARN xslt/xslt_get_stylesheet Error checking for stylesheet file "/home/unlisted/public_html/onair/status.xsl": Permission denied
[2009-02-12 23:35:06] EROR xslt/xslt_transform problem reading stylesheet "/home/unlisted/public_html/onair/status.xsl"
[2009-02-12 23:35:06] INFO fserve/fserve_client_create checking for file /favicon.ico (/home/unlisted/public_html/onair/favicon.ico)
[2009-02-12 23:35:06] WARN fserve/fserve_client_create req for file "/home/unlisted/public_html/onair/favicon.ico" Permission denied
[2009-02-12 23:35:07] INFO fserve/fserve_client_create checking for file /favicon.ico (/home/unlisted/public_html/onair/favicon.ico)
[2009-02-12 23:35:07] WARN fserve/fserve_client_create req for file "/home/unlisted/public_html/onair/favicon.ico" Permission denied
[2009-02-12 23:35:40] WARN xslt/xslt_get_stylesheet Error checking for stylesheet file "/home/unlisted/public_html/onair/status.xsl": Permission denied
[2009-02-12 23:35:40] EROR xslt/xslt_transform problem reading stylesheet "/home/unlisted/public_html/onair/status.xsl"
[2009-02-12 23:36:05] INFO connection/_handle_shoutcast_compatible password does not match "GET / HTTP/1.1"
[2009-02-12 23:36:08] INFO connection/_handle_shoutcast_compatible password does not match "GET /admin HTTP/1.1"
[2009-02-12 23:36:13] WARN xslt/xslt_get_stylesheet Error checking for stylesheet file "/home/unlisted/public_html/onair/status.xsl": Permission denied
[2009-02-12 23:36:13] EROR xslt/xslt_transform problem reading stylesheet "/home/unlisted/public_html/onair/status.xsl"
[2009-02-12 23:36:18] WARN xslt/xslt_get_stylesheet Error checking for stylesheet file "/home/unlisted/public_html/onair/status.xsl": Permission denied
[2009-02-12 23:36:18] EROR xslt/xslt_transform problem reading stylesheet "/home/unlisted/public_html/onair/status.xsl"
[2009-02-12 23:36:22] INFO connection/_handle_shoutcast_compatible password does not match "GET / HTTP/1.1"
[2009-02-12 23:36:31] INFO connection/_handle_shoutcast_compatible password does not match "GET /admin HTTP/1.1"
|
|
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Feb 13, 2009 2:14 pm Post subject: |
|
|
in your setup, port 8001 is the shoutcast compatible port, so don't expect a web page to be returned from it.
It looks like the user running icecast is not able to read the file or directories /home/unlisted/public_html/onair/...
karl. |
|
| Back to top |
|
 |
Gibby
Joined: 13 Feb 2009 Posts: 7
|
Posted: Fri Feb 13, 2009 8:21 pm Post subject: |
|
|
I added user gibby to group unlisted so it may have access to the www/admin files, BUT it still does not display a webpage
Here is the error log:
| Code: |
[2009-02-13 14:18:54] INFO main/main Icecast 2.3.2 server started
[2009-02-13 14:18:54] INFO connection/get_ssl_certificate No SSL capability on any configured ports
[2009-02-13 14:18:54] INFO stats/_stats_thread stats thread started
[2009-02-13 14:18:54] INFO fserve/fserv_thread_function file serving thread started
[2009-02-13 14:18:54] INFO yp/yp_update_thread YP update thread started
[2009-02-13 14:19:15] INFO sighandler/_sig_die Caught signal 2, shutting down...
[2009-02-13 14:19:15] INFO main/main Shutting down
[2009-02-13 14:19:15] INFO fserve/fserve_shutdown file serving thread stopped
[2009-02-13 14:19:16] INFO slave/_slave_thread shutting down current relays
[2009-02-13 14:19:16] INFO slave/_slave_thread Slave thread shutdown complete
[2009-02-13 14:19:16] INFO auth/auth_shutdown Auth shutdown
[2009-02-13 14:19:16] INFO yp/yp_shutdown YP thread down
[2009-02-13 14:19:16] INFO stats/stats_shutdown stats thread finished |
|
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Feb 13, 2009 8:51 pm Post subject: |
|
|
that log just says that icecast was started and then stopped about 20 seconds later, no requests were received during that time.
karl. |
|
| Back to top |
|
 |
Gibby
Joined: 13 Feb 2009 Posts: 7
|
Posted: Fri Feb 13, 2009 8:57 pm Post subject: |
|
|
where do I need to go to access the admin panel then.
I think thats the only thing I may be confused about. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Feb 13, 2009 9:02 pm Post subject: |
|
|
just get the main page via port 8000 and click on Administration. Nothing confusing about that.
karl. |
|
| Back to top |
|
 |
Gibby
Joined: 13 Feb 2009 Posts: 7
|
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Feb 13, 2009 9:18 pm Post subject: |
|
|
when I try from here, I get an error message
"Could not parse XSLT file"
which would indicate that you still have a problem accessing the webroot files. The last posted error log indicated no access what so ever, so either you have reported an old/incorrect log or you haven't accessed the server in a browser
karl. |
|
| Back to top |
|
 |
Gibby
Joined: 13 Feb 2009 Posts: 7
|
Posted: Fri Feb 13, 2009 9:30 pm Post subject: |
|
|
Yeah, I see that now:
| Code: |
[2009-02-13 15:03:13] WARN xslt/xslt_get_stylesheet Error checking for stylesheet file "/home/unlisted/public_html/onair/status.xsl": Permission denied
[2009-02-13 15:03:13] EROR xslt/xslt_transform problem reading stylesheet "/home/unlisted/public_html/onair/status.xsl"
[2009-02-13 15:03:13] INFO fserve/fserve_client_create checking for file /favicon.ico (/home/unlisted/public_html/onair/favicon.ico)
[2009-02-13 15:03:13] WARN fserve/fserve_client_create req for file "/home/unlisted/public_html/onair/favicon.ico" Permission denied
[2009-02-13 15:03:14] INFO fserve/fserve_client_create checking for file /favicon.ico (/home/unlisted/public_html/onair/favicon.ico)
[2009-02-13 15:03:14] WARN fserve/fserve_client_create req for file "/home/unlisted/public_html/onair/favicon.ico" Permission denied
[2009-02-13 15:03:57] WARN xslt/xslt_get_stylesheet Error checking for stylesheet file "/home/unlisted/public_html/onair/status.xsl": Permission denied
[2009-02-13 15:03:57] EROR xslt/xslt_transform problem reading stylesheet "/home/unlisted/public_html/onair/status.xsl"
[2009-02-13 15:03:58] INFO fserve/fserve_client_create checking for file /favicon.ico (/home/unlisted/public_html/onair/favicon.ico)
[2009-02-13 15:03:58] WARN fserve/fserve_client_create req for file "/home/unlisted/public_html/onair/favicon.ico" Permission denied
[2009-02-13 15:15:07] WARN xslt/xslt_get_stylesheet Error checking for stylesheet file "/home/unlisted/public_html/onair/status.xsl": Permission denied
[2009-02-13 15:15:07] EROR xslt/xslt_transform problem reading stylesheet "/home/unlisted/public_html/onair/status.xsl"
[2009-02-13 15:15:08] INFO fserve/fserve_client_create checking for file /favicon.ico (/home/unlisted/public_html/onair/favicon.ico)
[2009-02-13 15:15:08] WARN fserve/fserve_client_create req for file "/home/unlisted/public_html/onair/favicon.ico" Permission denied
[2009-02-13 15:15:11] INFO fserve/fserve_client_create checking for file /favicon.ico (/home/unlisted/public_html/onair/favicon.ico)
[2009-02-13 15:15:11] WARN fserve/fserve_client_create req for file "/home/unlisted/public_html/onair/favicon.ico" Permission denied |
I've added the user to the owners group and for some reason it still wont allow access. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Feb 13, 2009 10:11 pm Post subject: |
|
|
verify you have the group access, you may need to re-login into the account before starting icecast. check id -a
karl. |
|
| Back to top |
|
 |
|