Skip to content
Snippets Groups Projects
  1. Oct 24, 2023
  2. Oct 14, 2023
  3. Oct 13, 2023
  4. Jun 20, 2023
  5. Oct 13, 2023
  6. Oct 12, 2023
  7. Sep 26, 2023
  8. Sep 19, 2023
  9. Sep 15, 2023
  10. Oct 12, 2023
  11. Oct 11, 2023
  12. Oct 12, 2023
  13. Oct 11, 2023
  14. Aug 28, 2023
  15. Oct 11, 2023
  16. Oct 03, 2023
    • Stan Hu's avatar
      Fix unintialized constant exception handler error · 69f2fd6a
      Stan Hu authored
      When `gitlab-ctl reconfigure` hits an HTTP error while trying to
      download local cookbooks, the application runs into an `uninitialized
      constant GitLabHandler::Exception::OmnibusHelper` error:
      
      ```
      ERROR: Running exception handlers
      ERROR: Report handler GitLabHandler::Exception raised #<NameError: uninitialized constant GitLabHandler::Exception::OmnibusHelper>
      ERROR: /opt/gitlab/embedded/cookbooks/package/libraries/handlers/gitlab.rb:30:in `report'
      ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/handler.rb:296:in `run_report_unsafe'
      ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/handler.rb:284:in `run_report_safely'
      ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/handler.rb:155:in `block in run_exception_handlers'
      ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/handler.rb:153:in `each'
      ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/handler.rb:153:in `run_exception_handlers'
      ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/handler.rb:164:in `block in <class:Handler>'
      ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/client.rb:443:in `block in run_failed'
      ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/client.rb:442:in `each'
      ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/client.rb:442:in `run_failed'
      ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/client.rb:306:in `rescue in run'
      ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/client.rb:299:in `run'
      ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/application.rb:305:in `run_with_graceful_exit_option'
      ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/application.rb:281:in `block in run_chef_client'
      ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/local_mode.rb:42:in `with_server_connectivity'
      ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/application.rb:264:in `run_chef_client'
      ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/application/base.rb:352:in `run_application'
      ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/application.rb:67:in `run'
      ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-bin-17.10.0/bin/cinc-client:25:in `<top (required)>'
      ERROR: /opt/gitlab/embedded/bin/cinc-client:25:in `load'
      ERROR: /opt/gitlab/embedded/bin/cinc-client:25:in `<main>'
      ERROR: Exception handlers complete
      ```
      
      This was seen in
      https://gitlab.com/gitlab-com/gl-infra/production/-/issues/16897 and
      raised as a side issue in
      https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/8245.
      
      Changelog: fixed
      69f2fd6a
  17. Oct 11, 2023
  18. Oct 03, 2023
  19. Oct 11, 2023
  20. Oct 05, 2023
  21. Sep 25, 2023
Loading