| View previous topic :: View next topic |
| Author |
Message |
DJ-Zath

Joined: 11 Feb 2009 Posts: 155 Location: Western Illinois - USA
|
Posted: Sat Feb 14, 2009 10:21 am Post subject: a few various problems and issues |
|
|
hello to everyone
I have read through the forums and couldn't find anything relating to my issues exactly, so I'll try it here.
But, first the technical details:
Server Host is a Gigabyte 8IPX-DREL with an Intel E-7501 chipset and 2 Dual-core Xeon CPUs
Unit has 2 Gigs RAM and a clock speed of 2.4 Ghz per CPU and a FSB of 512
Unit is mounted in a 1U Blade box and positioned at the Backbone interface (CoLo)
Unit is a dedicated machine for Icecast and is connected to a 300 mips fiber.
Unit runs FreeBSD 6.3 with a fresh install (not from upgrade) and is fully-secured.
Icecast is fully-compiled with all needed libraries as per the gcc package (make)
although Icecast was installed under "full" root, it was transferred to another account and
all perms and access were properlly configured.
Streaming Server: Icecast v2.3.2
Now the problems:
First problem:
I can NOT get any Icecast mount to accept a password from any icecast client.
this includes libshout/perl on localhost and/or oddcast from a remote box. logs simply show
"invalid or missing password - source rejected" no other errors are noticed or recorded.
I CAN get a shoutcast-configured mount to work just fine, but I would then need the ability to
run MORE than one shoutcast mount and the ability to fall back from one shoutcast mount to
another. this isn't possable with icecast (as far as I can tell)
Second problem:
when a relay mount is initiated, theres a long "delay" for the first connection
from a listener.. including fallback mounts and direct connections.. this delay remains for about
2 minutes, but not exact nor consistant.. first listener MUST remain on the mount for the delay
time entirely before the mount will switch online.. once connected, mount remains connected and
active and will switch immediately from there unless the source disconnects.. then the delay
happens again. if a listener does not remain connect for the entire 2 minutes then the next listener will have to.. etc etc etc.. needless to say, this is useless in the current state.
third problem:
this one is more of an issue than a problem.. I need to know HOW to "AUTH" into the admin page(s)
using a script- and NOT a browser.. I want a "bot" to log into the admin page to collect
information locally.. I can't get the AUTH to accept a single line script- only seems to REQUIRE
a interactive login. (a bot cann't enter an interactive login since its NOT GUI-based).
there you have it!
any help/suggestions would be helpful..
-DjZ-
Last edited by DJ-Zath on Sun Feb 15, 2009 9:02 pm; edited 1 time in total |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Feb 14, 2009 1:20 pm Post subject: |
|
|
without the xml it's guess work here.
first, If the message containing "... attempted to login with invalid or missing password" then is has to be down to the username/password not matching. some source clients don't allow a username other than "source" which is the global default in icecast but you may of changed it in the <mount>
Second, Is this an on-demand relay, so the first listener is triggering a relay connection. Is that relay connection attempt stalling and dropping to a fallback (the error log will be useful here).
Third, depends on the machanism you use but the admin pages use basic http auth so http://admin:pw@host:port/admin/listclients?.... is valid
karl. |
|
| Back to top |
|
 |
DJ-Zath

Joined: 11 Feb 2009 Posts: 155 Location: Western Illinois - USA
|
Posted: Sat Feb 14, 2009 9:02 pm Post subject: |
|
|
hi there Karl and thanks for your reply.. I didn't include the xml unless it was requested.. and so, here it is!
please note:
passwords/login names and paths are not actual
paths are common to one-another (example shown is /path/to/icecast)
| Code: |
<icecast>
<hostname>warp-radio.com</hostname>
<shoutcast-mount>/input</shoutcast-mount>
<listen-socket>
<port>8001</port>
<bind-address>64.6.9.129</bind-address>
<shoutcast-compat>1</shoutcast-compat>
</listen-socket>
<listen-socket>
<port>8001</port>
<bind-address>127.0.0.1</bind-address>
<shoutcast-compat>1</shoutcast-compat>
</listen-socket>
<listen-socket>
<port>8000</port>
<bind-address>64.6.9.129</bind-address>
<shoutcast-compat>0</shoutcast-compat>
</listen-socket>
<listen-socket>
<port>8000</port>
<bind-address>127.0.0.1</bind-address>
<shoutcast-compat>0</shoutcast-compat>
</listen-socket>
<limits>
<clients>500</clients>
<sources>5</sources>
<threadpool>8</threadpool>
<queue-size>128000</queue-size>
<client-timeout>2</client-timeout>
<header-timeout>3</header-timeout>
<source-timeout>5</source-timeout>
<burst-on-connect>0</burst-on-connect>
<burst-size>32</burst-size>
</limits>
<authentication>
<source-password>inputpass001</source-password>
<admin-user>adminlogin</admin-user>
<admin-password>adminspassword</admin-password>
</authentication>
<mount>
<mount-name>/warp-128.mp3</mount-name>
<username>WarpCore</username>
<password>fakepass002</password>
<burst-size>32</burst-size>
<fallback-mount>/input</fallback-mount>
<fallback-override>1</fallback-override>
<fallback-when-full>0</fallback-when-full>
<public>1</public>
<stream-name>WARP Radio Network</stream-name>
<stream-description>"Where The Masses Get WARP'ed!"</stream-description>
<stream-url>http://www.warp-radio.com</stream-url>
<genre>Mixed Techno Rock Comedy</genre>
<intro>/path/to/icecast/icecast.mp3</intro>
<bitrate>128</bitrate>
<type>audio/mpeg</type>
<subtype>mp3</subtype>
<mp3-metadata-interval>8192</mp3-metadata-interval>
<hidden>0</hidden>
</mount>
<mount>
<mount-name>/warp-cam.nsv</mount-name>
<username>WarpCam</username>
<password>fakepass003</password>
<burst-size>96</burst-size>
<public>1</public>
<stream-name>WARP Radio Network - Live Studio Cam</stream-name>
<stream-description>"Where The Masses Get WARP'ed!"</stream-description>
<stream-url>http://www.warp-radio.com</stream-url>
<genre>Live Video Cam</genre>
<bitrate>512</bitrate>
<type>video/nsv</type>
<subtype>nsv</subtype>
<mp3-metadata-interval>12288</mp3-metadata-interval>
<hidden>0</hidden>
</mount>
<relay>
<server>127.0.0.1</server>
<port>8000</port>
<mount>/input</mount>
<local-mount>/relay</local-mount>
<on-demand>1</on-demand>
<relay-shoutcast-metadata>1</relay-shoutcast-metadata>
<!--
<mp3-metadata-interval>8192</mp3-metadata-interval>
<stream-name>WARP Radio Network</stream-name>
<stream-description>Where The Masses Get WARP'ed!</stream-description>
<stream-url>http://www.warp-radio.com</stream-url>
<genre>Mixed Techno Rock Comedy</genre>
-->
<no-yp>1</no-yp>
<hidden>1</hidden>
<public>0</public>
</relay>
<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.steamcast.com/sbin/yp.php</yp-url>
</directory>
<paths>
<basedir>/path/to/icecast</basedir>
<logdir>/path/to/icecast</logdir>
<webroot>/path/to/icecast</webroot>
<adminroot>/dev/null</adminroot>
<pidfile>/path/to/icecast/iceast.pid</pidfile>
<alias source="/input" dest="/input"/>
<alias source="/relay" dest="/warp-128.mp3"/>
<alias source="/" dest="/warp-128.mp3"/>
<alias source="" dest="/warp-128.mp3"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<playlistlog>playlist.log</playlistlog>
<loglevel>1</loglevel>
<logarchive>0</logarchive>
</logging>
<fileserve>0</fileserve>
</icecast>
|
I get what you're saying about the "source" name, I have been trying to load a libshout perl script for a hardware encoder interface.. but I can not find a [name] attribute to set. I will try assuming "source" once I finish this letter, thats a good call there. I'll let you know what I come up with.
The "relay" layout you see above may throw you for a loop... the idea is to assign a static attribute to a global mount- this is done so that other mounts do NOT appear at the /input mount.. mainly its own OUTPUT which causes a feedback loop in the system racks (a VERY BAD thing) the configuration you see DID work beautifully on BSD 4x.
more details upon request.
-DjZ-
UPDATE:
the issue with the libshout login has been FIXED.. I'm still runnign some more tests, but this is looking REAL good!
Karl: I owe you a beer! GREAT JOB! |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Feb 15, 2009 2:16 am Post subject: |
|
|
you probably want to revisit some of those settings. 32 bytes is not much for a burst, likewise 128kbytes is not much for the maximum queue length
karl. |
|
| Back to top |
|
 |
DJ-Zath

Joined: 11 Feb 2009 Posts: 155 Location: Western Illinois - USA
|
Posted: Sun Feb 15, 2009 3:21 am Post subject: |
|
|
hi there buddy..
yeah, I know those values are low.. I run it close to realtime this is because the input feed is UDP.. Icecast runs at a 2 second latency.. this includes the remote DJ switch-ins.. noone reports any tearing or skipping.. but I shall adjust them just the same.. the idea is a 1/sec buffer or one sample in the buffer.. keeps things low-latency..
in case you wondered, I have already tried increasing (and decreasing) the values but it was no help or has no desernable effect..
again, thanks for the suggestions.. tommorrow I'll be looking into the http auth script for the bot..
-DjZ- |
|
| Back to top |
|
 |
|