Axon.ivy Engine 8 could not start on OpenShift with DeploymentConfig
Hi Ivy Team,
I'm trying to run Axon.ivy Engine on OpenShift, the first try with a Pod is working. Then I try to use DeploymentConfig to automate the Pod creation, it could not run because the running user didn't have permission on Axon.ivy Engine directory.
Here is the error detail:
<title>Invalid Configuration Location</title>The configuration area at '/usr/lib/axonivy-engine-8/?/.eclipse/1939981958_linux_gtk_x86_64/configuration' could not be created. Please choose a writable location using the '-configuration' command line option.
I guest OpenShift runs Axon.ivy Engine by a different user than the one defined in Docker Image.
I think fixing the permission of `/usr/lib/axonivy-engine-8` may solve the issue. By adding these line into Dockerfile
RUN chown -R ivy:root /usr/lib/axonivy-engine-8 && chmod 775 -R /usr/lib/axonivy-engine-8
Do you have any suggestion?suggestion?
**Update:**
After fixing permission, I faced another issue, it's definitely related to OpenShift using different user.
java.lang.RuntimeException: Error initializing storage.
at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(EquinoxContainer.java:84)
at org.eclipse.osgi.launch.Equinox.<init>(Equinox.java:34)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:315)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:251)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:660)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597)
at org.eclipse.equinox.launcher.Main.run(Main.java:1468)
at org.eclipse.equinox.launcher.Main.main(Main.java:1441)
Caused by: java.io.IOException: Unable to create lock manager.
at org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:713)
at org.eclipse.osgi.storage.Storage.getChildStorageManager(Storage.java:2168)
at org.eclipse.osgi.storage.Storage.getInfoInputStream(Storage.java:2185)
at org.eclipse.osgi.storage.Storage.<init>(Storage.java:241)
at org.eclipse.osgi.storage.Storage.createStorage(Storage.java:176)
at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(EquinoxContainer.java:82)
... 11 more
An error has occurred. See the log file
null.