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 

FATAL: could not open error logging

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> F.A.Q.
View previous topic :: View next topic  
Author Message
EvilOverlord
Forum Admin
Forum Admin


Joined: 12 Jun 2005
Posts: 172
Location: Isle of Man

PostPosted: Mon Jun 13, 2005 7:31 pm    Post subject: FATAL: could not open error logging Reply with quote

When starting Icecast the following occurs:

Code:
FATAL: could not open error logging
FATAL: could not open access logging
FATAL: Could not start logging

This is happening because the error & access log files specified by this configuration directive
Code:
<!-- Note that if <chroot> is turned on below, these paths must both be relative to the new root, not the original root -->
<logdir>/logs</logdir>

cannot be opened by icecast. Why? Well either the directory doesn't exist, or icecast doesn't have permission to write there. In linux you change directory permissions with chmod, "man chmod" for further info.
Back to top
View user's profile Send private message Visit poster's website
geddes
Guest





PostPosted: Fri Feb 17, 2006 1:07 am    Post subject: I get this error, but my permissions are right Reply with quote

So, I think I am an idiot, because I get this error and I am _sure_ my permissions are right.

Code:

media:/usr/share/icecast2/log# ls -la
total 8
drwxr-xr-x  2 icecast2 icecast 4096 2006-02-16 20:03 .
drwxr-xr-x  5 root     root    4096 2006-02-16 20:02 ..
-rw-rw-r--  1 icecast2 icecast    0 2006-02-16 20:03 access.log
-rw-rw-r--  1 icecast2 icecast    0 2006-02-16 20:03 error.log



But, when I try to run icecast, it claims that these files aren't there...
Code:

media:/usr/share/icecast2/log# icecast2 -c /etc/icecast2/icecast.xml
Changed root successfully to "/usr/share/icecast2".
Changed groupid to 107.
Changed userid to 105.
FATAL: could not open error logging (log/error.log): No such file or directory
FATAL: could not open access logging (log/access.log): No such file or directory
FATAL: Could not start logging


I think I must be missing something pretty basic here - but what?
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Feb 17, 2006 2:12 am    Post subject: Reply with quote

avoid using the chroot for now

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





PostPosted: Thu Mar 16, 2006 9:28 am    Post subject: Reply with quote

Had the same problem:

try making paths to be relative to user u are chroot to. I copied all relavant files to folder /home/user/icecast and then set config file to following

<basedir>/home/user/icecast</basedir>

<logdir>/</logdir>
<webroot>/web</webroot>
<adminroot>/admin</adminroot>

then
touch /home/user/icecast/error.log
touch /home/user/icecast/access.log

chown user /home/user/icecast/error.log
chown user /home/user/icecast/access.log

that seemed to fix it.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> F.A.Q. 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