logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sil Janssens <log4j.2.li...@spamgourmet.com>
Subject Re: log4j:ERROR Failed to rename
Date Thu, 09 Nov 2006 07:52:20 GMT
Allistair Crossley <Allistair.Crossley <at> QAS.com> writes:

> 
> I just cannot resolve this error with DailyRollingFileAppender - I've tried
reconfiguring the whole
> log4j setup but it keeps happening. The JVM or Tomcat has a lock on these
files and prevents Log4J renaming
> them in a Windows environment _most of the time_ meaning sometimes they can be
renamed - perhaps at low
> traffic times when logging info is not being pushed. 
> 
> Just look at this output from this morning in stdout! Can anyone take a look
at this problem?
> 
> log4j:ERROR Failed to rename [d:/iq/logs/application.log] to 
> log4j:ERROR Failed to rename [d:/iq/logs/application.log] to
[d:/iq/logs/application.log.2004-07-20-17].
> log4j:ERROR Failed to rename [d:/iq/logs/application.log] to
[d:/iq/logs/application.log.2004-07-20-18].
> log4j:ERROR Failed to rename [d:/iq/logs/authentication.log] to
[d:/iq/logs/authentication.log.2004-07-20].
> log4j:ERROR Failed to rename [d:/iq/logs/search.log] to
[d:/iq/logs/search.log.2004-07-20].
> log4j:ERROR Failed to rename [d:/iq/logs/search-access.log] to
[d:/iq/logs/search-access.log.2004-07-20].
> log4j:ERROR Failed to rename [d:/iq/logs/content-access.log] to
[d:/iq/logs/content-access.log.2004-07-20].
> log4j:ERROR Failed to rename [d:/iq/logs/holidayform.log] to
[d:/iq/logs/holidayform.log.2004-07-20].
> log4j:ERROR Failed to rename [d:/iq/logs/publishing.log] to
[d:/iq/logs/publishing.log.2004-07-20].
> log4j:ERROR Failed to rename [d:/iq/logs/application.log] to
[d:/iq/logs/application.log.2004-07-20-21].
> log4j:ERROR Failed to rename [d:/iq/logs/application.log] to
[d:/iq/logs/application.log.2004-07-21-02].
> log4j:ERROR Failed to rename [d:/iq/logs/application.log] to
[d:/iq/logs/application.log.2004-07-21-06].
> log4j:ERROR Failed to rename [d:/iq/logs/application.log] to
[d:/iq/logs/application.log.2004-07-21-07].
> 
> ADC
> 
> > -----Original Message-----
> > From: Ceki Gülcü [mailto:ceki <at> qos.ch]
> > Sent: 28 May 2004 18:27
> > To: Log4J Users List
> > Subject: RE: log4j:ERROR Failed to rename : more info
> > 
> > 
> > Allistair,
> > 
> > I would very much appreciate if you could try the simple 
> > solution proposed 
> > in bug 900.
> > 
> >    http://nagoya.apache.org/bugzilla/show_bug.cgi?id=900
> > 
> > Does it solve the problem you are encountering?
> > 
> > At 10:26 PM 5/26/2004, you wrote:
> > >Hey,
> > >
> > >OK, sorry I misunderstood. Look forward to hearing if you 
> > find anything or 
> > >can improve the DRFA. I'll use the modified version for now,
> > >
> > >Cheers! And log4j is fantastic btw.
> > >
> > >ADC
> > >
> > >         -----Original Message-----
> > >         From: Ceki Gülcü [mailto:ceki <at> qos.ch]
> > >         Sent: Wed 26/05/2004 19:24
> > >         To: Log4J Users List
> > >         Cc:
> > >         Subject: RE: log4j:ERROR Failed to rename : more info
> > >
> > >
> > >
> > >
> > >         I did not say there was no problem. All I am saying 
> > is that it's very
> > >         unlikely that it is a threading/concurrent access 
> > problem. I'll 
> > > look into
> > >         this tomorrow. Gotta run now.
> > 
> > -- 
> > Ceki Gülcü
> > 
> >       For log4j documentation consider "The complete log4j manual"
> >       ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp  
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-unsubscribe <at> logging.apache.org
> > For additional commands, e-mail: log4j-user-help <at> logging.apache.org
> > 
> > 
> 
> <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
> -------------------------------------------------------
> QAS Ltd.
> Developers of QuickAddress Software
> <a href="http://www.qas.com">www.qas.com</a>
> Registered in England: No 2582055
> Registered in Australia: No 082 851 474
> -------------------------------------------------------
> </FONT>
> 


Had a similar problem (log4j not able to rename old log files error)
For me the problem seems to be solved by adding the log4j lib to the classpath.
(credits:
http://www.google.be/url?sa=t&ct=res&cd=5&url=http%3A%2F%2Fmail-archives.apache.org%2Fmod_mbox%2Flogging-log4j-user%2F200212.mbox%2F%253C000001c2aca0%24bab67620%245e646464%40shailesh%253E&ei=QNtSRf-kMq7IwQGmwp37Bg&usg=__qKatD9qCw_hx9mijKqmKIzaLbYc=&sig2=5XUU_n8jzkwCvdHn4_V-7Q
)

I hope this could help you too...

Kind regards,
Sil Janssens



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message