Rakotomandimby (R12y) Mihamina
2004-Dec-30 09:35 UTC
[Icecast] XML parsing error I can't find
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)
Hi: Can't see any problems. The only thing I can think of is maybe your actual config file has some funky passwords in it that the XML parser doesn't like. Have you tried parsing the file exactly as you sent it to us? Geoff. -- Geoff Shang <geoff@hitsandpieces.net> Phone: +61-418-96-5590 MSN: geoff@acbradio.org Make sure your E-mail can be read by everyone! http://www.betips.net/etc/evilmail.html Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html
Geoff Shang wrote:> Hi: > > Can't see any problems. The only thing I can think of is maybe your > actual config file has some funky passwords in it that the XML parser > doesn't like. Have you tried parsing the file exactly as you sent it to > us?more specifically, do your passwords contain any of "&><" ? if so, you will need to mask them as "&", ">" or "<"... how i know this? weeeeellllllllllllll.. :-D