You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Harshad Savant (JIRA)" <lo...@logging.apache.org> on 2019/02/25 12:45:00 UTC

[jira] [Closed] (LOGCXX-501) Sometimes the log files get locked and then deleted after application restart

     [ https://issues.apache.org/jira/browse/LOGCXX-501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Harshad Savant closed LOGCXX-501.
---------------------------------
       Resolution: Not A Bug
    Fix Version/s: 0.10.0

This issue wasn't an issue in the Log4CXX lib. There was an old backup script in our application which was trying to move files over 30 days old. This was affecting our logs folder as well. Hence closing this issue. Thanks for the tip [~tschoening]!

> Sometimes the log files get locked and then deleted after application restart
> -----------------------------------------------------------------------------
>
>                 Key: LOGCXX-501
>                 URL: https://issues.apache.org/jira/browse/LOGCXX-501
>             Project: Log4cxx
>          Issue Type: Bug
>    Affects Versions: 0.10.0
>            Reporter: Harshad Savant
>            Priority: Blocker
>             Fix For: 0.10.0
>
>         Attachments: configure.log4cxx.xml
>
>
> We are using log4cxx version 0.10.0 in one of our projects which runs on windows 7 & 10.
> We have several different log files and use a RollingFileAppender to back-up files based on size. 
> We found that on some rare occasions, suddenly all the log files created by log4cxx get locked and can not be opened by any external editors like notepad or notepad++. You can't copy the files or delete them and windows gives an access denied error.
> Once we restart our application all the log files are deleted and the logger starts with a new set of log files.
> At times this behavior is repeatable for multiple application restarts, but at other occasions, a single application reboot solves the problem. The last time we saw this problem, it was repeatable until we tried to enable the log4cxx debug logging through the config xml and redirecting the stderr output to a file. After that it wasn't reproducible anymore. 
>  
> Since this happens very rarely, its difficult for us to reproduce the error, but when it happens it wipes out all the historical logs hence imperative that we fix it.
> I want to know if this is a known issue and if there are any known conditions which can cause this problem. Any hints on how to reproduce the issue would be of great help. Let me know if you guys need any more info/details.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)