Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Icecast error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Kramins
n00b
n00b


Joined: 19 Jun 2004
Posts: 10

PostPosted: Thu Jul 29, 2004 4:12 pm    Post subject: Icecast error Reply with quote

FATAL: could not open error logging
FATAL: could not open access logging
FATAL: Could not start logging

I have no idea why this is, i have given the right permissions i`m not chrooting i gave it the right path, and now i need some help.
:)
Back to top
View user's profile Send private message
blixel
Guru
Guru


Joined: 19 Jul 2004
Posts: 403
Location: Central, Florida

PostPosted: Tue Aug 03, 2004 9:50 pm    Post subject: Re: Icecast error Reply with quote

Kramins wrote:
FATAL: could not open error logging
FATAL: could not open access logging
FATAL: Could not start logging

I have no idea why this is, i have given the right permissions i`m not chrooting i gave it the right path, and now i need some help.
:)


I'm getting the same thing ... can't figure it out either. I'm running icecast as my normal user and created a directory for the logfiles in my own home directory. I've configured the /etc/icecast2/icecast.xml to write the log files to that location.
Back to top
View user's profile Send private message
Skorgu
n00b
n00b


Joined: 10 Sep 2003
Posts: 39

PostPosted: Wed Aug 11, 2004 8:26 pm    Post subject: Reply with quote

*bump*

I'm having the same problem. If I run as root, it just dies quietly with no errors at all.
_________________
"I paid for four wheels, make 'em all drive"
Back to top
View user's profile Send private message
Woody
Guru
Guru


Joined: 30 Nov 2002
Posts: 592
Location: Milwaukee

PostPosted: Thu Aug 12, 2004 5:09 am    Post subject: Reply with quote

What user group are you running as? Are the directories and log
files accesible to that user?

Quote:
<paths>
<!-- basedir is only used if chroot is enabled -->
<basedir>/usr/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>/usr/share/icecast/log</logdir>
<webroot>/usr/share/icecast/web</webroot>
<adminroot>/usr/share/icecast/admin</adminroot>
</paths>

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

<security>
<chroot>0</chroot>
<changeowner>
<user>icecast</user>
<group>icecast</group>
</changeowner>
</security>
</icecast>


User/group for all files in /use/share/icecast belong to the icecast
user I created. I hope that helps...I think I had similar problems
but can't remember. It works now so hopefully the config settings
can be compared.

Actually I think my problem had to with trying to use chroot. Even
after specifying relative paths it didn't work.
Back to top
View user's profile Send private message
Skorgu
n00b
n00b


Joined: 10 Sep 2003
Posts: 39

PostPosted: Thu Aug 12, 2004 6:34 am    Post subject: Reply with quote

Edit: Nevermind. I think the problem was twofold: if you don't use chroot, you can't use relative paths. Also, even if icecast has the perms to create the directory, it won't. So, what I needed to do was make sure all the dirs existed, had the right perms, AND were absolute paths in icecast.xml.

Thanks for all the help. Config posted below

Code:

<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>
    </limits>

    <authentication>
        <!-- Sources log in with username 'source' -->
        <source-password>REPLACE</source-password>
        <!-- Relays log in username 'relay' -->
        <relay-password>REPLACE</relay-password>

        <!-- Admin logs in with the username given below -->
        <admin-user>admin</admin-user>
        <admin-password>REPLACE</admin-password>
    </authentication>

    <!-- Uncomment this if you want directory listings -->
    <!--
    <directory>
        <yp-url-timeout>15</yp-url-timeout>
        <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
    </directory>
    <directory>
        <yp-url-timeout>15</yp-url-timeout>
        <yp-url>http://www.oddsock.org/cgi-bin/yp-cgi</yp-url>
    </directory>
     -->

    <hostname>localhost</hostname>

    <!-- You can use these two if you only want a single listener -->
    <!--<port>8000</port> -->
    <!--<bind-address>127.0.0.1</bind-address>-->

    <!-- You may have multiple <listener> elements -->
    <listen-socket>
        <port>8000</port>
        <!-- <bind-address>127.0.0.1</bind-address> -->
    </listen-socket>
    <!--
    <listen-socket>
        <port>8001</port>
    </listen-socket>
    -->

    <!--<master-server>127.0.0.1</master-server>-->
    <!--<master-server-port>8001</master-server-port>-->
    <!--<master-update-interval>120</master-update-interval>-->
    <!--<master-password>hackme</master-password>-->
    <!--
    <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>
    -->

    <!-- Only define a <mount> section if you want to use advanced options,
         like alternative usernames or passwords
    <mount>
        <mount-name>/example-complex.ogg</mount-name>

        <username>othersource</username>
        <password>hackmemore</password>

        <max-listeners>1</max-listeners>
        <dump-file>/tmp/dump-example1.ogg</dump-file>
        <fallback-mount>/example2.ogg</fallback-mount>
    </mount>
    -->

    <fileserve>1</fileserve>

    <paths>
                <!-- basedir is only used if chroot is enabled -->
        <basedir>/usr/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>/var/lib/log/icecast</logdir>
        <webroot>/usr/share/icecast/web</webroot>
        <adminroot>/usr/share/icecast/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"/>
          -->
    </paths>

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

    <security>

        <chroot>0</chroot>
        <changeowner>
            <user>nobody</user>
            <group>nogroup</group>
        </changeowner>
    </security>
</icecast>


Hope this helps others. Also, maybe someone should put a (clearer) comment about absolute paths in the default icecast.xml?
_________________
"I paid for four wheels, make 'em all drive"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum