Failure when upgrading to 16.9.7 (CE and EE editions)

Summary

gitlab-ctl reconfigure fails when upgrading from any version to version 16.9.7 (CE and EE editions).

This problem is due to https://github.com/inspec/inspec/issues/7029. A floating dependency on parser caused 3.3.1.0 to be pulled in.

Relevant logs

Relevant logs

The installation script breaks with the following message:

/opt/gitlab/embedded/cookbooks/package/libraries/gitlab_cluster.rb:16: warning: previo /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/libraries/gitlab_cluster.rb:17:ter::JSON_FILE /opt/gitlab/embedded/cookbooks/package/libraries/gitlab_cluster.rb:17: warning: previo

Running handlers: [2024-05-08T09:33:47-07:00] ERROR: Running exception handlers There was an error running gitlab-ctl reconfigure:

uninitialized constant Parser::AST::Processor::Mixin

    include Parser::AST::Processor::Mixin
                                  ^^^^^^^

Did you mean? Mixlib

Running handlers complete [2024-05-08T09:33:47-07:00] ERROR: Exception handlers complete Infra Phase failed. 0 resources updated in 04 seconds [2024-05-08T09:33:47-07:00] FATAL: NameError: uninitialized constant Parser::AST::Proc

    include Parser::AST::Processor::Mixin
                                  ^^^^^^^

Did you mean? Mixlib

Workarounds

  1. Upgrade to version 16.10.5 or 16.11.2.
  2. Try to rollback.
  3. Apply the workaround if the upgrade already fails.
Edited by Daphne Kua