kuberenetes gitlab chart sidekiq - dependencies init container fails to start => rake aborted! Error on exec /scripts/wait-for-deps

2/10/2020

λ k logs gitlab-delta-sidekiq-all-in-1-v1-c7fc89d69-9g4g2 -c dependencies
+ /scripts/set-config /var/opt/gitlab/templates /srv/gitlab/config Begin parsing .erb files from /var/opt/gitlab/templates
Writing /srv/gitlab/config/resque.yml
Writing /srv/gitlab/config/gitlab.yml
Writing /srv/gitlab/config/database.yml
Writing /srv/gitlab/config/sidekiq_queues.yml
Copying other config files found in /var/opt/gitlab/templates
Copying smtp_settings.rb into /srv/gitlab/config

  • exec /scripts/wait-for-deps Checking database connection and schema version
    Checking database connection and schema version
    Checking database connection and schema version
    Checking database connection and schema version
    rake aborted!
    LoadError: cannot load such file -- jmespath/nodes/multi_select_hash
    /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in require' /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:inblock in require'
    /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in load_dependency' /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:inrequire'
    /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/jmespath-1.4.0/lib/jmespath/nodes.rb:33:in <module:Nodes>' /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/jmespath-1.4.0/lib/jmespath/nodes.rb:3:in '
    /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/jmespath-1.4.0/lib/jmespath/nodes.rb:1:in <top (required)>' /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:inrequire'
    /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in block in require' /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:inload_dependency'
    /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in require' /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/jmespath-1.4.0/lib/jmespath.rb:10:in '
    /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/jmespath-1.4.0/lib/jmespath.rb:5:in <top (required)>' /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:inrequire'
    /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in block in require' /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:inload_dependency'
    /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in require' /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/aws-sdk-core-2.11.374/lib/aws-sdk-core.rb:1:in '
    /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in require' /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:inblock in require'
    /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in load_dependency' /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:inrequire'
    /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/aws-sdk-resources-2.11.374/lib/aws-sdk-resources.rb:1:in <top (required)>' /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:inrequire'
    /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in block in require' /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:inload_dependency'
    /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in require' /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/aws-sdk-2.11.374/lib/aws-sdk.rb:1:in '
    /srv/gitlab/config/application.rb:11:in <top (required)>' /srv/gitlab/Rakefile:5:inrequire'
    /srv/gitlab/Rakefile:5:in <top (required)>' /srv/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in '
    /srv/gitlab/bin/bundle:3:in load' /srv/gitlab/bin/bundle:3:in'
    (See full trace by running task with --trace)
    Checking database connection and schema version
    WARNING: Waiting for all services to be operational, and data migrations to complete. If this container continues to fail / restart, please see:
    https://docs.gitlab.com/charts/troubleshooting/index.html#application-containers-constantly-initializing
-- Zineb Errahmouni
charts
gitlab
kubernetes
kubernetes-helm

0 Answers