How to deply Mendix and MyID in docker container?

0
Hi, does anyone knows how to deploy Mendix and MyID in docker container?. I have followed the https://github.com/mendix/docker-mendix-buildpack to generate the Dockfiler for Mendix and successfully deployed it. However, the Mendix id seems to be changed afterwars. Therefore, it cannot find the corresponding SAML configuration for SSO stored in external database?   I really appreciate your help! Here is the error:  composr-mendix-widget_1 | INFO - Core: Initialized license. composr-mendix-widget_1 | INFO - Queue: Initializing task queue manager with configuration: . composr-mendix-widget_1 | INFO - Core: Running after-startup-action... composr-mendix-widget_1 | ERROR - SAML_SSO: Unable to load the IdP Metadata composr-mendix-widget_1 | ERROR - SAML_SSO: com.mendix.storage.FileNotFoundInStorageException: LocalFileSystemStore:: File does not exist for key: 08c32900-eb8f-4c06-997a-2b3955016ddc composr-mendix-widget_1 | at com.mendix.storage.localfilesystem.internal.LocalFileSystemStore.getFileDocumentAsFile(LocalFileSystemStore.scala:167) composr-mendix-widget_1 | at com.mendix.storage.localfilesystem.internal.LocalFileSystemStore.$anonfun$doRetrieveWith$1(LocalFileSystemStore.scala:147) composr-mendix-widget_1 | at scala.util.Try$.apply(Try.scala:210) composr-mendix-widget_1 | at com.mendix.storage.localfilesystem.internal.LocalFileSystemStore.doRetrieveWith(LocalFileSystemStore.scala:146) composr-mendix-widget_1 | at com.mendix.storage.localfilesystem.internal.LocalFileSystemStore.doRetrieve(LocalFileSystemStore.scala:137) composr-mendix-widget_1 | at com.mendix.storage.StorageService.retrieve(StorageService.scala:90) composr-mendix-widget_1 | at com.mendix.storage.StorageService.retrieve$(StorageService.scala:89) composr-mendix-widget_1 | at com.mendix.storage.localfilesystem.internal.LocalFileSystemStore.retrieve(LocalFileSystemStore.scala:25) composr-mendix-widget_1 | at com.mendix.filedocumentprocessor.internal.FileDocumentProcessorImpl.getFileDocument(FileDocumentProcessorImpl.java:67) composr-mendix-widget_1 | at com.mendix.basis.component.InternalCoreBase.getFileDocumentContent(InternalCoreBase.java:470) composr-mendix-widget_1 | at com.mendix.core.Core.getFileDocumentContent(Core.java:1236) composr-mendix-widget_1 | at saml20.implementation.metadata.IdpMetadata.getIdpEntityDescriptor(IdpMetadata.java:156) composr-mendix-widget_1 | at saml20.implementation.metadata.IdpMetadata.updateConfiguration(IdpMetadata.java:56) composr-mendix-widget_1 | at saml20.implementation.SAMLRequestHandler.initServlet(SAMLRequestHandler.java:99) composr-mendix-widget_1 | at saml20.implementation.SAMLRequestHandler.<init>(SAMLRequestHandler.java:68) composr-mendix-widget_1 | at saml20.implementation.SAMLRequestHandler.getInstance(SAMLRequestHandler.java:59) composr-mendix-widget_1 | at saml20.implementation.SSOServerConfiguration.start(SSOServerConfiguration.java:16) composr-mendix-widget_1 | at saml20.actions.StartSSO.executeAction(StartSSO.java:27) composr-mendix-widget_1 | at saml20.actions.StartSSO.executeAction(StartSSO.java:16) composr-mendix-widget_1 | at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:49) composr-mendix-widget_1 | at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:147) composr-mendix-widget_1 | at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:152) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.UserActionCallBuilderImpl.execute(UserActionCallBuilderImpl.scala:30) composr-mendix-widget_1 | at com.mendix.modules.microflowengine.actions.actioncall.JavaAction.execute(JavaAction.scala:56) composr-mendix-widget_1 | at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.$anonfun$execute$1(MicroflowObject.scala:32) composr-mendix-widget_1 | at scala.Option.flatMap(Option.scala:283) composr-mendix-widget_1 | at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.scala:29) composr-mendix-widget_1 | at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.$anonfun$executeAfterBreakingIfNecessary$2(MicroflowImpl.scala:172) composr-mendix-widget_1 | at scala.Option.flatMap(Option.scala:283) composr-mendix-widget_1 | at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.scala:172) composr-mendix-widget_1 | at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.scala:119) composr-mendix-widget_1 | at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:49) composr-mendix-widget_1 | at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.DefaultActionMonitor$.$anonfun$run$1(CustomMonitoredAction.scala:18) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.IMonitoredAction$$anon$1.execute(IMonitoredAction.scala:47) composr-mendix-widget_1 | at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.IMonitoredAction.monitor(IMonitoredAction.scala:49) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.IMonitoredAction.monitor$(IMonitoredAction.scala:25) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.CustomMonitoredAction.monitor(CustomMonitoredAction.scala:22) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.DefaultActionMonitor$.run(CustomMonitoredAction.scala:18) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.runMonitoredAction(CoreActionHandlerImpl.scala:60) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:47) composr-mendix-widget_1 | at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:147) composr-mendix-widget_1 | at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:152) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.MicroflowCallBuilderImpl.execute(MicroflowCallBuilderImpl.scala:40) composr-mendix-widget_1 | at com.mendix.basis.impl.MxRuntimeImplBase.doFire(MxRuntimeImplBase.java:605) composr-mendix-widget_1 | at com.mendix.basis.impl.MxRuntimeImplBase.fireZeMissiles(MxRuntimeImplBase.java:559) composr-mendix-widget_1 | at com.mendix.basis.impl.MxRuntimeImplBase.start(MxRuntimeImplBase.java:341) composr-mendix-widget_1 | at com.mendix.m2ee.appcontainer.actions.StartAction.startRuntime(StartAction.java:48) composr-mendix-widget_1 | at com.mendix.m2ee.appcontainer.actions.StartAction.execute(StartAction.java:30) composr-mendix-widget_1 | at com.mendix.m2ee.appcontainer.server.handler.HttpAdminHandler.handle(HttpAdminHandler.java:129) composr-mendix-widget_1 | at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) composr-mendix-widget_1 | at org.eclipse.jetty.server.Server.handle(Server.java:516) composr-mendix-widget_1 | at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388) composr-mendix-widget_1 | at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633) composr-mendix-widget_1 | at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380) composr-mendix-widget_1 | at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) composr-mendix-widget_1 | at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) composr-mendix-widget_1 | at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) composr-mendix-widget_1 | at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) composr-mendix-widget_1 | at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338) composr-mendix-widget_1 | at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315) composr-mendix-widget_1 | at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173) composr-mendix-widget_1 | at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131) composr-mendix-widget_1 | at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:386) composr-mendix-widget_1 | at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883) composr-mendix-widget_1 | at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034) composr-mendix-widget_1 | at java.base/java.lang.Thread.run(Unknown Source) composr-mendix-widget_1 | composr-mendix-widget_1 | ERROR - SAML_SSO: Unable to initialize the Servlet configuration composr-mendix-widget_1 | ERROR - SAML_SSO: org.opensaml.saml.common.SAMLException: Unable to find an Entity Descriptor with id: https://saml2.myid-qa.siemens.com composr-mendix-widget_1 | at saml20.implementation.metadata.IdpMetadata.getIdpEntityDescriptor(IdpMetadata.java:167) composr-mendix-widget_1 | at saml20.implementation.metadata.IdpMetadata.updateConfiguration(IdpMetadata.java:56) composr-mendix-widget_1 | at saml20.implementation.SAMLRequestHandler.initServlet(SAMLRequestHandler.java:99) composr-mendix-widget_1 | at saml20.implementation.SAMLRequestHandler.<init>(SAMLRequestHandler.java:68) composr-mendix-widget_1 | at saml20.implementation.SAMLRequestHandler.getInstance(SAMLRequestHandler.java:59) composr-mendix-widget_1 | at saml20.implementation.SSOServerConfiguration.start(SSOServerConfiguration.java:16) composr-mendix-widget_1 | at saml20.actions.StartSSO.executeAction(StartSSO.java:27) composr-mendix-widget_1 | at saml20.actions.StartSSO.executeAction(StartSSO.java:16) composr-mendix-widget_1 | at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:49) composr-mendix-widget_1 | at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:147) composr-mendix-widget_1 | at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:152) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.UserActionCallBuilderImpl.execute(UserActionCallBuilderImpl.scala:30) composr-mendix-widget_1 | at com.mendix.modules.microflowengine.actions.actioncall.JavaAction.execute(JavaAction.scala:56) composr-mendix-widget_1 | at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.$anonfun$execute$1(MicroflowObject.scala:32) composr-mendix-widget_1 | at scala.Option.flatMap(Option.scala:283) composr-mendix-widget_1 | at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.scala:29) composr-mendix-widget_1 | at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.$anonfun$executeAfterBreakingIfNecessary$2(MicroflowImpl.scala:172) composr-mendix-widget_1 | at scala.Option.flatMap(Option.scala:283) composr-mendix-widget_1 | at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.scala:172) composr-mendix-widget_1 | at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.scala:119) composr-mendix-widget_1 | at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:49) composr-mendix-widget_1 | at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.DefaultActionMonitor$.$anonfun$run$1(CustomMonitoredAction.scala:18) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.IMonitoredAction$$anon$1.execute(IMonitoredAction.scala:47) composr-mendix-widget_1 | at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.IMonitoredAction.monitor(IMonitoredAction.scala:49) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.IMonitoredAction.monitor$(IMonitoredAction.scala:25) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.CustomMonitoredAction.monitor(CustomMonitoredAction.scala:22) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.DefaultActionMonitor$.run(CustomMonitoredAction.scala:18) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.runMonitoredAction(CoreActionHandlerImpl.scala:60) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:47) composr-mendix-widget_1 | at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:54) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:147) composr-mendix-widget_1 | at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:152) composr-mendix-widget_1 | at com.mendix.basis.actionmanagement.MicroflowCallBuilderImpl.execute(MicroflowCallBuilderImpl.scala:40) composr-mendix-widget_1 | at com.mendix.basis.impl.MxRuntimeImplBase.doFire(MxRuntimeImplBase.java:605) composr-mendix-widget_1 | at com.mendix.basis.impl.MxRuntimeImplBase.fireZeMissiles(MxRuntimeImplBase.java:559) composr-mendix-widget_1 | at com.mendix.basis.impl.MxRuntimeImplBase.start(MxRuntimeImplBase.java:341) composr-mendix-widget_1 | at com.mendix.m2ee.appcontainer.actions.StartAction.startRuntime(StartAction.java:48) composr-mendix-widget_1 | at com.mendix.m2ee.appcontainer.actions.StartAction.execute(StartAction.java:30) composr-mendix-widget_1 | at com.mendix.m2ee.appcontainer.server.handler.HttpAdminHandler.handle(HttpAdminHandler.java:129) composr-mendix-widget_1 | at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) composr-mendix-widget_1 | at org.eclipse.jetty.server.Server.handle(Server.java:516) composr-mendix-widget_1 | at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388) composr-mendix-widget_1 | at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633) composr-mendix-widget_1 | at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380) composr-mendix-widget_1 | at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) composr-mendix-widget_1 | at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) composr-mendix-widget_1 | at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) composr-mendix-widget_1 | at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) composr-mendix-widget_1 | at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338) composr-mendix-widget_1 | at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315) composr-mendix-widget_1 | at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173) composr-mendix-widget_1 | at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131) composr-mendix-widget_1 | at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:386) composr-mendix-widget_1 | at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883) composr-mendix-widget_1 | at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034) composr-mendix-widget_1 | at java.base/java.lang.Thread.run(Unknown Source) composr-mendix-widget_1 |  
asked
1 answers
1

You filestoragesystem seems to be configured to local which is not compliant with a docker image. 

And the SAML module needs an external file storage system to work (see module dependencies : If you are running your app outside of the Mendix Cloud, make sure you have external file storage configured. The SAML module writes configuration data to a file document on the file storage to read it later. Without external file storage, this configuration will be lost when you restart your app. The SAML module will not work correctly without reading the configuration data from the file storage). So you need to configure one to be able to use SAML module.

hope this helps

answered