Error on login to application in Sandbox.

1
I have two strange errors on my application which runs in the sandbox. First one is the message "Whoops something went wrong during deployment to the sandbox", but in fact the deployment is executed correctly. The application log shows no errors. It doesn't give me a good feeling that Mendix tells me that something is wrong but in fact the app is deployed. The second error is the login using the appcloud user. Basicly the log returns three lines: 1. Launchpad App Service call for 'Get role for open ID' returned the following error: Could not authenticate the environment ID and password combination 2. User https://mxid2.mendixcloud.com/mxid2/id?id=3a1b7487-bc3e-416c-b504-e270157e7e02 authenticated. Starting session. 3. Failed to update user roles for 'https://mxid2.mendixcloud.com/mxid2/id?id=3a1b7487-bc3e-416c-b504-e270157e7e02', permissions for this user might be outdated The user logs in and i can do anything as 'administrator'. Somewhere it looks like the authorisation groups in the sandbox are not in sync with the authorisation group in my app. How can i bring them in sync again? Loging in as a local user works fine. What can i do to correct this error? And what should i do to prevent this error in future? Stacktrace: com.mendix.core.CoreException: com.mendix.modules.microflowengine.MicroflowException: javax.xml.ws.soap.SOAPFaultException: Could not authenticate the environment ID and password combination at PermissionsAPI.GetRolesForOpenID (CallWebservice : 'Call web service') at AppCloudServices.RetrieveUserRoles (SubMicroflow : 'Call 'GetRolesForOpenID'') at AppCloudServices.InvokeOnNonFirstLoginAppCloudUser (SubMicroflow : 'RetrieveUserRoles') Advanced stacktrace: at com.mendix.core.component.InternalCore.execute(SourceFile:382) Caused by: com.mendix.modules.microflowengine.MicroflowException: javax.xml.ws.soap.SOAPFaultException: Could not authenticate the environment ID and password combination at PermissionsAPI.GetRolesForOpenID (CallWebservice : 'Call web service') at AppCloudServices.RetrieveUserRoles (SubMicroflow : 'Call 'GetRolesForOpenID'') at AppCloudServices.InvokeOnNonFirstLoginAppCloudUser (SubMicroflow : 'RetrieveUserRoles') Advanced stacktrace: at com.mendix.modules.microflowengine.MicroflowUtil.processException(SourceFile:158) Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: javax.xml.ws.soap.SOAPFaultException: Could not authenticate the environment ID and password combination at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(SourceFile:40) Caused by: javax.xml.ws.soap.SOAPFaultException: Could not authenticate the environment ID and password combination at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:193) at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:126) at com.sun.xml.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:199) at com.sun.xml.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:218) at com.mendix.gj$3.a(SourceFile:347) at com.mendix.gj$3.run(SourceFile:320) at java.security.AccessController.doPrivileged(Native Method) at com.mendix.gj$2.a(SourceFile:305) at com.mendix.gj$2.execute(SourceFile:301) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(SourceFile:36) at com.mendix.util.classloading.Runner$1.run(SourceFile:23) at java.security.AccessController.doPrivileged(Native Method) at com.mendix.util.classloading.Runner.runUsingClassLoaderOf(SourceFile:18) at com.mendix.gj.a(SourceFile:300) at com.mendix.gj.a(SourceFile:144) at com.mendix.ge.a(SourceFile:200) at com.mendix.integration.internal.IntegrationImpl.callWebservice(SourceFile:145) at com.mendix.fW.execute(SourceFile:74) at com.mendix.ik.a(SourceFile:47) at com.mendix.ij.a(SourceFile:193) at com.mendix.ij.executeAction(SourceFile:148) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:53) at com.mendix.core.actionmanagement.CoreAction.doCall(SourceFile:291) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:276) at com.mendix.core.actionmanagement.ActionManager.executeSync(SourceFile:199) at com.mendix.core.component.InternalCore.executeSync(SourceFile:235) at com.mendix.modules.microflowengine.actions.SubMicroflowAction.execute(SourceFile:33) at com.mendix.ik.a(SourceFile:47) at com.mendix.ij.a(SourceFile:193) at com.mendix.ij.executeAction(SourceFile:148) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:53) at com.mendix.core.actionmanagement.CoreAction.doCall(SourceFile:291) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:276) at com.mendix.core.actionmanagement.ActionManager.executeSync(SourceFile:199) at com.mendix.core.component.InternalCore.executeSync(SourceFile:235) at com.mendix.modules.microflowengine.actions.SubMicroflowAction.execute(SourceFile:33) at com.mendix.ik.a(SourceFile:47) at com.mendix.ij.a(SourceFile:193) at com.mendix.ij.executeAction(SourceFile:148) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:53) at com.mendix.core.actionmanagement.CoreAction.doCall(SourceFile:291) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:276) at com.mendix.core.actionmanagement.CustomActionMonitorImpl$$anonfun$run$1.apply(SourceFile:17) at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(SourceFile:158) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(SourceFile:36) at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(SourceFile:160) at scala.util.Try$.apply(Try.scala:191) at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(SourceFile:154) at akka.actor.Actor$class.aroundReceive(Actor.scala:465) at com.mendix.core.session.Worker.aroundReceive(SourceFile:147) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516) at akka.actor.ActorCell.invoke(ActorCell.scala:487) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238) at akka.dispatch.Mailbox.run(Mailbox.scala:220) at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393) at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
asked
2 answers
1

Hi Pieter,

I had a look in our logs and it appears that when your sandbox app calls our permissions API to check which roles the OpenID you posted has in your app, it does so with invalid credentials. This should be automatically fixed by redeploying to your sandbox, so could you try to see if this indeed fixes your issue?

answered
0

I had a look at your sandbox, and was able to determine from the logs when the issue started. It turns out the issue which caused the "Woops" message was specific to the node to which you deployed, and has since been deployed. However it appears that the automatically generated credentials which your application uses to authenticate itself with our servers were not set correctly.

Can you confirm that you redeployed to your sandbox during the past 2 days? If not, doing so should fix it. If you did, can you please submit a ticket in our Support Portal (support.mendix.com) with as many details as possible about your issue, so we can fix it?

answered