The AWI is failing to start on Tomcat, preventing users from accessing the system.
search cancel

The AWI is failing to start on Tomcat, preventing users from accessing the system.

book

Article ID: 416977

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

The AWI is currently inaccessible. The Catalina log file reports the following exceptions:

java.lang.RuntimeException: java.lang.IllegalStateException: Error initializing storage for Equinox container. 
            at com.uc4.ecc.launcher.osgi.init.OsgiFrameworkInitializer.start(OsgiFrameworkInitializer.java:124) 
            at com.uc4.ecc.launcher.osgi.init.OsgiFrameworkInitializer.runInternal(OsgiFrameworkInitializer.java:85) 
            at com.uc4.ecc.launcher.osgi.init.OsgiFrameworkInitializer.start(OsgiFrameworkInitializer.java:73) 
            at com.uc4.ecc.framework.webapp.servlet.init.TomcatBridgeInitializer.init(TomcatBridgeInitializer.java:52) 
            at com.uc4.ecc.framework.webapp.servlet.init.TomcatBridgeInitializer.lambda$start$0(TomcatBridgeInitializer.java:30) 
            at java.base/java.lang.Thread.run(Unknown Source) 
Caused by: java.lang.IllegalStateException: Error initializing storage for Equinox container. 
             at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(EquinoxContainer.java:110) 
             at org.eclipse.osgi.launch.Equinox.<init>(Equinox.java:53) 
             at org.eclipse.osgi.launch.EquinoxFactory.newFramework(EquinoxFactory.java:36) 
             at org.eclipse.osgi.launch.EquinoxFactory.newFramework(EquinoxFactory.java:31) 
             at com.uc4.ecc.launcher.osgi.init.OsgiFrameworkInitializer.start(OsgiFrameworkInitializer.java:99) ... 5 more 
Caused by: java.io.IOException: Unable to create lock manager. 
             at org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:712) 
             at org.eclipse.osgi.storage.Storage.getChildStorageManager(Storage.java:2290) 
             at org.eclipse.osgi.storage.Storage.getInfoInputStream(Storage.java:2308)
             at org.eclipse.osgi.storage.Storage.<init>(Storage.java:267) 
             at org.eclipse.osgi.storage.Storage.createStorage(Storage.java:186) 
             at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(EquinoxContainer.java:108)

 

Environment

Automic Automation Engine 24.4.2

Tomcat: 9.0.96

OS: Linux RedHat 9

Cause

A file permissions issue has been identified on the Linux system.

Resolution

 

 

The Tomcat instance was initiated with specific user and group permissions; however, the org.eclipse.osgi file was found to be under root ownership.

/automic/tomcat/work/Catalina/localhost/awi/0

drwxr-x---.  3 user group 4096 Nov  4 11:16 .
drwxr-x---.  3 user group 4096 Nov  4 10:19 ..
-rw-r-----.  1 user group 1870 Nov  4 10:19 1762247996503.log
-rw-r-----.  1 user group 1870 Nov  4 11:11 1762251062631.log
drwxr-x---. 14 root root  4096 Nov  4 11:16 org.eclipse.osgi

After the file org.eclipse.osgi's ownership was corrected to user:group (using sudo chown user:group org.eclipse.osgi), the AWI started as expected.