Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

File Permission Problems in KNOPPIX

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Thu Jan 25, 2007 12:26 pm    Post subject: File Permission Problems in KNOPPIX Reply with quote

Hiya!
At the moment I am rematering KNOPPIX for my company, and it has to have different servers running, like NFS, DHCP and IceCast.
After solving all the issues with the other daemons, IceCast remains my only problem and for me it's unsolveable.

I installed the IceCast2 Package from the KNOPPIX/Debian repositories and of course libxslt and libxml2, but when I try to start the server - as user KNOPPIX - it tells me that it doesn't have the permission to write the logfiles and therefore refuses to start. Ok, no problem. I inserted the changeowner directive (user: icecast2 group: icecast) into the icecast.xml and now I can start it via 'sudo icecast2 -c /etc/icecast2/icecast.xml' and it changes the uid/gid without any problems.
Doesn't sound like a big deal, does it?
After it started up I - of course - open localhost:8000 in my browser and I get the error "Could not parse XSLT file".
After some research via google I traced this error back to wrong file permissions [1], so I chmodded the paths to /web and /admin etc. (even the logdir [/var/log]) as 666 and chowned them to icecast2:icecast.
Should be working then - I thought...
But it still refuses working. Even copying every needed files to my users homedir and changing the icecast.xml (and of course changing the permissions) did not work.

I don't know whether it is a problem of icecast or KNOPPIX itself, but I thought that it's better to ask here than on the KNOPPIX mailing list.
Hope anyone can help me.


Greetings from Germany
Unrest

[1]
[2007-01-25 12:27:04] WARN xslt/xslt_get_stylesheet Error checking for stylesheet file "/home/knoppix/.icecast/icecast2/web/status.xsl": Permission denied
[2007-01-25 12:27:04] EROR xslt/xslt_transform problem reading stylesheet "/home/knoppix/.icecast/icecast2/web/status.xsl"
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Jan 25, 2007 2:00 pm    Post subject: Reply with quote

The installed package of icecast has been done by the knoppix people so they are the best people to ask on what they have done wrong. I would suggest you don't run as root (avoid changeowner/chroot unless you know what you are doing) and make sure icecast can write to those log files and of course the log directory. If the xsl files can not be read then it will be because one of the path elements is not accessible, you just have to find which one.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Fri Jan 26, 2007 7:25 am    Post subject: Reply with quote

They should be accessible, because of the following:
Quote:
chown icecast2:icecast -R /etc/icecast2/
chmod 666 -R /etc/icecast2/
chown icecast2:icecast -R /var/log/icecast2/
chmod 666 -R /var/log/icecast2/
etc.

So all the directories neede for/by icecast belong to and are readable and writeable for the user i <changeowner>'d it to...
But you're right: I'd better ask the KNOPPIX people.

greeting
Unrest
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber