Hey everyone, I wanted to migrate one of our little pet projects from a full cloud slot to sandbox. So I exported it and imported again in the new project. I added the appservice module exactly as the step by step guide says, but when I want to acces the app I get a page saying there is an Intern Server Error and I should contact the admin. The error in the console is down below. I'm probably missing something, but why won't it just show the login screen? I made the appservice layout masterlayout to all my own layouts, but no luck there. Hope anyone has a tip to get this started up again. !Updated with screenshot of the MF and the error log! Link to logs of error 2014-06-02 16:46:22.199 INFO - AppCloudServices: Found local discovery of RP return_url endpoint. 2014-06-02 16:46:22.303 INFO - AppCloudServices: Found local discovery of RP return_url endpoint. 2014-06-02 16:46:22.390 INFO - AppCloudServices: [OpenID Verify Response] receivingurl: https://sogetipromocard.mendixcloud.com/openid/callback?openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.op_endpoint=https%3A%2F%2Fmxid2.mendixcloud.com%2Fmxid2%2F&openid.claimed_id=https%3A%2F%2Fmxid2.mendixcloud.com%2Fmxid2%2Fid%3Fid%3D4c9b1fb9-152b-4fda-b9b0-736e8ed6d3d2&openid.response_nonce=2014-06-02T14%3A46%3A22Z0&openid.mode=id_res&openid.identity=https%3A%2F%2Fmxid2.mendixcloud.com%2Fmxid2%2Fid%3Fid%3D4c9b1fb9-152b-4fda-b9b0-736e8ed6d3d2&openid.return_to=https%3A%2F%2Fsogetipromocard.mendixcloud.com%2Fopenid%2Fcallback&openid.assoc_handle=1398627853720-S-72b5e84c-8acc-459c-ace0-2e5db709eb90&openid.signed=op_endpoint%2Cclaimed_id%2Cidentity%2Creturn_to%2Cresponse_nonce%2Cassoc_handle&openid.sig=lHD0e5cs2kG6LJfiIWD814Q7zPoiz8QhFFC0e9C3PAU%3D; to: openid.return_to:https://sogetipromocard.mendixcloud.com/openid/callback 2014-06-02 16:46:22.510 INFO - OpenID: User 'https://mxid2.mendixcloud.com/mxid2/id?id=4c9b1fb9-152b-4fda-b9b0-736e8ed6d3d2' does not exist in database. Triggering OnFirstLogin action... 2014-06-02 16:46:23.348 WARNING - OpenID: Find or create user for openID 'https://mxid2.mendixcloud.com/mxid2/id?id=4c9b1fb9-152b-4fda-b9b0-736e8ed6d3d2' caught exception. Triggering rollback. 2014-06-02 16:46:23.349 ERROR - AppCloudServices: Error while handling OpenID request: Internal Server Error: We failed to register your account in this app. Please try again later or contact the administrator of this app.: com.mendix.core.CoreRuntimeException: com.mendix.core.objectmanagement.DataValidationInfo@782d9574 2014-06-02 16:46:23.349 ERROR - AppCloudServices: com.mendix.core.CoreException: com.mendix.core.CoreRuntimeException: com.mendix.core.objectmanagement.DataValidationInfo@782d9574 at com.mendix.core.component.InternalCore.execute(SourceFile:379) Caused by: com.mendix.core.CoreRuntimeException: com.mendix.core.objectmanagement.DataValidationInfo@782d9574 at com.mendix.core.actionmanagement.ActionManager.executeSync(SourceFile:216) Caused by: com.mendix.systemwideinterfaces.core.UserException: null
This error seems to originate from your onfirst login microflow. Is it the case that a new user accounts gets commit to the database before 'ProvisionAsAppCloudUser' is called? In that case, postpone the commit. Otherwise, can you post an image of your on first login implementation?
(see comments below)
The url from the launchpad will always try to log the user in, which is fine, because the user is logged in anyway (otherwise he wouldn't be able to see his launchpad). So I think this is where it goes wrong conceptually.
OnFirstLogin is meant for logging MxID users onto your app and create an account object for them. So please do not alter the 'Name' or 'IsLocalUser' attributes because these are very important to the module. If you want to serve the app to anonymous user, just do this as you would do it in any app, and serve the app url to them directly (the launchpad will always start at app.mendixcloud.com/openid/login instead of just app.mendixcloud.com). The openid/login entrypoint is also the reason the OnFirstLogin is triggered in the first place.