Okay, I forgot to specify those in my email. We're using Windows 2000 on
this box.

Drilling down to the last folder ("logs"), the permissions are set to
Everyone->Full Control. These are inherited permissions from the parent
folder(s).

Is there any way to get some sort of debug output from
DailyRollingFileAppender so we can get a more specific cause the next time
it happens?

-shawn

====================================
Shawn Wilson [[EMAIL PROTECTED]]
Software Developer, ATMReports.com
PH: 877-327-0873, FAX: 406-294-5806
====================================


> -----Original Message-----
> From: Ceki Gulcu [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 28, 2002 10:23 AM
> To: Log4J Users List
> Subject: RE: DailyRollingFileAppender not renaming files
>
>
>
> On windows, there is more to security then the R attribute. When you
> select a folder in explorer, right click and choose Properties. Do you
> see a tab called Security? You should at least see General and
> Sharing.
>
> ps: I assume your are running Windows NT, 2000 or XP.
>
> At 10:03 28.08.2002 -0600, you wrote:
> >Are you suggesting that maybe the permissions changed?
> >
> >Well, the rename failed last night, and I just checked and the attributes
> >for every folder down to that file are either blank or "A"
> (archivable), so
> >it should have no problem writing a new file.
> >
> >Disk space has 4.11GB free, so that is not an issue either.
> >
> >I just can't seem to figure out any logical reason why this would be
> >failing. It seems to happen under every web-app too, not just this one.
> >
> >-shawn
> >
> >====================================
> >Shawn Wilson [[EMAIL PROTECTED]]
> >Software Developer, ATMReports.com
> >PH: 877-327-0873, FAX: 406-294-5806
> >====================================
> >
> >
> > > -----Original Message-----
> > > From: Ceki Gulcu [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, August 28, 2002 9:40 AM
> > > To: Log4J Users List
> > > Subject: RE: DailyRollingFileAppender not renaming files
> > >
> > >
> > >
> > > Your suggestion does not explain the following fact
> > >
> > >  > File permissions are okay... and it seems to work fine for a
> > > few days after
> > >  > first starting up Tomcat, but then for some reason it just
> > > stops renaming
> > >  > the files and overwrites the same file every day.
> > >
> > > I don't think the single quotes in the DatePattern matter.
> > >
> > > At 11:26 28.08.2002 -0400, you wrote:
> > >
> > > >Try
> > > >
> > > ><param name="DatePattern" value=".yyyy-MM-dd"/>
> > > >
> > > >rather than
> > > >
> > > ><param name="DatePattern" value="'.'yyyy-MM-dd"/>
> > > >
> > > >
> > > >Subtle nuance from .properties to XML format....
> > > >
> > > >Luc
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >"Shawn Wilson" <[EMAIL PROTECTED]> on 08/28/2002 11:22:23 AM
> > > >
> > > >Please respond to "Log4J Users List" <[EMAIL PROTECTED]>
> > > >
> > > >To:    "Log4J Users List" <[EMAIL PROTECTED]>
> > > >cc:
> > > >
> > > >Subject:    RE: DailyRollingFileAppender not renaming files
> > > >
> > > >
> > > >I know for a fact it happens with log4j-1.2.5. Now, I think I'm using
> > > >log4j-1.2.6 now but I'm not certain because even though I stopped the
> > > >webapp
> > > >(it's running under Tomcat) and put the 1.2.6 jar in the
> /lib folder, the
> > > >1.2.5 jar file was locked so I wasn't able to remove it. Now, after
> > > >starting
> > > >the webapp again, they're both locked.
> > > >
> > > >Here's the configuration from my log4j.xml for the
> > > >DailyRollingFileAppender:
> > > >
> > > >     <appender name="A3_Nyce"
> > > >class="org.apache.log4j.DailyRollingFileAppender">
> > > >      <param name="DatePattern" value="'.'yyyy-MM-dd"/>
> > > >      <!--param name="MaxLogs" value="30"/-->
> > > >      <param name="File"
> > > >value
> > >
> >="e:/WebApps/atmreports/cvsroot/ATMReports/ATMRealtime_NYCE/WEB-INF/log
> > > >s/Nyce.log"/>
> > > >   <layout class="org.apache.log4j.PatternLayout">
> > > >    <param name="ConversionPattern" value="%-15d{ISO8601}
> %-10p (%c) -
> > > >%m%n"/>
> > > >   </layout>
> > > >     </appender>
> > > >
> > > >File permissions are okay... and it seems to work fine for a few
> > > days after
> > > >first starting up Tomcat, but then for some reason it just
> stops renaming
> > > >the files and overwrites the same file every day.
> > > >
> > > >-shawn
> > > >
> > > >====================================
> > > >Shawn Wilson [[EMAIL PROTECTED]]
> > > >Software Developer, ATMReports.com
> > > >PH: 877-327-0873, FAX: 406-294-5806
> > > >====================================
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: Ceki Gulcu [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Wednesday, August 28, 2002 9:08 AM
> > > > > To: Log4J Users List
> > > > > Subject: Re: DailyRollingFileAppender not renaming files
> > > > >
> > > > >
> > > > > At 09:04 28.08.2002 -0600, you wrote:
> > > > > >Hi,
> > > > > >
> > > > > >I'm using log4j on the Windows platform and many times I
> notice that
> > > > > >DailyRollingFileAppender is not able to rename the log file.
> > > I get this
> > > > > >messages on stderr:
> > > > > >
> > > > > >log4j:ERROR Failed to rename [c:/path/to/my/file] to
> > > > > >[c:/path/to/my/file.2002-08-27].
> > > > > >
> > > > > >I searched the archives and someone had said it may have
> > > something to do
> > > > > >with multiple threads using a single Logger object. This may in
> > > > > fact be what
> > > > > >is causing my problem since I have two threads in one class that
> > > > > are using
> > > > > >the same Logger.
> > > > >
> > > > > Don't believe everything you read.
> > > > >
> > > > > >What should I do to prevent this error from occurring? It is
> > > important
> > > >we
> > > > > >keep backups of all our log files!
> > > > >
> > > > > Which version of log4j is this? What is the DatePattern for
> > > > > DailyRollingFileAppender? Is the directory c:/path/to/my
> protected?
> > > > >
> > > > > >Thanks,
> > > > > >-shawn
> > > > >
> > > > > --
> > > > > Ceki
> > > > >
> > > > >
> > > > > --
> > > > > To unsubscribe, e-mail:
> > > ><mailto:[EMAIL PROTECTED]>
> > > >For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > >
> > > >
> > > >
> > > >--
> > > >To unsubscribe, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > >For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >--
> > > >To unsubscribe, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > >For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > >
> > > --
> > > Ceki
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > >
> > >
> >
> >
> >--
> >To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
Ceki


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to