ManagerFactory unable to create manager for [workflow.log] with data
search cancel

ManagerFactory unable to create manager for [workflow.log] with data

book

Article ID: 278497

calendar_today

Updated On:

Products

CA Identity Manager

Issue/Introduction

Errow shown in the log while wildfly is started.

ERROR [ims.workflowFactory] (MSC service thread 1-5) Creating a Connection Factory... java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory@29a49015] unable to create manager for [workflow.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData@5896d046[pattern=workflow.log, append=true, bufferedIO=true, bufferSize=8192, policy=SizeBasedTriggeringPolicy(size=1048576), strategy=DefaultRolloverStrategy(min=1, max=5, useMax=true), advertiseURI=null, layout="%d [%t] %-5p %x  %c - %m%n, filePermissions=null, fileOwner=null]]


 

Environment

IM 14.4, 14.5

Cause

Issue is caused by user starting wildfly lacking access to location where workflow.log is being created.

Default location is shown in log in startup settings under 

user.dir = <location>

for example

user.dir = /

Resolution

We configured the log directory in the ra.xml to point to a path inside of Wildfly where user has access and proper permissions, and it worked:

<config-property>
            <config-property-name>LogDir</config-property-name>
            <config-property-type>java.lang.String</config-property-type>
            <config-property-value>/opt/CA/wildfly-XXXX.Final/bin</config-property-value>
        </config-property>
 
You may of course set different path, most important is for user starting wildfly to have permissions to write to that location.