OHDSI Home | Forums | Wiki | Github

WebAPI won't deploy

I’m trying to deploy version 8.2 with the log4j vulnerability fixed in #1970 but I’m getting errors when I try to deploy. Here are some of the errors from catalina.out:

2022-11-01 22:16:27,860 http-nio-8080-exec-94 ERROR Unable to create file ${bundle:application:audit.trail.log.extraFile} java.io.IOException: Permission denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:1023)

2022-11-01 22:16:27,861 http-nio-8080-exec-94 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@4205e150] unable to create manager for [${bundle:application:audit.trail.log.extraFile}] with data [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData@6be95071[pattern=/tmp/atlas/audit/audit-extra-%d{yyyy-MM-dd}-%i.log, append=true, bufferedIO=true, bufferSize=8192, policy=CompositeTriggeringPolicy(policies=[TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, modulate=true)]), strategy=DefaultRolloverStrategy(min=1, max=7, useMax=true), advertiseURI=null, layout=%m%n, filePermissions=null, fileOwner=null]] java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory@4205e150] unable to create manager for [${bundle:application:audit.trail.log.extraFile}] with data [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData@6be95071[pattern=/tmp/atlas/audit/audit-extra-%d{yyyy-MM-dd}-%i.log, append=true, bufferedIO=true, bufferSize=8192, policy=CompositeTriggeringPolicy(policies=[TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, modulate=true)]), strategy=DefaultRolloverStrategy(min=1, max=7, useMax=true), advertiseURI=null, layout=%m%n, filePermissions=null, fileOwner=null]]

2022-11-01 22:16:27,861 http-nio-8080-exec-94 ERROR Unable to invoke factory method in class org.apache.logging.log4j.core.appender.RollingFileAppender for element RollingFile: java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingFileAppender java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingFileAppender

2022-11-01 22:16:27,863 http-nio-8080-exec-94 ERROR Null object returned for RollingFile in Appenders.
2022-11-01 22:16:27,863 http-nio-8080-exec-94 ERROR Null object returned for RollingFile in Appenders.
2022-11-01 22:16:27,865 http-nio-8080-exec-94 ERROR No appender named audit was configured
22:16:27.872 [http-nio-8080-exec-94] ERROR org.springframework.boot.SpringApplication - Application startup failed
org.apache.logging.log4j.core.config.ConfigurationException: No appenders are available for AsyncAppender audit-async

It looks like it’s trying to create files in /tmp but is denied, but tmp is 777 so it should be fine. Any help greatly appreciated!

t