View previous topic :: View next topic |
Author |
Message |
EvilOverlord Forum Admin
Joined: 12 Jun 2005 Posts: 173 Location: Isle of Man
|
Posted: Mon Jun 13, 2005 7:31 pm Post subject: FATAL: could not open error logging |
|
|
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 |
|
|
geddes Guest
|
Posted: Fri Feb 17, 2006 1:07 am Post subject: I get this error, but my permissions are right |
|
|
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
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Feb 17, 2006 2:12 am Post subject: |
|
|
avoid using the chroot for now
karl. |
|
Back to top |
|
|
PC_PC_PC Guest
|
Posted: Thu Mar 16, 2006 9:28 am Post subject: |
|
|
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 |
|
|
|