Error while starting icetime as root
  • Here is my icecast.xml file with the important parts about paths

    paths>
                    <!-- basedir is only used if chroot is enabled -->
            <basedir>/usr/share/icecast2</basedir>
            <!-- Note that if <chroot> is turned on below, these paths must both
                 be relative to the new root, not the original root -->
            <logdir>/var2/log/icecast2</logdir>
            <webroot>/usr/share/icecast2/web</webroot>
            <adminroot>/usr/share/icecast2/admin</adminroot>
            <!-- <pidfile>/usr/share/icecast2/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" destination="/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="/" destination="/status.xsl"/>
        </paths>

        <logging>
            <accesslog>access.log</accesslog>
            <errorlog>error.log</errorlog>
            <!-- <playlistlog>playlist.log</playlistlog> -->
            <loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
            <logsize>10000</logsize> <!-- Max size of a logfile -->
            <!-- If logarchive is enabled (1), then when logsize is reached
                 the logfile will be moved to [error|access|playlist].log.DATESTAMP,
                 otherwise it will be moved to [error|access|playlist].log.old.
                 Default is non-archive mode (i.e. overwrite)
            -->
            <!-- <logarchive>1</logarchive> -->
        </logging>

        <security>
            <chroot>1</chroot>

    However, when I start it as root, it errors as follows:

    Changed root successfully to "/usr/share/icecast2".
    Changed groupid to 118.
    Changed supplementary groups based on user: icecast2.
    Changed userid to 109.
    FATAL: could not open error logging (/var2/log/icecast2/error.log): No such file or directory
    FATAL: could not open access logging (/var2/log/icecast2/access.log): No such file or directory
    FATAL: Could not start logging

    Any suggestions?
  • 1 Comment sorted by
  • the normal log file is /var/log/icecast2/error.log and /var/log/icecast2/access.log

    if you need to use other log files then you need to create them

    please read


    http://icecast.org/docs/icecast-2.3.0/config-file.html

    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.