| View previous topic :: View next topic |
| Author |
Message |
HW51
Joined: 28 Aug 2009 Posts: 4
|
Posted: Fri Aug 28, 2009 12:23 pm Post subject: size logfile |
|
|
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 |
|
 |
audiorapture
Joined: 21 Aug 2009 Posts: 60 Location: Virginia, USA
|
Posted: Fri Aug 28, 2009 1:23 pm Post subject: |
|
|
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 |
|
 |
HW51
Joined: 28 Aug 2009 Posts: 4
|
Posted: Sat Aug 29, 2009 11:46 am Post subject: |
|
|
excuse me.
The logfile size keeps on growing. It doesn't stop at 1000K.
Kind regard
Hans |
|
| Back to top |
|
 |
audiorapture
Joined: 21 Aug 2009 Posts: 60 Location: Virginia, USA
|
Posted: Sat Aug 29, 2009 1:51 pm Post subject: |
|
|
| Is that for all three log files? |
|
| Back to top |
|
 |
HW51
Joined: 28 Aug 2009 Posts: 4
|
Posted: Tue Sep 01, 2009 12:39 pm Post subject: |
|
|
| Yes, its for al three logfiles |
|
| Back to top |
|
 |
audiorapture
Joined: 21 Aug 2009 Posts: 60 Location: Virginia, USA
|
Posted: Tue Sep 01, 2009 12:46 pm Post subject: |
|
|
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 |
|
 |
HW51
Joined: 28 Aug 2009 Posts: 4
|
Posted: Fri Sep 04, 2009 12:54 pm Post subject: |
|
|
Right, why didn't I think of that?
Thanks |
|
| Back to top |
|
 |
|