[Freeswitch-users] Unable to Recreate Log Files

Peter Olsson POlsson at enghouse.com
Mon Mar 4 19:08:06 MSK 2013


If you're out of disk space the easiest thing would be to get some more :) Or at least disable debug info within the log files. If you're close to maximum disk usage, that's probably the cause for the original problem as well?

/Peter

4 mar 2013 kl. 16:57 skrev "Subhash" <gvvsubhashkumar at gmail.com<mailto:gvvsubhashkumar at gmail.com>>:

Ok. Can i control to not writing the logs in freeswitch.log when it is not able to recreate a new file beacuse it crossing the limit and ending up with full using of disk space

Thanks,
Subhash.


On Mon, Mar 4, 2013 at 9:02 PM, Peter Olsson <POlsson at enghouse.com<mailto:POlsson at enghouse.com>> wrote:
It might be lots of different reasons, but in the end it boils down to the OS –there is probably something else (outside FS) holding a lock, which make the rename file call to fail. Make sure to exclude the folder from antivirus, and make sure no other applications are touching the log files.

The actual method called from FS is MoveFileEx, which is a standard Win32 api call – if it fails it’s because the OS can’t move the file, there is nothing inside FS that can change this.

/Peter


Från: freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org> [mailto:freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org>] För Subhash
Skickat: den 4 mars 2013 15:11
Till: FreeSWITCH Users Help
Ämne: Re: [Freeswitch-users] Unable to Recreate Log Files


But after a few hours of stress test we are facing this scenario.

Are there any reasons?
On Mar 4, 2013 7:27 PM, "Peter Olsson" <POlsson at enghouse.com<mailto:POlsson at enghouse.com>> wrote:
My guess would be antivirus or something similar, that’s holding a file lock when trying to rename the file.

/Peter

Från: freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org> [mailto:freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org>] För Subhash
Skickat: den 4 mars 2013 08:42
Till: FreeSWITCH Users Help
Ämne: [Freeswitch-users] Unable to Recreate Log Files

Hi,

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.13b git 3c7f8f8 2013-02-20 22:44:51z
NOTE : This issue is critical as we are facing it at production systems.

Thanks,
Subhash.

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org<mailto: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<mailto: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

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org<mailto: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<mailto: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


!DSPAM:5134bfa832768065151170!
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org<mailto: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<mailto:FreeSWITCH-users at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<http://lists.freeswitch.org/mailman/options/freeswitch-users>
http://www.freeswitch.org


!DSPAM:5134bfa832768065151170!



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list