Are you positive that the tomcat process is actually running as the tomcat user?
The error message says read-only file system. Are you sure the file system is mounted read-write? Can you create files in it? Have you turned on debug-level logging to get a more granular idea of what's going on? Are all the file and directory names spelled correctly everywhere? Is the regular cas log file (not the management server) in /var/log/cas? Is it being successfully written to? Beyond "check everything" I'm not sure what advice to give you; it could be a dozen different things. -- DAVID A. CURRY, CISSP *DIRECTOR • INFORMATION SECURITY & PRIVACY* THE NEW SCHOOL • INFORMATION TECHNOLOGY 71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003 +1 646 909-4728 • [email protected] On Wed, Jul 24, 2019 at 8:49 AM alain ubfc <[email protected]> wrote: > Hello David, > > Thank you for your answer. > > The directory /var/log/cas-management has the following rights : > > drwxr-x--- 2 tomcat adm 4096 juil. 22 09:23 cas-management > > And for the filecas-management.log > > -rw-r----- 1 tomcat tomcat 0 juil. 19 14:39 cas-management.log > > That's what i did. And i doesn't work. > > How to do this ? > > Best regard > > Le mercredi 24 juillet 2019 13:30:30 UTC+2, David Curry a écrit : >> >> [2019-07-22 08:57:45] [info] 2019-07-22 08:57:45,023 main ERROR >> RollingFileManager (/var/log/cas-management/cas-management.log) >> java.io.FileNotFoundException: /var/log/cas-management/cas-management.log >> (Read-only >> file system) >> >> Is your file system mounted read-only? Is the directory writable by the >> tomcat user (or whatever user is running the tomcat process)? >> RollingFileAppenders need write permission to the directory the log files >> are in, not just the log files themselves. >> >> -- >> >> DAVID A. CURRY, CISSP >> *DIRECTOR • INFORMATION SECURITY & PRIVACY* >> THE NEW SCHOOL • INFORMATION TECHNOLOGY >> >> 71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003 >> +1 646 909-4728 • [email protected] >> >> >> On Wed, Jul 24, 2019 at 2:14 AM alain ubfc <[email protected]> wrote: >> >>> Hello, >>> >>> In fact I noticed that the/var/log/case-management file has nothing in >>> it. >>> >>> Yet I set the rights for the file cas-management.log with the chown -R >>> tomcat:tomcat/var/log/cas-management command. >>> >>> [2019-07-22 08:57:43] [info] 2019-07-22 08:57:43,429 main ERROR Could >>> not create plugin of type class org.apache.logging.log4j.core.appender. >>> RollingFileAppender for element RollingFile: java.lang. >>> IllegalStateException: ManagerFactory [org.apache.logging.log4j.core. >>> appender.rolling.RollingFileManager$RollingFileManagerFactory@6ea59bb2] >>> unable to create manager for [/var/log/cas-management/cas-management.log >>> ] with data [org.apache.logging.log4j.core.appender.rolling. >>> RollingFileManager$FactoryData@506344b1[pattern=/var/log/cas-management/ >>> cas-%d{yyyy-MM-dd-HH}-%i.log, append=true, bufferedIO=true, bufferSize= >>> 8192, policy=CompositeTriggeringPolicy(policies=[ >>> OnStartupTriggeringPolicy, SizeBasedTriggeringPolicy(size=10485760), >>> TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, modulate= >>> false)]), strategy=DefaultRolloverStrategy(min=1, max=5, useMax=true), >>> advertiseURI=null, layout=%highlight{%d %p [%c] - <%m>%n}, >>> filePermissions=null, fileOwner=null]] java.lang.IllegalStateException: >>> ManagerFactory [org.apache.logging.log4j.core.appender.rolling. >>> RollingFileManager$RollingFileManagerFactory@6ea59bb2] unable to create >>> manager for [/var/log/cas-management/cas-management.log] with data [org. >>> apache.logging.log4j.core.appender.rolling. >>> RollingFileManager$FactoryData@506344b1[pattern=/var/log/cas-management/ >>> cas-%d{yyyy-MM-dd-HH}-%i.log, append=true, bufferedIO=true, bufferSize= >>> 8192, policy=CompositeTriggeringPolicy(policies=[ >>> OnStartupTriggeringPolicy, SizeBasedTriggeringPolicy(size=10485760), >>> TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, modulate= >>> false)]), strategy=DefaultRolloverStrategy(min=1, max=5, useMax=true<span >>> style="color:rgb(102,102,0 >>> >> -- > - Website: https://apereo.github.io/cas > - Gitter Chatroom: https://gitter.im/apereo/cas > - List Guidelines: https://goo.gl/1VRrw7 > - Contributions: https://goo.gl/mh7qDG > --- > You received this message because you are subscribed to the Google Groups > "CAS Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/a/apereo.org/d/msgid/cas-user/5e999c26-0b23-4cc9-a521-cbdfa36fa1a1%40apereo.org > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/5e999c26-0b23-4cc9-a521-cbdfa36fa1a1%40apereo.org?utm_medium=email&utm_source=footer> > . > -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CA%2Bd9XAN4WABRF-5uJK8h5riYRejGFhV75EapU%2BVLN8gWHO14xQ%40mail.gmail.com.
