Questions Tagged With openshifthttps://answers.axonivy.com/tags/openshift/?type=rssquestions tagged <span class="tag">openshift</span>enThu, 18 Jun 2020 21:10:54 -0400Axon.ivy Engine 8 could not start on OpenShift with DeploymentConfighttps://answers.axonivy.com/questions/4599/axon-ivy-engine-8-could-not-start-on-openshift-with-deploymentconfig<p>Hi Ivy Team,</p> <p>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.</p> <p>Here is the error detail:</p> <pre><code>&lt;title&gt;Invalid Configuration Location&lt;/title&gt;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. </code></pre> <p>I guest OpenShift runs Axon.ivy Engine by a different user than the one defined in Docker Image.</p> <p>I think fixing the permission of <code>/usr/lib/axonivy-engine-8</code> may solve the issue. By adding these line into Dockerfile</p> <pre><code>RUN chown -R ivy:root /usr/lib/axonivy-engine-8 &amp;&amp; chmod 775 -R /usr/lib/axonivy-engine-8 </code></pre> <p>Do you have any suggestion?</p> <p><strong>Update:</strong></p> <p>After fixing permission, I faced another issue, it's definitely related to OpenShift using different user.</p> <pre><code>java.lang.RuntimeException: Error initializing storage. at org.eclipse.osgi.internal.framework.EquinoxContainer.&lt;init&gt;(EquinoxContainer.java:84) at org.eclipse.osgi.launch.Equinox.&lt;init&gt;(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.&lt;init&gt;(Storage.java:241) at org.eclipse.osgi.storage.Storage.createStorage(Storage.java:176) at org.eclipse.osgi.internal.framework.EquinoxContainer.&lt;init&gt;(EquinoxContainer.java:82) ... 11 more An error has occurred. See the log file null. </code></pre>vinh_Thu, 18 Jun 2020 21:10:54 -0400https://answers.axonivy.com/questions/4599/axon-ivy-engine-8-could-not-start-on-openshift-with-deploymentconfigengineivyopenshift