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

Can't create AdminUser #1019

Closed
aEvgenn opened this issue Oct 24, 2018 · 3 comments
Closed

Can't create AdminUser #1019

aEvgenn opened this issue Oct 24, 2018 · 3 comments
Labels

Comments

@aEvgenn
Copy link

aEvgenn commented Oct 24, 2018

I am trying to create a first user to login. But I get an error.

root@32bb08ce7340:/opt/webapps/app# rake bootstrap --trace
** Invoke bootstrap (first_time)
** Execute bootstrap
rake aborted!
NameError: uninitialized constant AdminUser
/opt/webapps/app/lib/tasks/bootstrap.rake:3:in `block in <top (required)>'
/usr/local/bundle/gems/rake-12.3.1/lib/rake/task.rb:271:in `block in execute'
/usr/local/bundle/gems/rake-12.3.1/lib/rake/task.rb:271:in `each'
/usr/local/bundle/gems/rake-12.3.1/lib/rake/task.rb:271:in `execute'
/usr/local/bundle/gems/airbrake-6.0.0/lib/airbrake/rake/task_ext.rb:19:in `execute'
/usr/local/bundle/gems/rake-12.3.1/lib/rake/task.rb:213:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/2.4.0/monitor.rb:214:in `mon_synchronize'
/usr/local/bundle/gems/rake-12.3.1/lib/rake/task.rb:193:in `invoke_with_call_chain'
/usr/local/bundle/gems/rake-12.3.1/lib/rake/task.rb:182:in `invoke'
/usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:160:in `invoke_task'
/usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:116:in `each'
/usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:116:in `block in top_level'
/usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:125:in `run_with_threads'
/usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:110:in `top_level'
/usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:83:in `block in run'
/usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:186:in `standard_exception_handling'
/usr/local/bundle/gems/rake-12.3.1/lib/rake/application.rb:80:in `run'
/usr/local/bundle/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
/usr/local/bundle/bin/rake:23:in `load'
/usr/local/bundle/bin/rake:23:in `<main>'
Tasks: TOP => bootstrap

And need fix README.md (remove colon in the string):
bundle exec rake:bootstrap -> bundle exec rake bootstrap

@maciej-szlosarczyk
Copy link
Contributor

Hi @aEvgenn,

I made a change that should fix the issue. I'll update you once it's merged to master. Alternatively you can check out the fix branch locally (fix-bootstrap-task) and run rake bootstrap to create the user.

@vohmar vohmar added the bug label Oct 24, 2018
@maciej-szlosarczyk
Copy link
Contributor

@aEvgenn, you can pull the newer master version and the bootstrap task should run normally.

@aEvgenn
Copy link
Author

aEvgenn commented Oct 24, 2018

@maciej-szlosarczyk thx for fast fix
It's works

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

3 participants