<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    I think you should read 'man chown', it looks to me as though<br>
    the first command you got from Fu Kite may have been a typo,<br>
    unless there is something i don't know about putting a '.' between<br>
    the user and group name in chown.<br>
    <br>
    i think what you wanted to do was (notice the colon):<br>
    <br>
    $ chown -R sphynx:sphynx /var/log/icecast<br>
    <br>
    also showing us an:<br>
    <br>
    $ ls -al /var/log/icecast<br>
    <br>
    would be very helpful.<br>
    <br>
    On 2/22/11 12:52 AM, Luis Barrett wrote:
    <blockquote
      cite="mid:AANLkTikodSJhJ1Afq0vCTwcdJDd4w_b227HN50grG1UA@mail.gmail.com"
      type="cite">
      <pre><font size="4">Hi,

WE MADE THE CHANGE OF PERMISSION FOR /VAR/LOG/ICECAST THEN LOGGED IN AS ROOT AND ATTEMPTED TO 
START THE SERVER BUT HERE IS THE ERROR THAT RESULTED:

[sphynx@sphynxradio ~]$ chown sphynx.sphynx /var/log/icecast

[sphynx@sphynxradio ~]$ su
Password: 
[root@sphynxradio sphynx]# icecast -c /usr/local/etc/icecast.xml
Server startup failed. Exiting
[root@sphynxradio sphynx]# 

AT THIS POINT WE DON'T UNDERSTAND THE REASON FOR THE FAILED START UP…WE HOPE AND PRAY THAT YOU 

MAY BE ABLE TO FURTHER ASSIST WITH THIS ISSUE…WE ARE GRACIUS FOR ALL YOUR EFFORTS…

Thank you,

Luis Barrett
</font></pre>
      <br>
      <br>
      <div class="gmail_quote">On Mon, Feb 21, 2011 at 8:31 PM, Fu Kite
        (Eric Labelle) <span dir="ltr"><<a moz-do-not-send="true"
            href="mailto:eric.a.labelle@gmail.com">eric.a.labelle@gmail.com</a>></span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">my guess would be that the sphynx user
          does not have permission to write to the folder
          /var/log/icecast
          <div>
            <br>
          </div>
          <div>try running the following command:</div>
          <div><br>
          </div>
          <div>chown sphynx.sphynx /var/log/icecast</div>
          <div><br>
          </div>
          <div>then as root you can execute:</div>
          <div><br>
          </div>
          <div>icecast -c /usr/local/etc/icecast.xml</div>
          <div><br>
          </div>
          <div>The reason you can run the icecast command as root is
            because when you set <chroot>1</chroot> in the
            <security> section (which you have done correctly it
            seems) icecast will change the owner and group of the
            icecast process to what you specify (in this cast
            user:sphynx group:sphynx)</div>
          <div><br>
          </div>
          <div>right now icecast is starting up correctly and switching
            users to sphynx on startup however things are messing up
            because the user sphynx probably does not have write access
            to the /var/log/icecast directory where it is trying to
            write the log files.</div>
          <div><br>
          </div>
          <div>So fix the permissions on /var/log/icecast and then run
            icecast as root (which is ok in this case since icecast will
            set the owner and group of the process to sphynx.sphynx as
            specified in your icecast.xml file.</div>
          <div><br>
          </div>
          <div>Good luck!</div>
          <div><br>
          </div>
          <div><font color="#888888">Eric</font>
            <div>
              <div class="h5"><br>
                <br>
                <div class="gmail_quote">On Mon, Feb 21, 2011 at 10:40
                  PM, Luis Barrett <span dir="ltr"><<a
                      moz-do-not-send="true"
                      href="mailto:getpaid00@gmail.com" target="_blank">getpaid00@gmail.com</a>></span>
                  wrote:<br>
                  <blockquote class="gmail_quote" style="margin: 0pt 0pt
                    0pt 0.8ex; border-left: 1px solid rgb(204, 204,
                    204); padding-left: 1ex;">
                    <div>
                      <div>
                        <pre><font size="4">Hi,

WHEN ATTEMPTING TO START THE SERVER AS ROOT HERE IS THE ERROR WE RECEIVED…



[root@sphynxradio sphynx]# icecast -c /usr/local/etc/icecast.xml
WARNING: Couldn't change server root: No such file or directory


ERROR: You should not run icecast2 as root
Use the changeowner directive in the config file
[root@sphynxradio sphynx]# 

PLEASE NOTE THAT THE CHANGEOWNER DIRECTIVE IN THE CONFIG FILE WAS PREVIOUSLY EDITED AS: 





<security>
        <chroot>1</chroot>
        <!--
        <changeowner>
            <user>root</user>
            <group>root</group>
        </changeowner>






WE THEN LOGGED OUT AS ROOT AND ATTEMPTED TO START THE SERVER LOGGED IN SSH AS SPHYX 
AND RECEIVED THE FOLLOWING ERROR 

sphynx@sphynxradio ~]$ icecast -c /usr/local/etc/icecast.xml
WARNING: Cannot change server root unless running as root.




FATAL: could not open error logging (/var/log/icecast/error.log): Permission denied
FATAL: could not open access logging (/var/log/icecast/access.log): Permission denied
FATAL: Could not start logging
[sphynx@sphynxradio ~]$ su





PLEASE NOTE THAT THE CHANGEOWNER DIRECTIVE WAS EDITED AS SUCH PRIOR TO ATTEMPTING TO START THE SERVER...
<security>
        <chroot>1</chroot>
        <!--
        <changeowner>




            <user>sphynx</user>
            <group>sphynx</group>
        </changeowner>

BASED ON THE NATURE OF THE ERRORS IT WOULD SEEM TO US THAT OUR ISSUES ARE IN THE PERMISSIONS…CAN YOU SHED ANY LIGHT ON 




THIS ISSUE FOR US AS IT WOULD BE OF GREAT ASSISTANCE…</font></pre>
                      </div>
                    </div>
                    Thank you,<br>
                    <font color="#888888"><font color="#888888"><br>
                        <span style="color: rgb(0, 0, 0);">Luis Barrett</span></font><br>
                      <br>
                    </font>
                    <div class="gmail_quote">
                      <div>On Mon, Feb 21, 2011 at 10:01 AM, Fu Kite
                        (Eric Labelle) <span dir="ltr"><<a
                            moz-do-not-send="true"
                            href="mailto:eric.a.labelle@gmail.com"
                            target="_blank">eric.a.labelle@gmail.com</a>></span>
                        wrote:<br>
                      </div>
                      <div>
                        <div>
                          <blockquote class="gmail_quote" style="margin:
                            0pt 0pt 0pt 0.8ex; border-left: 1px solid
                            rgb(204, 204, 204); padding-left: 1ex;">Ok
                            well you state yourself that you are getting
                            an XML error when you try to start
                            icecast... Have you attempted to validate
                            your XML? 
                            <div>
                              <div><br>
                              </div>
                              <div>>><span style="font-family:
                                  arial,sans-serif; font-size: 13px;
                                  border-collapse: collapse;"><b>Fatal:
                                    error parsing config file
                                    [icecast/usr/local/etc/icecast.xml]</b></span></div>
                              <div><font face="arial, sans-serif"><span
                                    style="border-collapse: collapse;"><b><br>
                                    </b></span></font></div>
                            </div>
                            <div><font face="arial, sans-serif"><span
                                  style="border-collapse: collapse;"><b><span
                                      style="font-weight: normal;">What
                                      command are you running to start
                                      it? i would assume it's "icecast
                                      -c
                                      /icecast/usr/local/etc/icecast.xml"
                                      which would mean to me that
                                      somehow you have a top level
                                      directory called icecast which is
                                      non-sense. I don't know of any
                                      linux system that has their /usr
                                      directory located inside any other
                                      folder (it's a top level
                                      directory) so i'm gonna go nuts
                                      and assume it's located in
                                      /usr/local/etc/icecast.xml which
                                      would seem a lot more logical...
                                      also assuming the xml is valid and
                                      the permissions on the xml file
                                      are ok what you need to run
                                      icecast would be</span></b></span></font></div>
                            <div><font face="arial, sans-serif"><span
                                  style="border-collapse: collapse;"><b><span
                                      style="font-weight: normal;"><br>
                                    </span></b></span></font></div>
                            <div><font face="arial, sans-serif"><span
                                  style="border-collapse: collapse;"><b><span
                                      style="font-weight: normal;">icecast
                                      -c /usr/local/etc/icecast.xml</span></b></span></font></div>
                            <div><font face="arial, sans-serif"><span
                                  style="border-collapse: collapse;"><b><span
                                      style="font-weight: normal;"><br>
                                    </span></b></span></font></div>
                            <div><font face="arial, sans-serif"><span
                                  style="border-collapse: collapse;"><b><span
                                      style="font-weight: normal;">That's
                                      assuming the only thing wrong with
                                      your setup is the command you are
                                      entering at the prompt... ie it's
                                      looking for the file in
                                      /icecast/usr/local/etc/icecast.xml
                                      and can't find it.</span></b></span></font></div>
                            <div><font face="arial, sans-serif"><span
                                  style="border-collapse: collapse;"><br>
                                </span></font></div>
                            <div><font face="arial, sans-serif"><span
                                  style="border-collapse: collapse;">But
                                  you know what, nobody here has any
                                  clue what your setup looks like. You
                                  have provided lots of information but
                                  most of it doesn't help diagnose your
                                  problem since for me to really know
                                  whether my solution will help you i
                                  would need to at least know what
                                  command you are running to start
                                  icecast (I'm forced to assume from the
                                  error you posted that you are running
                                  "icecast -c
                                  icecast/usr/local/etc/icecast.xml"
                                  which as i stated earlier doesn't at
                                  first glance seem to me as logical.</span></font></div>
                            <div><font face="arial, sans-serif"><span
                                  style="border-collapse: collapse;"><br>
                                </span></font></div>
                            <div><font face="arial, sans-serif"><span
                                  style="border-collapse: collapse;">PS:
                                  No one here is trying to make you
                                  waste time... everyone is trying to
                                  help based on the information you have
                                  given. Your first two email talks
                                  about locating the .pid file which of
                                  course will not be created till you
                                  start icecast... then finally you
                                  mention the error I addressed in this
                                  message but you only give us partial
                                  information (the actual error) and not
                                  what command you are running to try
                                  and start it up.</span></font></div>
                            <div><font face="arial, sans-serif"><span
                                  style="border-collapse: collapse;"><br>
                                </span></font></div>
                            <div><font face="arial, sans-serif"><span
                                  style="border-collapse: collapse;">Everyone
                                  here is doing their best to help you.
                                  None of the answers i have seen in
                                  this thread were misleading... they
                                  directly addressed the problem stated
                                  in your first two emails which it
                                  turns out were not your problem at all
                                  (you either have an error in your xml
                                  or icecast can't read the file -
                                  either you are giving it the wrong
                                  location on the command line or the
                                  user icecast is attempting to run
                                  under does not have the necessary
                                  permission to read it) (XML validator
                                  you can use to double check the
                                  integrity of your icecast.xml -> <a
                                    moz-do-not-send="true"
                                    href="http://www.w3schools.com/xml/xml_validator.asp"
                                    target="_blank">http://www.w3schools.com/xml/xml_validator.asp</a>)</span></font></div>
                            <div><font face="arial, sans-serif"><span
                                  style="border-collapse: collapse;"><span
                                    style="border-collapse: separate;
                                    font-family: arial;">
                                    <div><font face="arial, sans-serif"><span
                                          style="border-collapse:
                                          collapse;"><b><br>
                                          </b></span></font></div>
                                  </span></span></font></div>
                            <div>
                              <div class="gmail_quote">
                                <div>
                                  <div>On Mon, Feb 21, 2011 at 12:11 PM,
                                    Luis Barrett <span dir="ltr"><<a
                                        moz-do-not-send="true"
                                        href="mailto:getpaid00@gmail.com"
                                        target="_blank">getpaid00@gmail.com</a>></span>
                                    wrote:<br>
                                  </div>
                                </div>
                                <blockquote class="gmail_quote"
                                  style="margin: 0pt 0pt 0pt 0.8ex;
                                  border-left: 1px solid rgb(204, 204,
                                  204); padding-left: 1ex;">
                                  <div>
                                    <div>Hi Icecast,<br>
                                      <br>
                                      My name is Luis Barrett as you
                                      know, for past couple of days now
                                      I been having problem getting
                                      icecast started. The first thing<br>
                                      I notice that we need to have a
                                      icecast.pid file but reading the
                                      script it say when you start up
                                      icecast it will create the
                                      icecast.pid<br>
                                      file for us. So this is my
                                      question because now I'm getting
                                      upset because no one as been able
                                      be straight forward with us. We
                                      need<br>
                                      to now why can we not start up
                                      icecast? So it can create the
                                      icecast.pid file and where that in
                                      our directory that file need to
                                      go? Again<br>
                                      we have a Redhat Enterprise LS 4
                                      reading the some forum and
                                      searching online we notice
                                      everyone having the same problem
                                      on a<br>
                                      different Distro. I want to know
                                      how to start up icecast on our
                                      Distro if you now the answer
                                      please reply if you don't know the
                                      answer <br>
                                      please let me know that you don't
                                      know the answer because I respect
                                      more if don't know the answer then
                                      just prolonging the issue<br>
                                      or just direct me to the person
                                      who dose like the person who
                                      created icecast because right we
                                      are getting very upset that no one
                                      can <br>
                                      not give us a straight answer. <br>
                                      <br>
                                      Thank you,<br>
                                      <font color="#888888"><br>
                                        Luis Barrett  <br>
                                        <br>
                                      </font>
                                      <div class="gmail_quote">
                                        <div>On Sun, Feb 20, 2011 at
                                          12:46 PM, Keith Roberts <span
                                            dir="ltr"><<a
                                              moz-do-not-send="true"
                                              href="mailto:keith@karsites.net"
                                              target="_blank">keith@karsites.net</a>></span>
                                          wrote:<br>
                                        </div>
                                        <div>
                                          <div>
                                            <blockquote
                                              class="gmail_quote"
                                              style="margin: 0pt 0pt 0pt
                                              0.8ex; border-left: 1px
                                              solid rgb(204, 204, 204);
                                              padding-left: 1ex;">On
                                              Sun, 20 Feb 2011, Geoff
                                              Shang wrote:<br>
                                              <br>
                                              <blockquote
                                                class="gmail_quote"
                                                style="margin: 0pt 0pt
                                                0pt 0.8ex; border-left:
                                                1px solid rgb(204, 204,
                                                204); padding-left:
                                                1ex;">
                                                To: Luis Barrett <<a
                                                  moz-do-not-send="true"
href="mailto:getpaid00@gmail.com" target="_blank">getpaid00@gmail.com</a>><br>
                                                From: Geoff Shang
                                                <a class="moz-txt-link-rfc2396E" href="mailto:geoff@QuiteLikely.com"><geoff@QuiteLikely.com></a>
                                                <div><br>
                                                  Subject: Re: [Icecast]
                                                  Icecast start up
                                                  script for icecast<br>
                                                  <br>
                                                </div>
                                                <div>
                                                  <div>
                                                    On Sun, 20 Feb 2011,
                                                    Luis Barrett wrote:<br>
                                                    <br>
                                                    <blockquote
                                                      class="gmail_quote"
                                                      style="margin: 0pt
                                                      0pt 0pt 0.8ex;
                                                      border-left: 1px
                                                      solid rgb(204,
                                                      204, 204);
                                                      padding-left:
                                                      1ex;">
                                                      We already have
                                                      icecast install we
                                                      our just trying to
                                                      it started. In the
                                                      icecast started
                                                      script we need the
                                                      icecast.pid file
                                                      and we just want
                                                      to know were in
                                                      the directory is
                                                      the icecast.pid
                                                      file or do we have
                                                      to create one if
                                                      we do in which
                                                      directory?<br>
                                                    </blockquote>
                                                    <br>
                                                    The Icecast PID file
                                                    will be created by
                                                    Icecast itself when
                                                    it is started.<br>
                                                    <br>
                                                    The location of the
                                                    file is defined in
                                                    the config file
                                                    icecast.xml.<br>
                                                    <br>
                                                    If it's not there or
                                                    commented out, it
                                                    appears that no PID
                                                    file is created<br>
                                                    (i.e. that there's
                                                    no default
                                                    location).  I say
                                                    this because my
                                                    running<br>
                                                    Icecast server on my
                                                    home machine doesn't
                                                    seem to have one and
                                                    it's<br>
                                                    commented out in the
                                                    config file.<br>
                                                    <br>
                                                    I guess you can put
                                                    it anywhere, but
                                                    there's probably a
                                                    standard location<br>
                                                    for such things and
                                                    it may even be
                                                    specified in your
                                                    config file.<br>
                                                  </div>
                                                </div>
                                              </blockquote>
                                              <br>
                                              Hi Geoff.<br>
                                              <br>
                                              I'm running Centos 5.5 and
                                              the init process says
                                              icecast has started, but
                                              at shutdown time I get a
                                              message saying icecast is
                                              not running.<br>
                                              <br>
                                              What needs to be edited in
                                              the icecast.xml to get it
                                              to startup at boot time
                                              please?<br>
                                              <br>
                                              Regards,<br>
                                              <br>
                                              Keith<br>
                                              <br>
-----------------------------------------------------------------<br>
                                              Websites:<br>
                                              <a moz-do-not-send="true"
href="http://www.karsites.net" target="_blank">http://www.karsites.net</a><br>
                                              <a moz-do-not-send="true"
href="http://www.php-debuggers.net" target="_blank">http://www.php-debuggers.net</a><br>
                                              <a moz-do-not-send="true"
href="http://www.raised-from-the-dead.org.uk" target="_blank">http://www.raised-from-the-dead.org.uk</a><br>
                                              <br>
                                              All email addresses are
                                              challenge-response
                                              protected with<br>
                                              TMDA [<a
                                                moz-do-not-send="true"
                                                href="http://tmda.net"
                                                target="_blank">http://tmda.net</a>]<br>
-----------------------------------------------------------------<br>
                                            </blockquote>
                                          </div>
                                        </div>
                                      </div>
                                      <br>
                                      <br>
                                    </div>
                                  </div>
                                  <div>_______________________________________________<br>
                                    Icecast mailing list<br>
                                    <a moz-do-not-send="true"
                                      href="mailto:Icecast@xiph.org"
                                      target="_blank">Icecast@xiph.org</a><br>
                                    <a moz-do-not-send="true"
                                      href="http://lists.xiph.org/mailman/listinfo/icecast"
                                      target="_blank">http://lists.xiph.org/mailman/listinfo/icecast</a><br>
                                    <br>
                                  </div>
                                </blockquote>
                              </div>
                              <br>
                              <br clear="all">
                              <br>
                              -- <br>
                              Eric Labelle<br>
                              (Dubian)<br>
                              ________________________________ <br>
                              Dubearth Collective - <a
                                moz-do-not-send="true"
                                href="http://www.dubearth.com"
                                target="_blank">www.dubearth.com</a> <br>
                              <br>
                              <br>
                            </div>
                            <br>
_______________________________________________<br>
                            Icecast mailing list<br>
                            <a moz-do-not-send="true"
                              href="mailto:Icecast@xiph.org"
                              target="_blank">Icecast@xiph.org</a><br>
                            <a moz-do-not-send="true"
                              href="http://lists.xiph.org/mailman/listinfo/icecast"
                              target="_blank">http://lists.xiph.org/mailman/listinfo/icecast</a><br>
                            <br>
                          </blockquote>
                        </div>
                      </div>
                    </div>
                    <br>
                  </blockquote>
                </div>
                <br>
                <br clear="all">
                <br>
                -- <br>
                Eric Labelle<br>
                (Dubian)<br>
                ________________________________ <br>
                Dubearth Collective - <a moz-do-not-send="true"
                  href="http://www.dubearth.com" target="_blank">www.dubearth.com</a>
                <br>
                <br>
                <br>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Icecast mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Icecast@xiph.org">Icecast@xiph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.xiph.org/mailman/listinfo/icecast">http://lists.xiph.org/mailman/listinfo/icecast</a>
</pre>
    </blockquote>
  </body>
</html>