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

Karen Murphy k.l.murphy at qub.ac.uk
Thu Mar 14 10:04:49 CET 2013


Hi all,

Just want to record my conclusion on this issue in case its useful to 
someone.

It seems Apache Common-Deamon procrun has issues with log rotatation, 
Sounds like log rotation isn't really supported yet:

See:
https://issues.apache.org/jira/browse/DAEMON-259

I'm thinking that this is probably related to my problem with log 
rotation.  Will wait and see how the issue progresses and in the 
meantime put a scheduled task in place for rotation,

Thanks,

Karen


On 12/03/13 15:04, Robert Kuhar wrote:
> 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
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user
>

-- 
*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


More information about the Logback-user mailing list