[logback-user] logback fails to roll log file - Shibboleth IDP 2.3.8 - Windows server 2008 - Jetty running as service via procrun

Robert Kuhar robertkuhar at gmail.com
Tue Mar 12 16:04:15 CET 2013


My rollover problems have always been permissions problems.  We
usually find them by stopping the process that isn't rolling over its
logs, switching user, and starting the process by hand as the user the
process is supposed to run as.  Virtually every time, standard
out/standard error will show some IOException permissions thing.
Jetty is doing its own logging of standard out/standard error, no?  Is
there a clue in that logfile?

Bob

On Tue, Mar 12, 2013 at 2:24 AM, Karen Murphy <k.l.murphy at qub.ac.uk> wrote:
>
>
> Hi all,
>
> My Shibboleth IDP version 2.3.8 is failing to roll over files daily.
> Its running on Windows Server 2008, and the configuration is the default
> Shibboleth one in logging.xml, except I have changed the slashes to be
> double back slashes as per the logback documentation in Appenders.
>
> I am running the IDP under Jetty 7.3, and have configured Jetty to run as a
> service using procrun, as the 'local system account' which I believe has all
> permissions necessary.
>
> It works on another IDP I look after (version 2.3.6, with Tomcat) on Windows
> Server 2003.
>
> I have read the posts referring to JNDI and rotation failing, but I can't
> see JNDI configured in my context file under Jetty, so guess this isn't
> affecting it ?
>
> I have looked through various logs in the Event Viewer but don't see
> anything to indicate a logback error on file rotation.
>
> My Shibboleth logging.xml contains:
>
> ----------------------------------------------------------------snip--
> <appender name="IDP_PROCESS"
> class="ch.qos.logback.core.rolling.RollingFileAppender">
>         <File>C:\\opt\\shibboleth-idp\\logs\\idp-process.log</File>
>
>         <rollingPolicy
> class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
>
> <FileNamePattern>C:\\opt\\shibboleth-idp\\logs\\idp-process-%d{yyyy-MM-dd}.log</FileNamePattern>
>         </rollingPolicy>
>
>         <encoder
> class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
>             <charset>UTF-8</charset>
>             <Pattern>%date{HH:mm:ss.SSS} - %level [%logger:%line] -
> %msg%n</Pattern>
>         </encoder>
>     </appender>
> ---------------------------------------------------------------------
>
>
> Does anyone have any ideas as to what might be causing roll over to fail ?
>
> Any pointers would be much appreciated,
>
> Kind Regards
>
> Karen
>
>
> --
> *Karen Murphy*
> Systems Analyst - Bibliographic Services
> The Library at Queen's
> Queen's University Belfast
> Belfast BT7 1LP
> Tel: 028 90976260
> Email: k.l.murphy at qub.ac.uk
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user


More information about the Logback-user mailing list