sameersbn / sameersbn/docker-gitlab
Error when running with docker-compose
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 8.1k
- Forks
- 2.1k
- Avg merge
- 17h 47m
- Merged PRs (30d)
- 7
Description
I am trying to set up gitlab with docker-compose. I used the docker-compose.yml in the master branch, but the gitlab module exits with the following error - NameError: uninitialized constant Hashie. See stack trace below:
gitlab_1 | Initializing logdir...
gitlab_1 | Initializing datadir...
gitlab_1 | Installing configuration templates...
gitlab_1 | Configuring gitlab...
gitlab_1 | Configuring gitlab::database
gitlab_1 | Configuring gitlab::redis
gitlab_1 | Configuring gitlab::secrets...
gitlab_1 | Configuring gitlab::sidekiq...
gitlab_1 | Configuring gitlab::gitaly...
gitlab_1 | Configuring gitlab::monitoring...
gitlab_1 | Configuring gitlab::gitlab-workhorse...
gitlab_1 | Configuring gitlab::unicorn...
gitlab_1 | Configuring gitlab::timezone...
gitlab_1 | Configuring gitlab::rack_attack...
gitlab_1 | Configuring gitlab::ci...
gitlab_1 | Configuring gitlab::artifacts...
gitlab_1 | Configuring gitlab::lfs...
gitlab_1 | Configuring gitlab::uploads...
gitlab_1 | Configuring gitlab::mattermost...
gitlab_1 | Configuring gitlab::project_features...
gitlab_1 | Configuring gitlab::oauth...
gitlab_1 | Configuring gitlab::ldap...
gitlab_1 | Configuring gitlab::cron_jobs...
gitlab_1 | Configuring gitlab::backups...
gitlab_1 | Configuring gitlab::registry...
gitlab_1 | Configuring gitlab::pages...
gitlab_1 | Configuring gitlab-shell...
gitlab_1 | Configuring nginx...
gitlab_1 | Configuring nginx::gitlab...
gitlab_1 | Setting up GitLab for firstrun. Please be patient, this could take a while...
gitlab_1 | rake aborted!
gitlab_1 | Bundler::GemRequireError: There was an error while trying to load the gem 'omniauth-auth0'.
gitlab_1 | Gem Load Error is: uninitialized constant Hashie
gitlab_1 | Backtrace for gem load error is:
gitlab_1 | /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/omniauth-1.4.2/lib/omniauth/key_store.rb:5:in `<module:OmniAuth>'
gitlab_1 | /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/omniauth-1.4.2/lib/omniauth/key_store.rb:3:in `<top (required)>'
gitlab_1 | /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/omniauth-1.4.2/lib/omniauth/strategy.rb:1:in `<top (required)>'
gitlab_1 | /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/omniauth-oauth2-1.4.0/lib/omniauth/strategies/oauth2.rb:15:in `<class:OAuth2>'
gitlab_1 | /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/omniauth-oauth2-1.4.0/lib/omniauth/strategies/oauth2.rb:14:in `<module:Strategies>'
gitlab_1 | /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/omniauth-oauth2-1.4.0/lib/omniauth/strategies/oauth2.rb:8:in `<module:OmniAuth>'
gitlab_1 | /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/omniauth-oauth2-1.4.0/lib/omniauth/strategies/oauth2.rb:7:in `<top (required)>'
gitlab_1 | /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/omniauth-oauth2-1.4.0/lib/omniauth-oauth2.rb:2:in `<top (required)>'
.
.
.
gitlab_1 | Caused by:
gitlab_1 | NameError: uninitialized constant Hashie
gitlab_1 | /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/omniauth-1.4.2/lib/omniauth/key_store.rb:5:in `<module:OmniAuth>'
gitlab_1 | /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/omniauth-1.4.2/lib/omniauth/key_store.rb:3:in `<top (required)>'
gitlab_1 | /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/omniauth-1.4.2/lib/omniauth/strategy.rb:1:in `<top (required)>'
gitlab_1 | /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/omniauth-oauth2-1.4.0/lib/omniauth/strategies/oauth2.rb:15:in `<class:OAuth2>'
gitlab_1 | /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/omniauth-oauth2-1.4.0/lib/omniauth/strategies/oauth2.rb:14:in `<module:Strategies>'
gitlab_1 | /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/omniauth-oauth2-1.4.0/lib/omniauth/strategies/oauth2.rb:8:in `<module:OmniAuth>'
gitlab_1 | /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/omniauth-oauth2-1.4.0/lib/omniauth/strategies/oauth2.rb:7:in `<top (required)>'
gitlab_1 | /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/omniauth-oauth2-1.4.0/lib/omniauth-oauth2.rb:2:in `<top (required)>'
gitlab_1 | /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/omniauth-auth0-1.4.1/lib/omniauth/strategies/auth0.rb:2:in `<top (required)>'
gitlab_1 | /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/omniauth-auth0-1.4.1/lib/omniauth-auth0.rb:2:in `<top (required)>'
gitlab_1 | /var/lib/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:81:in `require'
gitlab_1 | /var/lib/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
gitlab_1 | /var/lib/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:76:in `each'
gitlab_1 | /var/lib/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:76:in `block in require'
gitlab_1 | /var/lib/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:65:in `each'
gitlab_1 | /var/lib/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:65:in `require'
gitlab_1 | /var/lib/gems/2.3.0/gems/bundler-1.16.1/lib/bundler.rb:114:in `require'
gitlab_1 | /home/git/gitlab/config/application.rb:5:in `<top (required)>'
gitlab_1 | /home/git/gitlab/Rakefile:5:in `require'
gitlab_1 | /home/git/gitlab/Rakefile:5:in `<top (required)>'
gitlab_1 | /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
gitlab_1 | (See full trace by running task with --trace)
What am I missing? I tried searching for the error, but couldn't find anything on it.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure using the docker-compose.yml from the master branch, then inspect dependency loading from config/application.rb and Rakefile, especially the omniauth stack shown in the trace. Done means the GitLab container completes first-run setup without the uninitialized constant Hashie error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker-compose, ruby
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100