Streams Restart every 12 hours and 3 minutes apart

Read 32421 times
Hi Dro,
I answer you in the Winamp forum.
Newradio Streaming & Radio Tools
http://www.newradio.it
for those not following things on the SHOUTcast forum, please see http://forums.winamp.com/showpost.php?p=3003610&postcount=29 on what you can do to resolve the log rotate crash issues as best as possible before a new fully fixed v2 DNAS is released. that should allow you to at least update to the current DNAS build for the high client connection stability fixes.

so this now explains why it's been such an intermittent issue to track down and why some builds were more susceptible to the issue than others (and why the 32-bit build of 2.2.2 now showed the issue unlike the 32-bit 2.2.1 build due to code clean-up made for the 2.2.2 release).


so there's a temporary solution (clearing out 0-byte log files) and a permanent fix for the issue to follow (newer DNAS build).
Last Edit: August 05, 2014, 10:28:22 am by DrO
I see there is a workaround in the new release of Centovacast out in these days.
One question for Centova Staff:
With NO_ROTATE_DNAS2 enabled, it means that that the log file continue to grow endlessy (and what happen if it become too big?).  Or there is another behavior to control the logfiles?
This is important to understand. Waiting DrO fix.
Newradio Streaming & Radio Tools
http://www.newradio.it
With NO_ROTATE_DNAS2 enabled, it means that that the log file continue to grow endlessy (and what happen if it become too big?).  Or there is another behavior to control the logfiles?
DNAS2 supports rotating its own log files when they get to a certain size.  The NO_ROTATE_DNAS2 option tells Centova Cast not to also try rotating them, which is basically just a duplication of effort.

It'd be more ideal if DNAS2 could be told not to rotate its own logs at all and just let CC do it, since it's most efficient for us to process the log file in a single pass and then rotate it out, rather than processing a bunch of separate files generate by DNAS2... but it probably doesn't amount to much difference in terms of real-world performance.
DNAS2 supports rotating its own log files when they get to a certain size.  The NO_ROTATE_DNAS2 option tells Centova Cast not to also try rotating them, which is basically just a duplication of effort.
it's actually based on how long since the last rotate (which is currently set at 24hrs). the size doesn't have any effect on things (though i can see cases where it would be helpful if it could be roughly controlled by filesize).

It'd be more ideal if DNAS2 could be told not to rotate its own logs at all and just let CC do it, since it's most efficient for us to process the log file in a single pass and then rotate it out, rather than processing a bunch of separate files generate by DNAS2... but it probably doesn't amount to much difference in terms of real-world performance.
noted
Ha! I keep forgetting you're on our forums, DrO... Despite how it may look, I swear my comments aren't meant as passive aggressive criticisms of DNAS2. :) We should probably just make NO_ROTATE_DNAS2 the default setting in Centova Cast... The only reason it isn't presently the default is because our DNAS2 module is derived from our old DNAS1 module, which required us to rotate the logs ourselves.
i know, just clarifying things :) though it's definitely valid for the DNAS to provide a bit more control over how the log rotates are handled anyway. so is valid to add probably 2 more config options to allow for the default behaviour to be overridden.
there'll be a 'rotateinterval' option (default is 86400 seconds i.e. 24 hours) and setting it to 0 will disable all log rotations. though like you note, it might be simpler to just leave the DNAS to do it but the option for you or the DNAS to maintain things will be there as of the new build.

either way, this stability issue should at last be resolved which is good for everyone involved.
we've just released v2.4.0 which has the log file handling fixes in. so that should be end of the crashes on log rotation (along with the work Centova have been doing from their side).
How to update? Or better to wait till Centova will build update?

Thx in advance
Thanks for the heads-up DrO. I'll contact Steve about this ASAP
TESTING... on Debian squeeze and centos...