Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-05-2006, 07:12 AM   #1
Registered: Jan 2005
Distribution: Ubuntu: Breezy & Dapper
Posts: 33

Rep: Reputation: 15
The source you requested could not be found - Icecast


I'm trying to set up a radio station for a game I play, and I got some advice from someone off a different forum.

After I decided to use Icecast (like they recommended) I did a little googling around, and found this guide!

I did everything step by step, and double checked everything as I went along, and once again at the very end.

I try accessing it while I have something playing in xmms, and I just get:

"The source you requested could not be found." (feel free to check for yourselves, you might have an idea why: )

I assumed it had something to do with the 'music.ogg', so I tried it without it and just left it as :8000.

That gave me a different error:

"The file you requested could not be found"

Any suggestions why I'm getting this error would be greatly appreciated.

Many Thanks in Advance
Old 06-12-2006, 09:33 PM   #2
Registered: May 2001
Posts: 149

Rep: Reputation: 17
Posting your icecast conf and your ices conf files would help.

Also, ices is pretty verbose when you start it up. For example, here's what I see when I start it up at the console...

[2006-06-12  19:32:16] INFO ices-core/main IceS 2.0.1 started...
[2006-06-12  19:32:16] INFO input-oss/oss_open_module Opened audio device /dev/dsp at 2 channel(s), 44100 Hz
[2006-06-12  19:32:16] INFO input-oss/oss_open_module Starting metadata update thread
[2006-06-12  19:32:16] INFO signals/signal_usr1_handler Metadata update requested
[root@reznor conf]# [2006-06-12  19:32:16] DBUG metadata/metadata_thread_signal reading metadata from "/usr/local/share/icecast/conf/test_meta.txt"
[2006-06-12  19:32:16] INFO metadata/metadata_thread_signal tag 1 is TITLE=TEST RADIO (NEW BUILD)
[2006-06-12  19:32:16] INFO metadata/metadata_thread_signal Updating metadata
[2006-06-12  19:32:16] INFO encode/encode_initialise Encoder initialising in VBR mode: 2 channel(s), 44100 Hz, quality 2.000000
[2006-06-12  19:32:16] INFO stream/ices_instance_stream Connected to server: localhost:8000/testradio.ogg
[2006-06-12  19:32:16] DBUG encode/encode_clear Clearing encoder engine
[2006-06-12  19:32:16] INFO encode/encode_initialise Encoder initialising in VBR mode: 2 channel(s), 44100 Hz, quality 2.000000
Do you see any output that confirms anything like this?
Old 06-13-2006, 11:29 AM   #3
Registered: Jan 2005
Distribution: Ubuntu: Breezy & Dapper
Posts: 33

Original Poster
Rep: Reputation: 15
I'll post everything from starting ices and icecast then.

tony@beng:~$ ices2 ~/.ices2/ices
ices2_config.xml   ices2_config.xml~  ices.log
tony@beng:~$ ices2 ~/.ices2/ices2_config.xml
unable to open log /home/tony/.ices2/ices.log

tony@beng:~$ icecast2 ~/.icecast2/icecast2_config.xml
Icecast 2.2.0

usage: icecast [-h -b -v] -c <file>
        -c <file>       Specify configuration file
        -h              Display usage
        -v              Display version info
        -b              Run icecast in the background

tony@beng:~$ icecast2 -c ~/.icecast2/icecast2_config.xml

And in my configuration files (I wont edit any passwords or anything out unless you think I should do)

Icecast2 Configuration
<!-- This config file contains a minimal set of configurable parameters,
     and mostly just contains the things you need to change.  We created
     this for those who got scared away from the rather large and heavily
     commented icecast.xml.dist file. -->
        <alias source="/" dest="/status.xsl"/>
      	<loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->

Ices2 Configuration
<?xml version="1.0"?>

    <!-- run in background  -->
    <!-- where logs go. -->
    <!-- size in kilobytes -->
    <!-- 1=error, 2=warn, 3=infoa ,4=debug -->
    <!-- logfile is ignored if this is set to 1 -->

    <!-- optional filename to write process id to -->
    <!-- <pidfile>/home/ices/</pidfile> -->

        <!-- metadata used for stream listing -->
            <name>Shards >> Radio</name>
            <genre>Shards -- of -- War</genre>

        <!--    Input module.

            This example uses the 'oss' module. It takes input from the
            OSS audio device (e.g. line-in), and processes it for live
            encoding.  -->
            <param name="rate">48000</param>
            <param name="channels">2</param>
            <param name="device">hw:0,0</param>
            <!-- Read metadata (from stdin by default, or -->
            <!-- filename defined below (if the latter, only on SIGUSR1) -->
            <param name="metadata">1</param>
            <param name="metadatafilename">test</param>

        <!--    Stream instance.

            You may have one or more instances here.  This allows you to
            send the same input data to one or more servers (or to different
            mountpoints on the same server). Each of them can have different
            parameters. This is primarily useful for a) relaying to multiple
            independent servers, and b) encoding/reencoding to multiple

            If one instance fails (for example, the associated server goes
            down, etc), the others will continue to function correctly.
            This example defines a single instance doing live encoding at
            low bitrate.  -->

            <!--    Server details.

                You define hostname and port for the server here, along
                with the source password and mountpoint.  -->

            <yp>1</yp>   <!-- allow stream to be advertised on YP, default 0 -->

            <!--    Live encoding/reencoding:

                channels and samplerate currently MUST match the channels
                and samplerate given in the parameters to the oss input
                module above or the remsaple/downmix section below.  -->


            <!-- stereo->mono downmixing, enabled by setting this to 1 -->

            <!-- resampling.
                Set to the frequency (in Hz) you wish to resample to, -->


I just checked this as I was posting, to make sure it was still doing what it was before, and for some reason, I can open :8000/music.ogg. I know this will most likely make this post 'pointless' now, but I wondered if anyone could give me an idea what could make it do that in the first place.

Many Thanks
Old 06-13-2006, 12:04 PM   #4
Registered: May 2001
Posts: 149

Rep: Reputation: 17
It doesn't look like you're getting ices to start...

Just to be certain, you're starting the icecast server first, then starting ices - correct?

Try these commands:

icecast2 -c ~/.icecast2/icecast2_config.xml &
ices2 ~/.ices2/ices2_config.xml &
You should see a good deal of output as I posted above, confirming initialization and mountpoints. If you don't, do a

ps aux | grep ices
Make sure one instance (and only one) of ices2 is running. If not, it may be a iptables issue.
Old 06-14-2006, 09:33 AM   #5
Registered: Jan 2005
Distribution: Ubuntu: Breezy & Dapper
Posts: 33

Original Poster
Rep: Reputation: 15
tony@beng:~$ ps aux | grep ices
tony      9252 16.3  0.4  22564  3164 pts/1    Rl+  11:01  44:05 ices2 /home/tony/.ices2/ices2_config.xml
I can open it from another computer now, so it looks like it's working, although the amount of time it takes to open it on another computer is a while (I'm assuming thats because it's running off a pretty crowded network).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix: Host found but no data record of requested type alex r Linux - Networking 4 06-26-2014 07:01 AM
Kernel Source not Found? prh MEPIS 4 10-01-2005 12:18 PM
Kernel Source not found Echo Kilo Linux - Software 10 12-29-2004 09:47 PM
Rox Source not found? Nz_Boy_2004 Linux - Software 24 05-31-2004 12:19 PM
Incorrect source drive requested when trying to install packages/components cluelessblues Mandriva 5 01-12-2004 05:05 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration