aws-mwaa-local-runner: UI Login doesn't work
Hello,
I followed all the steps in the readme and when I access the login page using the credentials ‘admin’ ‘test’ nothing happens. I try to get to the homepage but I continue to have the login fields
local-runner_1 | 172.18.0.1 - - [26/May/2021:10:35:50 +0000] "POST /login/?next=http%3A%2F%2F127.0.0.1%3A8080%2Fhome HTTP/1.1" 302 209 "http://127.0.0.1:8080/login/?next=http%3A%2F%2F127.0.0.1%3A8080%2Fhome" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36"
local-runner_1 | 172.18.0.1 - - [26/May/2021:10:35:50 +0000] "GET / HTTP/1.1" 302 217 "http://127.0.0.1:8080/login/?next=http%3A%2F%2F127.0.0.1%3A8080%2Fhome" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36"
local-runner_1 | 172.18.0.1 - - [26/May/2021:10:35:50 +0000] "GET /home HTTP/1.1" 302 305 "http://127.0.0.1:8080/login/?next=http%3A%2F%2F127.0.0.1%3A8080%2Fhome" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36"
local-runner_1 | 172.18.0.1 - - [26/May/2021:10:35:51 +0000] "GET /login/?next=http%3A%2F%2F127.0.0.1%3A8080%2Fhome HTTP/1.1" 200 17126 "http://127.0.0.1:8080/login/?next=http%3A%2F%2F127.0.0.1%3A8080%2Fhome" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36"

About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 16
- Comments: 20 (2 by maintainers)
Commits related to this issue
- stanaws: When running mwaa-local-runner start in Cloud9, the default login admin/test just infinitely redirects to the login page. This commit implements the workaround mentioned in Issue #10. It also... — committed to sguillory6/aws-mwaa-local-runner by sguillory6 2 years ago
- Revert "stanaws: When running mwaa-local-runner start in Cloud9, the default login admin/test just infinitely redirects to the login page. This commit implements the workaround mentioned in Issue #10.... — committed to sguillory6/aws-mwaa-local-runner by sguillory6 2 years ago
- When running mwaa-local-runner start in Cloud9, the default login admin/test just infinitely redirects to the login page. This commit implements the workaround mentioned in Issue #10. It also eliminat... — committed to sguillory6/aws-mwaa-local-runner by sguillory6 2 years ago
- https://github.com/aws/aws-mwaa-local-runner/issues/10 — committed to https-deeplearning-ai/aws-mwaa-local-runner by timtan 2 years ago
We were able to resolve this by adding
AUTH_ROLE_PUBLIC = "Admin"todocker/config/webserver_config.pyand commenting out
airflow users create -r Admin -u admin -e admin@example.com -f admin -l user -p testindocker/script/entrypoint.shI have also noticed this. Accessing to
http://0.0.0.0:8080and performing logging operations leaded into an endless forwarding into the logging page.The stdout logger shows both the successfull logging and the redirection.
I also noticed this happenened when I had other aws-mwaa-local-runner-webui tab openened in the browser.
Instead of copy pasting the UR
http://0.0.0.0:8080or clicling on the link from stdout, I just went to my browser and typedhttp://localhost:8080. I have neved had the issue again so far.This is not much, but hope it helps
I have the same issue, no way to login 😦
same problem… tested with chrome, firefox and Safari
same problem here, seems the page keeps redirecting
Same Issue:
Working! Thanks! Maybe worth to mention that you need to run
./mwaa-local-env build-imageafter these changes.Adding to @subashcanapathy 's point. The below steps worked for me on an ec2 instance.
Via local port forwarding (you don’t need the proxy):