Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

size logfile

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
HW51



Joined: 28 Aug 2009
Posts: 4

PostPosted: Fri Aug 28, 2009 12:23 pm    Post subject: size logfile Reply with quote

Hello,

I have configured 2 icecast servers where the size for logfiles is set on 1000Kb. Server 1 works fine, server 2 not. I can't find why. Can somebody help me?

This is a part of the config file from server 2:

<fileserve>1</fileserve>

<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>/usr/local/share/icecast/log</logdir>
<webroot>/usr/local/share/icecast/web</webroot>
<adminroot>/usr/local/share/icecast/admin</adminroot>
<!-- <pidfile>/usr/local/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="/" dest="/status.xsl"/>
</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 -->
<logsize>1000</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>

Kind regards
Hans.
Back to top
View user's profile Send private message
audiorapture



Joined: 21 Aug 2009
Posts: 60
Location: Virginia, USA

PostPosted: Fri Aug 28, 2009 1:23 pm    Post subject: Reply with quote

Can you elaborate on "does not work fine"? What do you expect to happen on server 2 and what happens instead?

The config file reads like the server should archive logs with a datestamp after the log reaches 1000kb. What happens instead?
Back to top
View user's profile Send private message Visit poster's website AIM Address
HW51



Joined: 28 Aug 2009
Posts: 4

PostPosted: Sat Aug 29, 2009 11:46 am    Post subject: Reply with quote

excuse me.

The logfile size keeps on growing. It doesn't stop at 1000K.

Kind regard
Hans
Back to top
View user's profile Send private message
audiorapture



Joined: 21 Aug 2009
Posts: 60
Location: Virginia, USA

PostPosted: Sat Aug 29, 2009 1:51 pm    Post subject: Reply with quote

Is that for all three log files?
Back to top
View user's profile Send private message Visit poster's website AIM Address
HW51



Joined: 28 Aug 2009
Posts: 4

PostPosted: Tue Sep 01, 2009 12:39 pm    Post subject: Reply with quote

Yes, its for al three logfiles
Back to top
View user's profile Send private message
audiorapture



Joined: 21 Aug 2009
Posts: 60
Location: Virginia, USA

PostPosted: Tue Sep 01, 2009 12:46 pm    Post subject: Reply with quote

Just a shot in the dark, I have really no idea:

Does the user running the Icecast process have the proper rights to create and edit a file in the log directory?
(# ps u | grep icecast and # ls -la /usr/local/share/icecast/log)
Back to top
View user's profile Send private message Visit poster's website AIM Address
HW51



Joined: 28 Aug 2009
Posts: 4

PostPosted: Fri Sep 04, 2009 12:54 pm    Post subject: Reply with quote

Right, why didn't I think of that?

Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server 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


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber