<HTML>
<HEAD>
<TITLE>Re: [Freeswitch-users] Log Rollover issue</TITLE>
</HEAD>
<BODY>
<FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>Is there a ticket in jira opened on this issue?<BR>
<BR>
<BR>
On 2/6/13 11:33 PM, "Subhash" <<a href="gvvsubhashkumar@gmail.com">gvvsubhashkumar@gmail.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><SPAN STYLE='font-size:11pt'><FONT FACE="Arial">Any Update On this?<BR>
</FONT><FONT FACE="Monaco, Courier New"><BR>
Thanks,<BR>
Subhash.<BR>
<BR>
On Mon, Jan 7, 2013 at 6:31 PM, Subhash <<a href="gvvsubhashkumar@gmail.com">gvvsubhashkumar@gmail.com</a>> wrote:<BR>
</FONT></SPAN><BLOCKQUOTE><SPAN STYLE='font-size:11pt'><FONT FACE="Comic Sans MS">I used the latest binaries(Windows Installer),version info is given below and observered that when it is not able to rename the log file it is keep on writing the logs in freeswitch.log file which is crossing the limt set in logconf.xml file.<BR>
</FONT><FONT FACE="Monaco, Courier New"> <BR>
</FONT><FONT FACE="Comic Sans MS">The error seen in the freeswitch log file is <BR>
</FONT><FONT FACE="Monaco, Courier New"> <BR>
</FONT><FONT FACE="Comic Sans MS">[CRIT] mod_logfile.c:164 Error renaming log from C:/Program Files/FreeSWITCH/log/freeswitch.log.4 to C:/Program Files/FreeSWITCH/log/freeswitch.log.5 [No error]<BR>
</FONT><FONT FACE="Monaco, Courier New"> <BR>
</FONT><FONT FACE="Comic Sans MS">And the version info is <BR>
</FONT><FONT FACE="Monaco, Courier New"> <BR>
</FONT><FONT FACE="Comic Sans MS">Freswitch version 1.3.10 git b1b89e7 2012-12-14 22:53:48z<BR>
</FONT><FONT FACE="Monaco, Courier New"><BR>
<BR>
<BR>
Thanks,<BR>
Subhash.<BR>
<BR>
<BR>
On Thu, Nov 22, 2012 at 12:34 AM, Anthony Minessale <<a href="anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>> wrote:<BR>
</FONT></SPAN><BLOCKQUOTE><SPAN STYLE='font-size:11pt'><FONT FACE="Monaco, Courier New">Are you deleting the old ones? <BR>
It was probably already out of disk space when it was refusing to rename the files.<BR>
<BR>
Looks like you have 40 of them, you may need to auto delete some.<BR>
<BR>
You are not providing much other data to go on so all I can do is guess.<BR>
The system call to move the file is failing which could be due to permissions or disk full or whatever.<BR>
<BR>
If you want you can update to latest and I added a call to strerror(errno) so you can see the exact reason.<BR>
<BR>
<BR>
<BR>
<BR>
On Tue, Nov 20, 2012 at 10:23 PM, Nageshwara Rao Moova <<a href="mnrao2001@gmail.com">mnrao2001@gmail.com</a>> wrote:<BR>
</FONT></SPAN><BLOCKQUOTE><SPAN STYLE='font-size:11pt'><FONT FACE="Monaco, Courier New">Hi Anthony,<BR>
<BR>
I doubt any permission issue as the failure happened not initially but after a while. The user we are using has sufficient permissions for doing rwx operations. Below is the log snippet from freeswitch log.<BR>
<BR>
<BR>
If it’s any help, the freeswitch log had entries like this every few seconds:<BR>
<BR>
2012-10-26 11:53:16.653473 [CRIT] mod_logfile.c:164 Error renaming log from /usr/local/freeswitch/log/freeswitch.log.40 to /usr/local/freeswitch/log/freeswitch.log.41<BR>
<BR>
……<BR>
<BR>
2012-10-27 00:19:30.313497 [CRIT] mod_logfile.c:164 Error renaming log from /usr/local/freeswitch/log/freeswitch.log.40 to /usr/local/freeswitch/log/freeswitch.log.41<BR>
<BR>
<BR>
<BR>
Until it ran out of disk space and crashed. No reason why it couldn’t rename the file, though.<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
On Tue, Nov 20, 2012 at 1:50 AM, Anthony Minessale <<a href="anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>> wrote:<BR>
</FONT></SPAN><BLOCKQUOTE><SPAN STYLE='font-size:11pt'><FONT FACE="Monaco, Courier New">When it says it cannot, is that because of file permissions? Dos FS have permission to write to the directory? <BR>
Can you reproduce this with logs and if so can you report it to Jira <a href="http://jira.freeswitch.org">http://jira.freeswitch.org</a> <<a href="http://jira.freeswitch.org/">http://jira.freeswitch.org/</a>> <BR>
<BR>
<BR>
<BR>
On Mon, Nov 19, 2012 at 6:45 AM, Nageshwara Rao Moova <<a href="mnrao2001@gmail.com">mnrao2001@gmail.com</a>> wrote:<BR>
</FONT></SPAN><BLOCKQUOTE><SPAN STYLE='font-size:11pt'><FONT FACE="Monaco, Courier New">Hi all,<BR>
<BR>
I have modified my default logconf file for rollover to be restricted to 100. But sometimes freeswitch is unable to rename rollover say “cannot rename freeswitch.log.41” and fails. But the fail follows with serious issue of writing all the logs to "freeswitch.log" and ends up filling the disk space.<BR>
<BR>
I have not change the default file size i.e 10MB.<BR>
<BR>
How does 10MB size overridden by freeswitch?<BR>
</FONT></SPAN></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE><SPAN STYLE='font-size:11pt'><FONT FACE="Monaco, Courier New"><FONT COLOR="#888888"><BR>
</FONT>-- <BR>
Ken<BR>
<FONT COLOR="#0000FF"><U><a href="http://www.FreeSWITCH.org">http://www.FreeSWITCH.org</a><BR>
<a href="http://www.ClueCon.com">http://www.ClueCon.com</a><BR>
<a href="http://www.OSTAG.org">http://www.OSTAG.org</a><BR>
</U></FONT>irc.freenode.net #freeswitch<BR>
</FONT></SPAN>
</BODY>
</HTML>