Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default credentials not working on tag v2.4.3 #210

Closed
ghost opened this issue Feb 13, 2023 · 6 comments · May be fixed by #306
Closed

Default credentials not working on tag v2.4.3 #210

ghost opened this issue Feb 13, 2023 · 6 comments · May be fixed by #306

Comments

@ghost
Copy link

ghost commented Feb 13, 2023

By default, the bootstrap.sh script creates a username and password for your local Airflow environment.

Username: admin
Password: test

This doesn't work for me, I've tested this with both Chromium and Firefox.

I get this log after resetting the db with ./mwaa-local-env reset-db but it does not tell me with which password the user was added.

local-runner_1  | [2023-02-13 15:36:45,772] {{manager.py:212}} INFO - Added user admin
@wang-lx
Copy link

wang-lx commented Mar 18, 2023

I have the same problem. admin/test doesn't work. The page will show Invalid login. Please try again.. Could anyone help to fix this?

@toddy86
Copy link

toddy86 commented Apr 5, 2023

There is a bug. If you look at the terminal output, it will show that the creation of the admin user actually fails. Short of actually fixing the code, the quick "hack" is to simple open a shell inside the container and create the user manually.

./mwaa-local-env shell
airflow users create -r Admin -u admin -e [email protected] -f admin -l user -p admin

@matiaspirovanovarela
Copy link

This is also happening on tag v2.5.1.

@toddy86 I wasn't able to run ./mwaa-local-env shell and I couldn't find the shell command in the script nor the history. May I ask what tag or version are you using?

@toddy86
Copy link

toddy86 commented May 11, 2023

@matiaspirovanovarela, I'm on 2.2.2

Ah, and the shell command doesn't exist natively (my bad). This is something we implemented.

We wrap everything into a make file. So to access the shell, just run something like

docker-compose -p aws-mwaa-local-runner-2_2 -f ./docker/docker-compose-local.yml run --rm local-runner bash

(obviously edit for your specific version etc)

@mjsqu
Copy link

mjsqu commented Aug 15, 2023

DEFAULT_PASSWORD="test"

https://github.com/aws/aws-mwaa-local-runner/blob/v2.4.3/docker/config/.env.localrunner#L8

The password includes the quotes

@mayushko26
Copy link
Contributor

deduping: #300

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants