Skip to content

Instantly share code, notes, and snippets.

@Araeos
Last active October 31, 2018 17:56
Show Gist options
  • Save Araeos/29f8fce74d3b8f5fcfafedf16fcc2d73 to your computer and use it in GitHub Desktop.
Save Araeos/29f8fce74d3b8f5fcfafedf16fcc2d73 to your computer and use it in GitHub Desktop.
Gitlab error during rake task `gitlab:shell:setup`
[root@daeros gitlab]# sudo -u gitlab /bin/bash -c "cd /usr/share/webapps/gitlab && bundle-2.3 exec rake --trace RAILS_ENV=production gitlab:shell:setup"
** Invoke gitlab:shell:setup (first_time)
** Invoke gitlab_environment (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute gitlab_environment
** Execute gitlab:shell:setup
rake aborted!
NoMethodError: undefined method `authorized_keys_enabled' for #<ApplicationSetting:0x00005613b44c3e20>
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/activemodel-4.2.10/lib/active_model/attribute_methods.rb:433:in `method_missing'
/usr/share/webapps/gitlab/lib/tasks/gitlab/shell.rake:125:in `ensure_write_to_authorized_keys_is_enabled'
/usr/share/webapps/gitlab/lib/tasks/gitlab/shell.rake:95:in `setup'
/usr/share/webapps/gitlab/lib/tasks/gitlab/shell.rake:62:in `block (3 levels) in <top (required)>'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/lib/rake/task.rb:271:in `block in execute'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/lib/rake/task.rb:271:in `each'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/lib/rake/task.rb:271:in `execute'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/lib/rake/task.rb:213:in `block in invoke_with_call_chain'
/opt/ruby2.3/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/lib/rake/task.rb:193:in `invoke_with_call_chain'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/lib/rake/task.rb:182:in `invoke'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/lib/rake/application.rb:160:in `invoke_task'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/lib/rake/application.rb:116:in `each'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/lib/rake/application.rb:116:in `block in top_level'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/lib/rake/application.rb:125:in `run_with_threads'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/lib/rake/application.rb:110:in `top_level'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/lib/rake/application.rb:83:in `block in run'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/lib/rake/application.rb:186:in `standard_exception_handling'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/lib/rake/application.rb:80:in `run'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/bin/rake:22:in `load'
/usr/share/webapps/gitlab/vendor/bundle/ruby/2.3.0/bin/rake:22:in `<main>'
Tasks: TOP => gitlab:shell:setup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment