cookbook-gitlab-deprecated icon indicating copy to clipboard operation
cookbook-gitlab-deprecated copied to clipboard

default admin e-mail set as [email protected] instead of [email protected]

Open dfduarte opened this issue 10 years ago • 1 comments

Hello guys,

Today, I started to test this amazing recipe (that saved me some days of work here). But I want to report a tricky error with the admin default e-mail.

As seen on initial readme, at cookbook homepage, the dev says that the initial admin user is [email protected]. After some time after banging my head, thinking what I did wrong, I ran the following command (logged as git user on terminal)

~/bin/bundle exec rake db:seed_fu RAILS_ENV=production

It returned:

== Seed from /srv/git/gitlab/db/fixtures/production/001_admin.rb rake aborted! ActiveRecord::RecordInvalid: Validation failed: Email has already been taken, Email has already been taken, Username has already been taken, Username already exists (eval):22:in `block (2 levels) in run_file' Tasks: TOP => db:seed_fu (See full trace by running task with --trace)

Okay, so see that the user was created successfully. So, I toke a look at /srv/git/gitlab/db/fixtures/production/001_admin.rb

So, due this, I saw the real e-mail, set as [email protected].

admin = User.create( email: "[email protected]", (... snip...)

Maybe, I'm wondering that it's just a matter to correct this mistake(type). I'm posting this issue, just to notice the dev, btw.

Att,

dfduarte avatar Jul 21 '15 18:07 dfduarte

Confirmed!

chewi avatar Jun 27 '16 10:06 chewi