You are not logged in.

#1 2009-10-06 04:10:53

synthead
Member
Registered: 2006-05-09
Posts: 1,337

icecast log file permission woes

What's all this about?

[root@yomomma log]# ls -l | grep icecast
drwxr-xr-x 2 icecast icecast    4096 2009-10-06 00:06 icecast
[root@yomomma log]# cd icecast && ls -l
total 0
-rw-rw-r-- 1 icecast icecast 0 2009-10-06 00:06 access.log
-rw-rw-r-- 1 icecast icecast 0 2009-10-06 00:06 error.log
[root@yomomma icecast]# /etc/rc.d/icecast start
:: Starting Icecast Server                                               [BUSY] Starting icecast2
Detaching from the console
                                                                         [DONE]
[root@yomomma icecast]# Changed root successfully to "/usr/share/icecast".
Changed groupid to 1002.
Changed userid to 1002.
FATAL: could not open error logging (/var/log/icecast/error.log): No such file or directory
FATAL: could not open access logging (/var/log/icecast/access.log): No such file or directory
FATAL: Could not start logging

I have icecast.xml set to run as the user "icecast" here.

Offline

#2 2009-11-05 03:23:36

andrewjames
Member
From: Canada, Ontario, Toronto
Registered: 2009-06-09
Posts: 19
Website

Re: icecast log file permission woes

I read the same error, then found the answer to my problem at, last post on the page
http://www.murga-linux.com/puppy/viewto … 364ce2fc35

I had switched chroot to 1, the paths were not relative.  After I wrote paths relative, the server worked.

here is the copy

----

When you turn on the chroot option (change from 0 to 1) in /etc/.icecast.xml, below is the Path Section it will use. My "log" directory is in /usr/local/share/icecast. You do not need the full paths in this section.

<paths>
      <!-- basedir is only used if chroot is enabled -->
        <basedir>/usr/local/share/icecast</basedir>

        <!-- Note that if <chroot> is turned on below, these paths must both
             be relative to the new root, not the original root -->
        <logdir>/log</logdir>
        <webroot>/web</webroot>
        <adminroot>/admin</adminroot>
        <!-- <pidfile>/usr/share/icecast/icecast.pid</pidfile> -->

        <!-- Aliases: treat requests for 'source' path as being for 'dest' path
             May be made specific to a port or bound address using the "port"
             and "bind-address" attributes.
          -->
        <!--
        <alias source="/foo" dest="/bar"/>
          -->
        <!-- Aliases: can also be used for simple redirections as well,
             this example will redirect all requests for http://server:port/ to
             the status page
          -->
        <alias source="/usr/local/share/icecast/web" dest="/status.xsl"/>
    </paths>

andrew james

Offline

Board footer

Powered by FluxBB