<pre><font size="4">Hi,<br><br>WE MADE THE CHANGE OF PERMISSION as chown -R sphynx:sphynx /var/log/icecast THEN ATTEMPTED TO START THE <br>SERVER BUT HERE IS THE ERROR THAT RESULTED:<br><br>[sphynx@sphynxradio ~]$ chown -R sphynx:sphynx /var/log/icecast<br>
[sphynx@sphynxradio ~]$ icecast -c /usr/local/etc/icecast.xml<br>Server startup failed. Exiting<br>[sphynx@sphynxradio ~]$ <br><br>WE ALSO DID IT AS ROOT AND RETURNED THE SAME ERROR AS FOLLOWS:<br><br>[root@sphynxradio sphynx]# chown -R sphynx:sphynx /var/log/icecast<br>
[root@sphynxradio sphynx]# icecast -c /usr/local/etc/icecast.xml<br>Server startup failed. Exiting<br><br><br>IS THERE ANY OTHER REASON FOR WHICH THE SERVER WOULD FAIL TO START? WE HOPE AND PRAY THAT YOU MAY <br>BE ABLE TO FURTHER ASSIST WITH THIS ISSUE…WE ARE GRACIUS FOR ALL YOUR EFFORTS…<br>
<br>Thank you,<br><br>Luis Barrett<br></font></pre><br><br><div class="gmail_quote">On Mon, Feb 21, 2011 at 10:10 PM, Erick Johnson <span dir="ltr"><<a href="mailto:ejohnson82@gmail.com">ejohnson82@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;">sorry, for the dup email here... my first reply was composed as html...<br>
<div class="im"><br>
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:<br>
</div><div class="im">> Hi,<br>
><br>
> WE MADE THE CHANGE OF PERMISSION FOR /VAR/LOG/ICECAST THEN LOGGED IN AS ROOT AND ATTEMPTED TO<br>
> START THE SERVER BUT HERE IS THE ERROR THAT RESULTED:<br>
><br>
> [sphynx@sphynxradio ~]$ chown sphynx.sphynx /var/log/icecast<br>
><br>
> [sphynx@sphynxradio ~]$ su<br>
> Password:<br>
> [root@sphynxradio sphynx]# icecast -c /usr/local/etc/icecast.xml<br>
> Server startup failed. Exiting<br>
> [root@sphynxradio sphynx]#<br>
><br>
> AT THIS POINT WE DON'T UNDERSTAND THE REASON FOR THE FAILED START UP…WE HOPE AND PRAY THAT YOU<br>
><br>
> MAY BE ABLE TO FURTHER ASSIST WITH THIS ISSUE…WE ARE GRACIUS FOR ALL YOUR EFFORTS…<br>
><br>
> Thank you,<br>
><br>
> Luis Barrett<br>
><br>
><br>
><br>
</div><div class="im">> On Mon, Feb 21, 2011 at 8:31 PM, Fu Kite (Eric Labelle) <<a href="mailto:eric.a.labelle@gmail.com">eric.a.labelle@gmail.com</a> <mailto:<a href="mailto:eric.a.labelle@gmail.com">eric.a.labelle@gmail.com</a>>> wrote:<br>
><br>
> my guess would be that the sphynx user does not have permission to write to the folder /var/log/icecast<br>
><br>
> try running the following command:<br>
><br>
> chown sphynx.sphynx /var/log/icecast<br>
><br>
> then as root you can execute:<br>
><br>
> icecast -c /usr/local/etc/icecast.xml<br>
><br>
> 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<br>
> seems) icecast will change the owner and group of the icecast process to what you specify (in this cast user:sphynx group:sphynx)<br>
><br>
> 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<br>
> have write access to the /var/log/icecast directory where it is trying to write the log files.<br>
><br>
> 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<br>
> to sphynx.sphynx as specified in your icecast.xml file.<br>
><br>
> Good luck!<br>
><br>
> Eric<br>
><br>
><br>
</div><div><div></div><div class="h5">> On Mon, Feb 21, 2011 at 10:40 PM, Luis Barrett <<a href="mailto:getpaid00@gmail.com">getpaid00@gmail.com</a> <mailto:<a href="mailto:getpaid00@gmail.com">getpaid00@gmail.com</a>>> wrote:<br>
><br>
> Hi,<br>
><br>
> WHEN ATTEMPTING TO START THE SERVER AS ROOT HERE IS THE ERROR WE RECEIVED…<br>
><br>
><br>
><br>
> [root@sphynxradio sphynx]# icecast -c /usr/local/etc/icecast.xml<br>
> WARNING: Couldn't change server root: No such file or directory<br>
><br>
><br>
> ERROR: You should not run icecast2 as root<br>
> Use the changeowner directive in the config file<br>
> [root@sphynxradio sphynx]#<br>
><br>
> PLEASE NOTE THAT THE CHANGEOWNER DIRECTIVE IN THE CONFIG FILE WAS PREVIOUSLY EDITED AS:<br>
><br>
><br>
><br>
><br>
><br>
> <security><br>
> <chroot>1</chroot><br>
> <!--<br>
> <changeowner><br>
> <user>root</user><br>
> <group>root</group><br>
> </changeowner><br>
><br>
><br>
><br>
><br>
><br>
><br>
> WE THEN LOGGED OUT AS ROOT AND ATTEMPTED TO START THE SERVER LOGGED IN SSH AS SPHYX<br>
> AND RECEIVED THE FOLLOWING ERROR<br>
><br>
> sphynx@sphynxradio ~]$ icecast -c /usr/local/etc/icecast.xml<br>
> WARNING: Cannot change server root unless running as root.<br>
><br>
><br>
><br>
><br>
> FATAL: could not open error logging (/var/log/icecast/error.log): Permission denied<br>
> FATAL: could not open access logging (/var/log/icecast/access.log): Permission denied<br>
> FATAL: Could not start logging<br>
> [sphynx@sphynxradio ~]$ su<br>
><br>
><br>
><br>
><br>
><br>
> PLEASE NOTE THAT THE CHANGEOWNER DIRECTIVE WAS EDITED AS SUCH PRIOR TO ATTEMPTING TO START THE SERVER...<br>
> <security><br>
> <chroot>1</chroot><br>
> <!--<br>
> <changeowner><br>
><br>
><br>
><br>
><br>
> <user>sphynx</user><br>
> <group>sphynx</group><br>
> </changeowner><br>
><br>
> 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<br>
><br>
><br>
><br>
><br>
> THIS ISSUE FOR US AS IT WOULD BE OF GREAT ASSISTANCE…<br>
><br>
> Thank you,<br>
><br>
> Luis Barrett<br>
><br>
</div></div><div class="im">> On Mon, Feb 21, 2011 at 10:01 AM, Fu Kite (Eric Labelle) <<a href="mailto:eric.a.labelle@gmail.com">eric.a.labelle@gmail.com</a> <mailto:<a href="mailto:eric.a.labelle@gmail.com">eric.a.labelle@gmail.com</a>>> wrote:<br>
><br>
> 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?<br>
><br>
> >>*Fatal: error parsing config file [icecast/usr/local/etc/icecast.xml]*<br>
> *<br>
> *<br>
> *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<br>
> 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<br>
> 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<br>
> logical... also assuming the xml is valid and the permissions on the xml file are ok what you need to run icecast would be*<br>
> *<br>
> *<br>
> *icecast -c /usr/local/etc/icecast.xml*<br>
> *<br>
> *<br>
> *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<br>
> /icecast/usr/local/etc/icecast.xml and can't find it.*<br>
><br>
> 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<br>
> 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<br>
> 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<br>
> earlier doesn't at first glance seem to me as logical.<br>
><br>
> 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<br>
> 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<br>
> message but you only give us partial information (the actual error) and not what command you are running to try and start it up.<br>
><br>
> 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<br>
> 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<br>
> - 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<br>
> permission to read it) (XML validator you can use to double check the integrity of your icecast.xml -> <a href="http://www.w3schools.com/xml/xml_validator.asp" target="_blank">http://www.w3schools.com/xml/xml_validator.asp</a>)<br>
> *<br>
> *<br>
</div><div class="im">> On Mon, Feb 21, 2011 at 12:11 PM, Luis Barrett <<a href="mailto:getpaid00@gmail.com">getpaid00@gmail.com</a> <mailto:<a href="mailto:getpaid00@gmail.com">getpaid00@gmail.com</a>>> wrote:<br>
><br>
> 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>
><br>
> Luis Barrett<br>
><br>
</div><div class="im">> On Sun, Feb 20, 2011 at 12:46 PM, Keith Roberts <<a href="mailto:keith@karsites.net">keith@karsites.net</a> <mailto:<a href="mailto:keith@karsites.net">keith@karsites.net</a>>> wrote:<br>
><br>
> On Sun, 20 Feb 2011, Geoff Shang wrote:<br>
><br>
</div>> To: Luis Barrett <<a href="mailto:getpaid00@gmail.com">getpaid00@gmail.com</a> <mailto:<a href="mailto:getpaid00@gmail.com">getpaid00@gmail.com</a>>><br>
<div><div></div><div class="h5">> From: Geoff Shang <geoff@QuiteLikely.com><br>
><br>
> Subject: Re: [Icecast] Icecast start up script for icecast<br>
><br>
> On Sun, 20 Feb 2011, Luis Barrett wrote:<br>
><br>
> 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<br>
> 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>
><br>
><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>
><br>
><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 href="http://www.karsites.net" target="_blank">http://www.karsites.net</a><br>
> <a href="http://www.php-debuggers.net" target="_blank">http://www.php-debuggers.net</a><br>
> <a 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 href="http://tmda.net" target="_blank">http://tmda.net</a>]<br>
> -----------------------------------------------------------------<br>
><br>
><br>
><br>
> _______________________________________________<br>
> Icecast mailing list<br>
</div></div>> <a href="mailto:Icecast@xiph.org">Icecast@xiph.org</a> <mailto:<a href="mailto:Icecast@xiph.org">Icecast@xiph.org</a>><br>
<div class="im">> <a href="http://lists.xiph.org/mailman/listinfo/icecast" target="_blank">http://lists.xiph.org/mailman/listinfo/icecast</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Eric Labelle<br>
> (Dubian)<br>
> ________________________________<br>
</div>> Dubearth Collective - <a href="http://www.dubearth.com" target="_blank">www.dubearth.com</a> <<a href="http://www.dubearth.com" target="_blank">http://www.dubearth.com</a>><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Icecast mailing list<br>
> <a href="mailto:Icecast@xiph.org">Icecast@xiph.org</a> <mailto:<a href="mailto:Icecast@xiph.org">Icecast@xiph.org</a>><br>
<div class="im">> <a href="http://lists.xiph.org/mailman/listinfo/icecast" target="_blank">http://lists.xiph.org/mailman/listinfo/icecast</a><br>
><br>
><br>
><br>
><br>
><br>
> --<br>
> Eric Labelle<br>
> (Dubian)<br>
> ________________________________<br>
</div>> Dubearth Collective - <a href="http://www.dubearth.com" target="_blank">www.dubearth.com</a> <<a href="http://www.dubearth.com" target="_blank">http://www.dubearth.com</a>><br>
<div class="im">><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Icecast mailing list<br>
> <a href="mailto:Icecast@xiph.org">Icecast@xiph.org</a><br>
> <a href="http://lists.xiph.org/mailman/listinfo/icecast" target="_blank">http://lists.xiph.org/mailman/listinfo/icecast</a><br>
</div><div><div></div><div class="h5">_______________________________________________<br>
Icecast mailing list<br>
<a href="mailto:Icecast@xiph.org">Icecast@xiph.org</a><br>
<a href="http://lists.xiph.org/mailman/listinfo/icecast" target="_blank">http://lists.xiph.org/mailman/listinfo/icecast</a><br>
</div></div></blockquote></div><br>