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 login/password not known after bringing up the Docker container #7336

Closed
wtian opened this issue Apr 20, 2019 · 28 comments
Closed

default login/password not known after bringing up the Docker container #7336

wtian opened this issue Apr 20, 2019 · 28 comments

Comments

@wtian
Copy link

wtian commented Apr 20, 2019

[SIP] Proposal for make the Docker image login/password clear

Motivation

After successfully installing the Docker image, bringing up the container and pointing my browser to http://localhost:8088, I am asked to login. But I have no idea what the default login/password combo is.

Proposed Change

Make it clear what the default login/password is, either by mentioning it in the install guide or using greyed-out placeholder in the input fields.

@maksimu
Copy link

maksimu commented Jun 2, 2019

And what is the default username and password?

@dancrew32
Copy link

dancrew32 commented Jul 11, 2019

So I missed this during install as well, but it prompts you to create a username, first, last, email, and password at this phase:

~/src/superset/contrib/docker$ docker-compose run --rm superset ./docker-init.sh
Starting superset_postgres_1 ... 
Starting superset_redis_1 ... done
+ '[' 1 -ne 0 ']'
+ exec ./docker-init.sh
+ export FLASK_APP=superset:app
+ FLASK_APP=superset:app
+ flask fab create-admin
Username [admin]: admin
User first name [admin]: admin
User last name [user]: admin
Email [admin@fab.org]: admin@fab.org
Password: 
Repeat for confirmation: 

you can try docker exec -it superset_superset_1 bash and run ./docker-init.sh to trigger this same prompt:
https://github.com/apache/incubator-superset/blob/master/contrib/docker/docker-init.sh#L22

@stale
Copy link

stale bot commented Sep 9, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

@stale stale bot added the inactive Inactive for >= 30 days label Sep 9, 2019
@stale stale bot closed this as completed Sep 16, 2019
@ManuelLevi
Copy link

Try admin:admin. Couldn't find it on the documentation, to find them, I had to investigate and find them in the docker-init.sh script.
This should be in the documentation.

@sibblegp
Copy link

sibblegp commented Feb 7, 2020

This should absolutely be documented. It's like hitting a brick wall.

@daniel-zahariev
Copy link

I used docker-compose exec superset bash /app/docker-init.sh

@craig-rueda craig-rueda reopened this Feb 27, 2020
@stale stale bot removed the inactive Inactive for >= 30 days label Feb 27, 2020
@KuriaMaingi
Copy link

I used docker-compose exec superset bash /app/docker-init.sh

This worked for me but with a slight modification directly to the superset app:
docker-compose exec incubator-superset_superset_1 bash /app/docker-init.sh

@willbarrett
Copy link
Member

Thanks all for bringing this to the community's attention. I've opened a PR to update our docs.

@willbarrett
Copy link
Member

Documentation PR has been merged, the default username/password will appear on https://superset.incubator.apache.org/installation.html on the next update.

@Zonalds
Copy link

Zonalds commented Apr 22, 2020

I am running the image on GKE but when I try the admin and admin for the username and password it doesn't work. I suppose the admin was not created. Any idea how to create the admin?

I read a few posts that suggest I need to navigate to contrib/docker to create the admin. Any idea how to navigate to contrib/docker on GKE?

@jonahbenton
Copy link

As of early June, for GKE, the stable channel helm chart for superset defaults to production-mode, which does not create an initial admin user.

I am working through getting the chart to start with development-mode, which does, but the chart templates have some problems, including hard-coding the production port. Will post again when I get them working.

@mirwaisx
Copy link

As of early June, for GKE, the stable channel helm chart for superset defaults to production-mode, which does not create an initial admin user.

I am working through getting the chart to start with development-mode, which does, but the chart templates have some problems, including hard-coding the production port. Will post again when I get them working.

yes I can confirm, for me just for testing purpose I created the user manually as mentioned here #10149

@tomrod
Copy link

tomrod commented Sep 23, 2020

I followed the instructions here with fresh install and git pull and admin:admin does not work:

https://superset.incubator.apache.org/docs/installation/installing-superset-using-docker-compose

@nytai
Copy link
Member

nytai commented Sep 23, 2020

@tomrod do you have logs for the superset_init container? That container should run a script that creates the admin user. Either that script hasn't finished running or it has errored out.

@tomrod
Copy link

tomrod commented Sep 23, 2020

Happy to check. Apologies for being a bit a newb, how do I grab that?

@nytai
Copy link
Member

nytai commented Sep 23, 2020

@tomrod
Copy link

tomrod commented Sep 23, 2020

$ docker logs e9417a5c1755
/usr/bin/env: ‘bash\r’: No such file or directory
/usr/bin/env: ‘bash\r’: No such file or directory

@nytai
Copy link
Member

nytai commented Sep 23, 2020

@tomrod are you running this on a windows machine by chance?

@tomrod
Copy link

tomrod commented Sep 23, 2020 via email

@tomrod
Copy link

tomrod commented Sep 23, 2020

That said, why would installing on windows make admin:admin user account not be created?

@nytai
Copy link
Member

nytai commented Sep 23, 2020

because the script that creates the admin user is erroring out due to the way windows formats files.

see https://stackoverflow.com/questions/29045140/env-bash-r-no-such-file-or-directory

@nytai
Copy link
Member

nytai commented Sep 23, 2020

I'm surprised you even got the app stood up running on windows

@tomrod
Copy link

tomrod commented Sep 23, 2020

Looks like the login issue was related to carriage returns -- fetching the repo via WSL and rebuilding fresh removed the login issue.

However, the app does not appear to be running after login, which is beyond scope of this issue :) -- I'll give it a go in a VM instead

image

@nytai
Copy link
Member

nytai commented Sep 23, 2020

@tomrod the app is running, the frontend hasn't finish building yet so you're getting this blank page. Give it a while longer and it should load up. The logs from superset_node should give you a clue as to the progress

@tomrod
Copy link

tomrod commented Sep 23, 2020 via email

@tomrod
Copy link

tomrod commented Sep 23, 2020

Up and running on Windows 10 Home w/ Docker Desktop +WSL

@ShaileshAdhikari
Copy link

Looks like the login issue was related to carriage returns -- fetching the repo via WSL and rebuilding fresh removed the login issue.

However, the app does not appear to be running after login, which is beyond scope of this issue :) -- I'll give it a go in a VM instead

image

Up and running on Windows 10 Home w/ Docker Desktop +WSL

Hello tomrod, I am having the same issue and using the same system Windows 10 Docker Desktop + WSL. I followed many fixes but nothing is working ! Can yo provide some insights, how do you make it work !

@tomrod
Copy link

tomrod commented Oct 19, 2020 via email

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

No branches or pull requests