Check that the process is actually running as tomcat. Turn on debug logging and see what's happening. Compare the owners and modes of the working logs (cas) to the non-working ones (cas-management).
There's a permission that's wrong, or it's running as the wrong user, or there's a typo in a path name, or something. It's really just a matter of meticulously checking everything. Don't assume anything, check everything. -- 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 9:13 AM alain ubfc <[email protected]> wrote: > David, > > I have the log of tomcat /var/log/tomcat/catalina.ou. And it works. > > Here is my file /etc/fstab > > # /etc/fstab: static file system information. > # > # Use 'blkid' to print the universally unique identifier for a > # device; this may be used with UUID= as a more robust way to name devices > # that works even if disks are added and removed. See fstab(5). > # > # <file system> <mount point> <type> <options> <dump> <pass> > /dev/mapper/casermgnt--vg-root / ext4 errors=remount-ro 0 > 1 > # /boot was on /dev/sda1 during installation > UUID=af1e7cbd-4161-4099-9000-a7ebbb14c336 /boot ext2 > defaults 0 2 > /dev/mapper/casermgnt--vg-home /home ext4 defaults 0 > 2 > /dev/mapper/casermgnt--vg-tmp /tmp ext4 defaults 0 > 2 > /dev/mapper/casermgnt--vg-var /var ext4 defaults 0 > 2 > /dev/mapper/casermgnt--vg-swap_1 none swap sw 0 > 0 > /dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0 > > I don't see it. > > > 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/cd674a0f-844e-4397-a374-fbbe0b7d1219%40apereo.org > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/cd674a0f-844e-4397-a374-fbbe0b7d1219%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%2Bd9XAN6jXWHGnoCPk-GA2cKYX6oJLsdfekQs542iS8M75zNnA%40mail.gmail.com.
