Problem with login (Mendix - Docker)

0
Hello,   I have created a new blank app (version 10.18) and generated a Dockerfile from it. I was also able to create a image from it and run it (open the app in the browser). I also created a video, showing all my steps and the occuring problem: https://youtu.be/j390CcO34Cw   As you can see in the video, I found the log:  WARNING - Core: MxADmin user with username MxAdmin' does not exist! Is that how it should be?   As soon as I try to log in, I seem to be redirected straight back to the login page. If I start the app via Studio Pro, this does not happen.   What I don't show in the video but have also tried is enabling ‘Allow anonymous users’, however this results in me seeing a white page that is constantly refreshed and rebuilt within a few ms or sec, consequently I see nothing.   Does anyone know what the problem is? Do I have to make further configurations in the yaml or Dockerfile? Unfortunately I am totally unfamiliar with this topic.   Help would be very much appreciated!  
asked
5 answers
0

For Mendix 10, you need to use the latest version of Docker Buildpack. Can you check if using the latest version (currently 6.0.1) resolves it? 

answered
2

Hello friends,

 

You may try to clear the cache (and cookies) and try again!

See more at the final part of this article:

Update: Containerize Mendix Applications | Medium

 

 

answered
0

In the CMD that I use to start the container, nothing is logged after a successful login. Only incorrect logins.

 

I have also created a new user via a microflow during startup and the user has the same problem.

I have also tried this with Mendix version 10.23 but still the same issue.

 

Attached is a screenshot where it looks like it is a cookie problem. Can anyone reproduce this and know the cause?

 

Error.png

answered
0

I have the same problem.I confirmed that the database I was connected to had MxAdmin and the password was correct.But after entering the login page and entering the MxAdmin account, the page did not redirect correctly.I guess the POST request when logging in did not reach the correct effect (through the url path I can see that it tries to jump to index.html, but quickly changes back to login.html).

 

My Mendix Studio Pro Version: 10.18.6

and docker-mendix-buildpack is v6.0.1

answered
0

Hi, Dennis

Thank you very much for your help yesterday. I benefited a lot from it.

Today I tried to deploy again with my existing project and I got the same result as yesterday.

For some reason, Chrome browser still cannot log in (clearing cache and cookies does not help).

But as long as I use firefox or edge, it can be used normally.

 

I guess it can only use these two browsers for now.

Anyway, thank you for your detailed explanation and help. I hope we can keep in touch in the future to discuss more different issues.

answered