[Freeswitch-users] Log Rollover issue
Subhash
gvvsubhashkumar at gmail.com
Mon Jan 7 16:01:35 MSK 2013
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.
The error seen in the freeswitch log file is
[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]
And the version info is
Freswitch version 1.3.10 git b1b89e7 2012-12-14 22:53:48z
Thanks,
Subhash.
On Thu, Nov 22, 2012 at 12:34 AM, Anthony Minessale <
anthony.minessale at gmail.com> wrote:
> Are you deleting the old ones?
> It was probably already out of disk space when it was refusing to rename
> the files.
>
> Looks like you have 40 of them, you may need to auto delete some.
>
> You are not providing much other data to go on so all I can do is guess.
> The system call to move the file is failing which could be due to
> permissions or disk full or whatever.
>
> If you want you can update to latest and I added a call to strerror(errno)
> so you can see the exact reason.
>
>
>
>
> On Tue, Nov 20, 2012 at 10:23 PM, Nageshwara Rao Moova <
> mnrao2001 at gmail.com> wrote:
>
>> Hi Anthony,
>>
>> 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.
>>
>> If it’s any help, the freeswitch log had entries like this every few
>> seconds:
>>
>> 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
>>
>> ……
>>
>> 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
>>
>>
>> Until it ran out of disk space and crashed. No reason why it couldn’t
>> rename the file, though.
>>
>>
>>
>>
>> On Tue, Nov 20, 2012 at 1:50 AM, Anthony Minessale <
>> anthony.minessale at gmail.com> wrote:
>>
>>> When it says it cannot, is that because of file permissions? Dos FS have
>>> permission to write to the directory?
>>> Can you reproduce this with logs and if so can you report it to Jira
>>> http://jira.freeswitch.org
>>>
>>>
>>>
>>> On Mon, Nov 19, 2012 at 6:45 AM, Nageshwara Rao Moova <
>>> mnrao2001 at gmail.com> wrote:
>>>
>>>> Hi all,
>>>>
>>>> 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.
>>>>
>>>> I have not change the default file size i.e 10MB.
>>>>
>>>> How does 10MB size overridden by freeswitch?
>>>>
>>>> --
>>>> regards & thanks
>>>> --
>>>> m nageshwara rao
>>>> 99891 86280
>>>>
>>>>
>>>>
>>>> _________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org
>>>> http://www.freeswitchsolutions.com
>>>>
>>>>
>>>>
>>>>
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org
>>>> http://wiki.freeswitch.org
>>>> http://www.cluecon.com
>>>>
>>>> FreeSWITCH-users mailing list
>>>> FreeSWITCH-users at lists.freeswitch.org
>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>> UNSUBSCRIBE:
>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>> http://www.freeswitch.org
>>>>
>>>>
>>>
>>>
>>> --
>>> Anthony Minessale II
>>>
>>> FreeSWITCH http://www.freeswitch.org/
>>> ClueCon http://www.cluecon.com/
>>> Twitter: http://twitter.com/FreeSWITCH_wire
>>>
>>> AIM: anthm
>>> MSN:anthony_minessale at hotmail.com
>>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
>>> IRC: irc.freenode.net #freeswitch
>>>
>>> FreeSWITCH Developer Conference
>>> sip:888 at conference.freeswitch.org
>>> googletalk:conf+888 at conference.freeswitch.org
>>> pstn:+19193869900
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>>
>>>
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>>
>>
>>
>> --
>> regards & thanks
>> --
>> m nageshwara rao
>> 99891 86280
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>>
>>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
>
> --
> Anthony Minessale II
>
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
> Twitter: http://twitter.com/FreeSWITCH_wire
>
> AIM: anthm
> MSN:anthony_minessale at hotmail.com
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
> IRC: irc.freenode.net #freeswitch
>
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org
> googletalk:conf+888 at conference.freeswitch.org
> pstn:+19193869900
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130107/ea3133a2/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list