Eric L. Brown
2004-Aug-06 14:23 UTC
[icecast] cannot get icecast and ices to talk...authentication failed
I have a weird one... I installed icecast 2 and ices .23 on Mandake, and am not having any luck I compiled and installed the nightly icecast just today. It seems to work fine, however when I telnet to it (10.0.0.3, port 8000), I am unable to login unless the first line contains ONLY the password. I used ethereal to see that iceS is trying to send to authenticate, and it is sending (as the first line): ------------------------ SOURCE hackme /example1.ogg <p>And then some other information (separated by a single \n), and after the \n\n (double CR combo), it fails, and I am getting ------------------------ Error during send: Mount failed on http://10.0.0.3:8000/example1.ogg, error: Could not login on server. Server message: HTTP/1.0 401 Authentication Required <p>I feel kinda dumb in that I think that cannot really be this difficult, but I am at a stand still. Here are the config files: icecast.xml 2.x (nightly build) ------------------------------- <icecast> <location>Not Currently Used</location> <admin>Not Currently Used</admin> <limits> <clients>100</clients> <sources>2</sources> <threadpool>5</threadpool> <queue-size>102400</queue-size> <client-timeout>30</client-timeout> <header-timeout>15</header-timeout> <source-timeout>10</source-timeout> </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><a href="http://www.oddsock.org/cgi-bin/yp-cgi</yp-url">http://www.oddsock.org/cgi-bin/yp-cgi</yp-url</a>> </directory> --> <hostname>localhost</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>--> <!-- <relay> <server>127.0.0.1</server> <port>8001</port> <mount>/example.ogg</mount> <local-mount>/different.ogg</local-mount> <relay-shoutcast-metadata>0</relay-shoutcast-metadata> </relay> --> <mount> <mount-name>/example1.ogg</mount-name> <username>othersource</username> <password>hell0</password> <max-listeners>1</max-listeners> <!-- <dump-file>/tmp/dump-example1.ogg</dump-file> --> <fallback-mount>/example2.ogg</fallback-mount> </mount> <fileserve>1</fileserve> <paths> <basedir>/usr/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>/var/www/html</webroot> </paths> <logging> <accesslog>access.log</accesslog> <errorlog>error.log</errorlog> <loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error --> </logging> <security> <chroot>0</chroot> <changeowner> <user>icecast</user> <group>icecast</group> </changeowner> --> </security> </icecast> ices.conf 0.2.3 --------------- <?xml version="1.0"?> <ices:Configuration xmlns:ices="http://www.icecast.org/projects/ices"> <Playlist> <!-- This is the filename used as a playlist when using the builtin playlist handler. --> <File>apan.txt</File> <!-- Set this to 0 if you don't want to randomize your playlist, and to 1 if you do. --> <Randomize>1</Randomize> <!-- Either builtin, perl, or python. --> <Type>builtin</Type> <!-- Module name to pass to the playlist handler if using perl or python. If you use the builtin playlist handler then this is ignored --> <Module>playlist</Module> </Playlist> <Execution> <!-- Set this to 1 if you want ices to launch in the background as a daemon --> <Background>0</Background> <!-- Set this to 1 if you want to see more verbose output from ices --> <Verbose>1</Verbose> <!-- This directory specifies where ices should put the logfile, cue file and pid file (if daemonizing). --> <BaseDirectory>/tmp</BaseDirectory> </Execution> <Stream> <Server> <!-- Hostname or ip of the icecast server you want to connect to --> <Hostname>10.0.0.3</Hostname> <!-- Port of the same --> <Port>8000</Port> <!-- Encoder password on the icecast server --> <Password>hackme</Password> <!-- Header protocol to use when communicating with the server. Use xaudiocast for icecast, or icy for shoutcast compatibility --> <Protocol>xaudiocast</Protocol> </Server> <!-- The name of the mountpoint on the icecast server --> <Mountpoint>/example1.ogg</Mountpoint> <!-- The name of the dumpfile on the server for your stream. DO NOT set this unless you know what you're doing. <Dumpfile>ices.dump</Dumpfile> --> <!-- The name of you stream, not the name of the song! --> <Name>Cool ices default name from XML</Name> <!-- Genre of your stream, be it rock or pop or whatever --> <Genre>Cool ices genre from XML</Genre> <!-- Longer description of your stream --> <Description>Cool ices description from XML</Description> <!-- URL to a page describing your stream --> <URL>Cool ices URL from XML</URL> <!-- 0 if you don't want the icecast server to publish your stream on the yp server, 1 if you do --> <Public>0</Public> <!-- Stream bitrate, used to specify bitrate if reencoding, otherwise just used for display on yp and on the server. Try to keep it accurate --> <Bitrate>128</Bitrate> <!-- If this is set to 1, and ices is compiled with liblame support, ices will reencode the stream on the fly to the stream bitrate. --> <Reencode>0</Reencode> <!-- Number of channels to reencode to, 1 for mono or 2 for stereo --> <Channels>2</Channels> </Stream> </ices:Configuration> --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Jesse Miller
2004-Aug-06 14:23 UTC
[icecast] cannot get icecast and ices to talk...authentication failed
Looks like in your icecast config your using hell0 as the password but in the ices config your using hackme. On Fri, 4 Apr 2003, Eric L. Brown wrote:> I have a weird one... > I installed icecast 2 and ices .23 on Mandake, and am not having any luck > I compiled and installed the nightly icecast just today. > > It seems to work fine, however when I telnet to it (10.0.0.3, port 8000), > I am unable to login unless the first line contains ONLY the password. > > I used ethereal to see that iceS is trying to send to authenticate, and it > is sending (as the first line): > ------------------------ > SOURCE hackme /example1.ogg > > > And then some other information (separated by a single \n), and after the > \n\n (double CR combo), it fails, and I am getting > ------------------------ > Error during send: Mount failed on http://10.0.0.3:8000/example1.ogg, > error: Could not login on server. Server message: HTTP/1.0 401 > Authentication Required > > > I feel kinda dumb in that I think that cannot really be this difficult, > but I am at a stand still. Here are the config files: > > icecast.xml 2.x (nightly build) > ------------------------------- > <icecast> > <location>Not Currently Used</location> > <admin>Not Currently Used</admin> > > <limits> > <clients>100</clients> > <sources>2</sources> > <threadpool>5</threadpool> > <queue-size>102400</queue-size> > <client-timeout>30</client-timeout> > <header-timeout>15</header-timeout> > <source-timeout>10</source-timeout> > </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><a href="http://www.oddsock.org/cgi-bin/yp-cgi</yp-url">http://www.oddsock.org/cgi-bin/yp-cgi</yp-url</a>> > </directory> > --> > > <hostname>localhost</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>--> > <!-- > <relay> > <server>127.0.0.1</server> > <port>8001</port> > <mount>/example.ogg</mount> > <local-mount>/different.ogg</local-mount> > > <relay-shoutcast-metadata>0</relay-shoutcast-metadata> > </relay> > --> > > <mount> > <mount-name>/example1.ogg</mount-name> > > <username>othersource</username> > <password>hell0</password> > > <max-listeners>1</max-listeners> > <!-- <dump-file>/tmp/dump-example1.ogg</dump-file> --> > <fallback-mount>/example2.ogg</fallback-mount> > </mount> > > <fileserve>1</fileserve> > > <paths> > <basedir>/usr/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>/var/www/html</webroot> > </paths> > > <logging> > <accesslog>access.log</accesslog> > <errorlog>error.log</errorlog> > <loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error > --> > </logging> > > <security> > <chroot>0</chroot> > <changeowner> > <user>icecast</user> > <group>icecast</group> > </changeowner> --> > </security> > </icecast> > > ices.conf 0.2.3 > --------------- > <?xml version="1.0"?> > <ices:Configuration xmlns:ices="http://www.icecast.org/projects/ices"> > <Playlist> > <!-- This is the filename used as a playlist when using the builtin > playlist handler. --> > <File>apan.txt</File> > <!-- Set this to 0 if you don't want to randomize your playlist, and to > 1 if you do. --> > <Randomize>1</Randomize> > <!-- Either builtin, perl, or python. --> > <Type>builtin</Type> > <!-- Module name to pass to the playlist handler if using perl or > python. > If you use the builtin playlist handler then this is ignored --> > <Module>playlist</Module> > </Playlist> > > <Execution> > <!-- Set this to 1 if you want ices to launch in the background as a > daemon --> > <Background>0</Background> > <!-- Set this to 1 if you want to see more verbose output from ices --> > <Verbose>1</Verbose> > <!-- This directory specifies where ices should put the logfile, cue file > and pid file (if daemonizing). --> > <BaseDirectory>/tmp</BaseDirectory> > </Execution> > > <Stream> > <Server> > <!-- Hostname or ip of the icecast server you want to connect to --> > <Hostname>10.0.0.3</Hostname> > <!-- Port of the same --> > <Port>8000</Port> > <!-- Encoder password on the icecast server --> > <Password>hackme</Password> > <!-- Header protocol to use when communicating with the server. > Use xaudiocast for icecast, or icy for shoutcast compatibility --> > <Protocol>xaudiocast</Protocol> > </Server> > > <!-- The name of the mountpoint on the icecast server --> > <Mountpoint>/example1.ogg</Mountpoint> > <!-- The name of the dumpfile on the server for your stream. DO NOT set > this unless you know what you're doing. > <Dumpfile>ices.dump</Dumpfile> > --> > <!-- The name of you stream, not the name of the song! --> > <Name>Cool ices default name from XML</Name> > <!-- Genre of your stream, be it rock or pop or whatever --> > <Genre>Cool ices genre from XML</Genre> > <!-- Longer description of your stream --> > <Description>Cool ices description from XML</Description> > <!-- URL to a page describing your stream --> > <URL>Cool ices URL from XML</URL> > <!-- 0 if you don't want the icecast server to publish your stream on > the yp server, 1 if you do --> > <Public>0</Public> > > <!-- Stream bitrate, used to specify bitrate if reencoding, otherwise > just used for display on yp and on the server. Try to keep it > accurate --> > <Bitrate>128</Bitrate> > <!-- If this is set to 1, and ices is compiled with liblame support, > ices will reencode the stream on the fly to the stream bitrate. --> > <Reencode>0</Reencode> > <!-- Number of channels to reencode to, 1 for mono or 2 for stereo --> > <Channels>2</Channels> > </Stream> > </ices:Configuration> > > --- >8 ---- > List archives: http://www.xiph.org/archives/ > icecast project homepage: http://www.icecast.org/ > To unsubscribe from this list, send a message to 'icecast-request@xiph.org' > containing only the word 'unsubscribe' in the body. No subject is needed. > Unsubscribe messages sent to the list will be ignored/filtered. >--- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Michael Smith
2004-Aug-06 14:23 UTC
[icecast] cannot get icecast and ices to talk...authentication failed
> It seems to me, that sourcing with ices does not work on any mountpoint > which is defined with a <mount> in icecast.xml. Either changing the target > mountpoint in the ices configuration, or removing the <mount> section from > the icecast configuration fixed this for me. > > Is this a correct diagnosis? It is quite reproducable with my packages, at > least. This would seem to be a rather significant discrepancy in the > example configurations, or perhaps just confusion as a result of a complete > lack of documentation.No. My local configuration defines <mount> elements for several of my mountpoints. It works. Mike --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Eric L. Brown
2004-Aug-06 14:23 UTC
[icecast] cannot get icecast and ices to talk...authenticationfailed
I just tried with no mountpoint information, and I get the same results, icecast is still not accepting 'SOURCE hackme' as the first header, it only wants the password (verified by telneting in). So, how to I recompile libshout2 into the ices2beta? It doesn't want to take the command-line param, or the in.so.conf file setting (or the LIBDIR evn variable)... Or, can someone give me a knwon working ices.conf (ices 0.2.3) and icecast.xml (ver 2) to test with? Or, is there a better streamer that uses the command line? It's tempting to go back to shoutcast, but I'm really interested in getting icecast to work based on the feedback I've read about it!! Help!? Eric <p>> On Thursday 03 April 2003 09:30 pm, Eric L. Brown wrote:>> I have a weird one... >> I installed icecast 2 and ices .23 on Mandake, and am not having any >> luck >> I compiled and installed the nightly icecast just today. > > I've just finished building Debian packages of all of the software in > question. I ran into the same problem during testing. > >> I feel kinda dumb in that I think that cannot really be this difficult, >> but I am at a stand still. Here are the config files: > > It seems to me, that sourcing with ices does not work on any mountpoint > which is defined with a <mount> in icecast.xml. Either changing the > target > mountpoint in the ices configuration, or removing the <mount> section from > the > icecast configuration fixed this for me. > > Is this a correct diagnosis? It is quite reproducable with my packages, > at > least. This would seem to be a rather significant discrepancy in the > example > configurations, or perhaps just confusion as a result of a complete lack > of > documentation. > > - Keegan > > (snipped configuration points below) > >> icecast.xml 2.x (nightly build) >> ------------------------------- >> <icecast> > *snip* >> <mount> >> <mount-name>/example1.ogg</mount-name> >> >> <username>othersource</username> >> <password>hell0</password> >> >> <max-listeners>1</max-listeners> >> <!-- <dump-file>/tmp/dump-example1.ogg</dump-file> --> >> <fallback-mount>/example2.ogg</fallback-mount> >> </mount> > *snip* >> </icecast> >> >> ices.conf 0.2.3 >> --------------- >> <?xml version="1.0"?> >> <ices:Configuration xmlns:ices="http://www.icecast.org/projects/ices"> > *snip* >> <!-- The name of the mountpoint on the icecast server --> >> <Mountpoint>/example1.ogg</Mountpoint> > *snip* >> </ices:Configuration> > > > --- >8 ---- > List archives: http://www.xiph.org/archives/ > icecast project homepage: http://www.icecast.org/ > To unsubscribe from this list, send a message to > 'icecast-request@xiph.org' > containing only the word 'unsubscribe' in the body. No subject is needed. > Unsubscribe messages sent to the list will be ignored/filtered. >--- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Brendan Cully
2004-Aug-06 14:23 UTC
[icecast] cannot get icecast and ices to talk...authentication failed
On Friday, 04 April 2003 at 00:30, Eric L. Brown wrote:> I have a weird one... > I installed icecast 2 and ices .23 on Mandake, and am not having any luck > I compiled and installed the nightly icecast just today. > > It seems to work fine, however when I telnet to it (10.0.0.3, port 8000), > I am unable to login unless the first line contains ONLY the password. > > I used ethereal to see that iceS is trying to send to authenticate, and it > is sending (as the first line): > SOURCE hackme /example1.oggYou need a snapshot version of ices (www.xiph.org/~brendan) and libshout 2, then you need to change your protocol to http. Alternatively you can use the icy protocol with your current version. icecast2 doesn't use the xaudiocast protocol used by icecast 1. --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
when you fetch the stuff from www.icecast.org/~brendan/, namely his updated version of ices 0.2.3 and libshout 2, it works quite well. I'm webasting 2600.com's OTH show, using ices 0.2.3 and icecast 2. it works very well. url: http://tetter.xs4all.nl:8000/oth.mp3 boink On Fri, Apr 04, 2003 at 03:16:54AM -0500, Brendan Cully wrote:> On Friday, 04 April 2003 at 00:30, Eric L. Brown wrote: > > I have a weird one... > > I installed icecast 2 and ices .23 on Mandake, and am not having any luck > > I compiled and installed the nightly icecast just today. > > > > It seems to work fine, however when I telnet to it (10.0.0.3, port 8000), > > I am unable to login unless the first line contains ONLY the password. > > > > I used ethereal to see that iceS is trying to send to authenticate, and it > > is sending (as the first line): > > SOURCE hackme /example1.ogg > > You need a snapshot version of ices (www.xiph.org/~brendan) and > libshout 2, then you need to change your protocol to http. > > Alternatively you can use the icy protocol with your current > version. icecast2 doesn't use the xaudiocast protocol used by icecast > 1. > --- >8 ---- > List archives: http://www.xiph.org/archives/ > icecast project homepage: http://www.icecast.org/ > To unsubscribe from this list, send a message to 'icecast-request@xiph.org' > containing only the word 'unsubscribe' in the body. No subject is needed. > Unsubscribe messages sent to the list will be ignored/filtered.-- <p>je ne cherche pas, je trouve (Picasso) <p>--- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Eric L. Brown
2004-Aug-06 14:23 UTC
[icecast] cannot get icecast and ices to talk...authenticationfailed
I've tried icy...not much luck there. But, I've only used icecast 2, using xaudiocast, but don't know a good way to tell the version to be absolutely sure. I got libshout2, compiled, and installed, but the ices2beta cannot seem to find it?! I set LIBDIR = /usr/local/lib (where the install indicated the lishout files were), updated the ls.so.conf, and even used the --libdir=/usr/local/lib flag when trying to complie ices2beta, to not avail. What do I need to do to get libshout to be recognized? BTW, sorry about leaving in my hell0 password, they are all the same, but I changed them all to hackme for the email...guess I don't need to do that anymore :) Thanks for the advice so far! Eric> On Friday, 04 April 2003 at 00:30, Eric L. Brown wrote: >> I have a weird one... >> I installed icecast 2 and ices .23 on Mandake, and am not having any >> luck >> I compiled and installed the nightly icecast just today. >> >> It seems to work fine, however when I telnet to it (10.0.0.3, port >> 8000), >> I am unable to login unless the first line contains ONLY the password. >> >> I used ethereal to see that iceS is trying to send to authenticate, and >> it >> is sending (as the first line): >> SOURCE hackme /example1.ogg > > You need a snapshot version of ices (www.xiph.org/~brendan) and > libshout 2, then you need to change your protocol to http. > > Alternatively you can use the icy protocol with your current > version. icecast2 doesn't use the xaudiocast protocol used by icecast > 1. > --- >8 ---- > List archives: http://www.xiph.org/archives/ > icecast project homepage: http://www.icecast.org/ > To unsubscribe from this list, send a message to > 'icecast-request@xiph.org' > containing only the word 'unsubscribe' in the body. No subject is needed. > Unsubscribe messages sent to the list will be ignored/filtered. >--- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Keegan Quinn
2004-Aug-06 14:23 UTC
[icecast] cannot get icecast and ices to talk...authentication failed
On Thursday 03 April 2003 09:30 pm, Eric L. Brown wrote:> I have a weird one... > I installed icecast 2 and ices .23 on Mandake, and am not having any luck > I compiled and installed the nightly icecast just today.I've just finished building Debian packages of all of the software in question. I ran into the same problem during testing.> I feel kinda dumb in that I think that cannot really be this difficult, > but I am at a stand still. Here are the config files:It seems to me, that sourcing with ices does not work on any mountpoint which is defined with a <mount> in icecast.xml. Either changing the target mountpoint in the ices configuration, or removing the <mount> section from the icecast configuration fixed this for me. Is this a correct diagnosis? It is quite reproducable with my packages, at least. This would seem to be a rather significant discrepancy in the example configurations, or perhaps just confusion as a result of a complete lack of documentation. - Keegan (snipped configuration points below)> icecast.xml 2.x (nightly build) > ------------------------------- > <icecast>*snip*> <mount> > <mount-name>/example1.ogg</mount-name> > > <username>othersource</username> > <password>hell0</password> > > <max-listeners>1</max-listeners> > <!-- <dump-file>/tmp/dump-example1.ogg</dump-file> --> > <fallback-mount>/example2.ogg</fallback-mount> > </mount>*snip*> </icecast> > > ices.conf 0.2.3 > --------------- > <?xml version="1.0"?> > <ices:Configuration xmlns:ices="http://www.icecast.org/projects/ices">*snip*> <!-- The name of the mountpoint on the icecast server --> > <Mountpoint>/example1.ogg</Mountpoint>*snip*> </ices:Configuration><p>--- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Apparently Analagous Threads
- cannot get icecast and ices to talk...authentication failed
- cannot get icecast and ices to talk...authenticationfailed
- cannot get icecast and ices to talk...authenticationfailed
- cannot get icecast and ices totalk...authenticationfailed
- cannot get icecast and ices to talk...authentication failed