[Freeswitch-users] Log Rollover issue
Ken Rice
krice at freeswitch.org
Thu Feb 7 08:41:21 MSK 2013
Is there a ticket in jira opened on this issue?
On 2/6/13 11:33 PM, "Subhash" <gvvsubhashkumar at gmail.com> wrote:
> Any Update On this?
>
> Thanks,
> Subhash.
>
> On Mon, Jan 7, 2013 at 6:31 PM, Subhash <gvvsubhashkumar at gmail.com> wrote:
>> 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 <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?
--
Ken
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org
irc.freenode.net #freeswitch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130206/9fd4b649/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list