[Icecast] XML parsing error I can't find

Rakotomandimby (R12y) Mihamina mihamina at mail.rktmb.org
Thu Dec 30 07:08:24 UTC 2004


Hello,
I'm running Debian/Linux and installed the Debian package of Icecast.
It's 2.2.0 one.
I got a parsing error I can't detect.
When launching Icecast :
[...]
Starting icecast2: Starting icecast2
Detaching from the console
I/O warning : failed to load external entity "/etc/icecast2/icecast.xml"
FATAL: error parsing config file (/etc/icecast2/icecast.xml)
XML config parsing error
[...]

- Permission on /etc/icecast2/icecast.xml is "all can read"
- error.log does not tell me nothing (obviuos: the deamon is not
launched)
- on Debian, the owner is changed by the rc script (it overrides the
changeowner directive in icecast.xml)

Would you help me to find it out?
I paste you the conf file (passwords are fake :-) )...

<icecast>
    <limits>
        <clients>100</clients>
        <sources>2</sources>
        <threadpool>5</threadpool>
        <queue-size>102400</queue-size>
        <client-timeout>30</client-timeout>
        <header-timeout>15</header-timeout>
        <source-timeout>10</source-timeout>
        <burst-on-connect>1</burst-on-connect>

        <burst-size>65535</burst-size>
    </limits>
    <authentication>
        <!-- Sources log in with username 'source' -->
        <source-password>xxxxxx</source-password>
        <!-- Relays log in username 'relay' -->
        <relay-password>xxxxx</relay-password>
        <admin-user>xxxxxx</admin-user>
        <admin-password>xxxxxx</admin-password>
    </authentication>
    <directory>
        <yp-url-timeout>15</yp-url-timeout>
        <yp-url>http://www.oddsock.org/cgi-bin/yp-cgi</yp-url>
    </directory>
    <hostname>mail</hostname>
    <listen-socket>
        <port>8000</port>
        <!-- <bind-address>127.0.0.1</bind-address> -->
    </listen-socket>
    <!--
    <relay>
        <server>127.0.0.1</server>
        <port>8001</port>
        <mount>/example.ogg</mount>
        <local-mount>/different.ogg</local-mount>

        <relay-shoutcast-metadata>0</relay-shoutcast-metadata>
    </relay>
    -->
    <fileserve>1</fileserve>
    <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>/var/log/icecast2</logdir>
        <webroot>/usr/share/icecast2/web</webroot>
        <adminroot>/usr/share/icecast2/admin</adminroot>
        <!-- <pidfile>/usr/share/icecast2/icecast.pid</pidfile> -->

    </paths>

    <logging>
        <accesslog>access.log</accesslog>
        <errorlog>error.log</errorlog>
        <!-- <playlistlog>playlist.log</playlistlog> -->
        <loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
    </logging>

    <security>
        <chroot>0</chroot>
    </security>
</icecast>
-- 
ASPO Infogérance       http://aspo.rktmb.org/activites/infogerance
Unofficial FAQ fcolc   http://faq.fcolc.eu.org/
LUG sur Orléans et alentours.
Tél : 02 38 76 43 65 (France)




More information about the Icecast mailing list