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

Root user not created with default docker-compose.yml #904

Open
gianmarcotoso opened this issue Sep 27, 2016 · 5 comments
Open

Root user not created with default docker-compose.yml #904

gianmarcotoso opened this issue Sep 27, 2016 · 5 comments
Labels

Comments

@gianmarcotoso
Copy link

I have followed the instructions in the quick start and, after downloading docker-compose.yml and setting the keys, I ran docker-compose up and waited a bit. Connecting to the Gitlab instance presented me with the login screen, but no credentials worked. Connecting to the PGSQL container I tried a SELECT COUNT(*) FROM USERS, which resulted in a count of 0 rows.

I solved the problem by running docker-compose down, setting GITLAB_ROOT_PASSWORD within docker-compose.yml, doing docker-compose up and then manually running the setup by connecting to the gitlab container with docker exec -it gitlab_gitlab_1 /bin/bash (where gitlab_gitlab_1 was the name of my container, got it with docker-compose ps) and running bin/rake gitlab:setup.

Is this expected behavior?

@solidnerd
Copy link
Collaborator

solidnerd commented Sep 28, 2016

Hey,
generally you don't need to set GITLAB_ROOT_PASSWORD. On the first startup you should asked for password in the browser. Thanks for question I found a bug in our README. I will fix this later.

@gianmarcotoso
Copy link
Author

I expected to be asked for the password, but I wasn't. Setting GITLAB_ROOT_PASSWORD and manually calling the setup command works, but I found it strange. Glad to be of help!

@morsoinferno
Copy link

I have the same issue. I have a custom docker-compose for rancher-compose. I define the GITLAB_ROOT_PASSWORD and GITLAB_ROOT_EMAIL but without the expected result. As @gianmarcotoso said, it is needed to run bin/rake gitlab:production in orden to populate the DB with the admin credentials. Maybe is something missed in the Dockerfile or some script for building the image.

@LoicMahieu
Copy link

I had the same issue. By manually run:

exec_as_git force=yes bundle exec rake gitlab:setup       ${GITLAB_ROOT_PASSWORD:+GITLAB_ROOT_PASSWORD=$GITLAB_ROOT_PASSWORD}       ${GITLAB_ROOT_EMAIL:+GITLAB_ROOT_EMAIL=$GITLAB_ROOT_EMAIL}

I got the error:

== Seed from /home/git/gitlab/db/fixtures/production/001_admin.rb
Could not create the default administrator account:

--> Password is too short (minimum is 8 characters)

Maybe it's your case ? For me the value was root... Ok really too short ^^

@stale
Copy link

stale bot commented May 7, 2020

This issue has been automatically marked as stale because it has not had any activity for the last 60 days. It will be closed if no further activity occurs during the next 7 days. Thank you for your contributions.

@stale stale bot added the wontfix label May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants