Puma ArgumentError: is not a recognized provider
I have enabled CSP as per the documentation by setting enabled to true and report_only to false. When I upgraded to 16.3.0 using the Omnibus package, Gitlab fails to start until I comment out the CSP config.
See log below for details.
Log
2023-08-22_15:58:38.66886 bundler: failed to load command: puma (/opt/gitlab/embedded/bin/puma)
2023-08-22_15:58:38.66917 /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/fog-core-2.1.0/lib/fog/core/services_mixin.rb:12:in \`new': is not a recognized provider (ArgumentError)
2023-08-22_15:58:38.66939 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/fog-core-2.1.0/lib/fog/storage.rb:22:in \`new'
2023-08-22_15:58:38.66946 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/carrierwave-1.3.3/lib/carrierwave/storage/fog.rb:151:in \`connection'
2023-08-22_15:58:38.66952 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/carrierwave-1.3.3/lib/carrierwave/storage/fog.rb:446:in \`connection'
2023-08-22_15:58:38.66958 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/carrierwave-1.3.3/lib/carrierwave/storage/fog.rb:458:in \`directory'
2023-08-22_15:58:38.66963 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/carrierwave-1.3.3/lib/carrierwave/storage/fog.rb:384:in \`public_url'
2023-08-22_15:58:38.66969 from /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/content_security_policy/config_loader.rb:197:in \`build_lfs_url'
2023-08-22_15:58:38.66974 from /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/content_security_policy/config_loader.rb:89:in \`allow_lfs'
2023-08-22_15:58:38.66980 from /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/content_security_policy/config_loader.rb:24:in \`default_directives'
2023-08-22_15:58:38.66986 from /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/content_security_policy/config_loader.rb:206:in \`initialize'
2023-08-22_15:58:38.66992 from /opt/gitlab/embedded/service/gitlab-rails/config/initializers/content_security_policy.rb:12:in \`new'
2023-08-22_15:58:38.66998 from /opt/gitlab/embedded/service/gitlab-rails/config/initializers/content_security_policy.rb:12:in \`block in '
2023-08-22_15:58:38.67004 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/actionpack-7.0.6/lib/action_dispatch/http/content_security_policy.rb:175:in \`initialize'
2023-08-22_15:58:38.67009 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/railties-7.0.6/lib/rails/application/configuration.rb:422:in \`new'
2023-08-22_15:58:38.67015 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/railties-7.0.6/lib/rails/application/configuration.rb:422:in \`content_security_policy'
2023-08-22_15:58:38.67020 from /opt/gitlab/embedded/service/gitlab-rails/config/initializers/content_security_policy.rb:11:in \`'
2023-08-22_15:58:38.67025 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/railties-7.0.6/lib/rails/engine.rb:667:in \`load'
2023-08-22_15:58:38.67031 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/railties-7.0.6/lib/rails/engine.rb:667:in \`block in load_config_initializer'
2023-08-22_15:58:38.67038 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/activesupport-7.0.6/lib/active_support/notifications.rb:208:in \`instrument'
2023-08-22_15:58:38.67043 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/railties-7.0.6/lib/rails/engine.rb:666:in \`load_config_initializer'
2023-08-22_15:58:38.67048 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/railties-7.0.6/lib/rails/engine.rb:620:in \`block (2 levels) in '
2023-08-22_15:58:38.67054 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/railties-7.0.6/lib/rails/engine.rb:619:in \`each'
2023-08-22_15:58:38.67059 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/railties-7.0.6/lib/rails/engine.rb:619:in \`block in '
2023-08-22_15:58:38.67064 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/railties-7.0.6/lib/rails/initializable.rb:32:in \`instance_exec'
2023-08-22_15:58:38.67069 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/railties-7.0.6/lib/rails/initializable.rb:32:in \`run'
2023-08-22_15:58:38.67074 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/railties-7.0.6/lib/rails/initializable.rb:61:in \`block in run_initializers'
2023-08-22_15:58:38.67082 from /opt/gitlab/embedded/lib/ruby/3.0.0/tsort.rb:228:in \`block in tsort_each'
2023-08-22_15:58:38.67088 from /opt/gitlab/embedded/lib/ruby/3.0.0/tsort.rb:350:in \`block (2 levels) in each_strongly_connected_component'
2023-08-22_15:58:38.67093 from /opt/gitlab/embedded/lib/ruby/3.0.0/tsort.rb:422:in \`block (2 levels) in each_strongly_connected_component_from'
2023-08-22_15:58:38.67099 from /opt/gitlab/embedded/lib/ruby/3.0.0/tsort.rb:431:in \`each_strongly_connected_component_from'
2023-08-22_15:58:38.67104 from /opt/gitlab/embedded/lib/ruby/3.0.0/tsort.rb:421:in \`block in each_strongly_connected_component_from'
2023-08-22_15:58:38.67110 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/railties-7.0.6/lib/rails/initializable.rb:50:in \`each'
2023-08-22_15:58:38.67115 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/railties-7.0.6/lib/rails/initializable.rb:50:in \`tsort_each_child'
2023-08-22_15:58:38.67120 from /opt/gitlab/embedded/lib/ruby/3.0.0/tsort.rb:415:in \`call'
2023-08-22_15:58:38.67125 from /opt/gitlab/embedded/lib/ruby/3.0.0/tsort.rb:415:in \`each_strongly_connected_component_from'
2023-08-22_15:58:38.67130 from /opt/gitlab/embedded/lib/ruby/3.0.0/tsort.rb:349:in \`block in each_strongly_connected_component'
2023-08-22_15:58:38.67135 from /opt/gitlab/embedded/lib/ruby/3.0.0/tsort.rb:347:in \`each'
2023-08-22_15:58:38.67141 from /opt/gitlab/embedded/lib/ruby/3.0.0/tsort.rb:347:in \`call'
2023-08-22_15:58:38.67147 from /opt/gitlab/embedded/lib/ruby/3.0.0/tsort.rb:347:in \`each_strongly_connected_component'
2023-08-22_15:58:38.67152 from /opt/gitlab/embedded/lib/ruby/3.0.0/tsort.rb:226:in \`tsort_each'
2023-08-22_15:58:38.67158 from /opt/gitlab/embedded/lib/ruby/3.0.0/tsort.rb:205:in \`tsort_each'
2023-08-22_15:58:38.67163 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/railties-7.0.6/lib/rails/initializable.rb:60:in \`run_initializers'
2023-08-22_15:58:38.67168 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/railties-7.0.6/lib/rails/application.rb:372:in \`initialize!'
2023-08-22_15:58:38.67173 from /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:7:in \`'
2023-08-22_15:58:38.67178 from :38:in \`require'
2023-08-22_15:58:38.67184 from :38:in \`require'
2023-08-22_15:58:38.67189 from /opt/gitlab/embedded/service/gitlab-rails/config.ru:5:in \`block in '
2023-08-22_15:58:38.67194 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/rack-2.2.8/lib/rack/builder.rb:116:in \`eval'
2023-08-22_15:58:38.67199 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/rack-2.2.8/lib/rack/builder.rb:116:in \`new_from_string'
2023-08-22_15:58:38.67205 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/rack-2.2.8/lib/rack/builder.rb:105:in \`load_file'
2023-08-22_15:58:38.67211 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/rack-2.2.8/lib/rack/builder.rb:66:in \`parse_file'
2023-08-22_15:58:38.67216 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/puma-6.3.0/lib/puma/configuration.rb:366:in \`load_rackup'
2023-08-22_15:58:38.67221 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/puma-6.3.0/lib/puma/configuration.rb:288:in \`app'
2023-08-22_15:58:38.67226 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/puma-6.3.0/lib/puma/runner.rb:158:in \`load_and_bind'
2023-08-22_15:58:38.67231 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/puma-6.3.0/lib/puma/cluster.rb:359:in \`run'
2023-08-22_15:58:38.67237 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/puma-6.3.0/lib/puma/launcher.rb:194:in \`run'
2023-08-22_15:58:38.67242 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/puma-6.3.0/lib/puma/cli.rb:75:in \`run'
2023-08-22_15:58:38.67247 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/puma-6.3.0/bin/puma:10:in \`'
2023-08-22_15:58:38.67252 from /opt/gitlab/embedded/bin/puma:25:in \`load'
2023-08-22_15:58:38.67260 from /opt/gitlab/embedded/bin/puma:25:in \`'
2023-08-22_15:58:38.67265 from /opt/gitlab/embedded/lib/ruby/site_ruby/3.0.0/bundler/cli/exec.rb:58:in \`load'
2023-08-22_15:58:38.67270 from /opt/gitlab/embedded/lib/ruby/site_ruby/3.0.0/bundler/cli/exec.rb:58:in \`kernel_load'
2023-08-22_15:58:38.67275 from /opt/gitlab/embedded/lib/ruby/site_ruby/3.0.0/bundler/cli/exec.rb:23:in \`run'
2023-08-22_15:58:38.67280 from /opt/gitlab/embedded/lib/ruby/site_ruby/3.0.0/bundler/cli.rb:492:in \`exec'
2023-08-22_15:58:38.67286 from /opt/gitlab/embedded/lib/ruby/site_ruby/3.0.0/bundler/vendor/thor/lib/thor/command.rb:27:in \`run'
2023-08-22_15:58:38.67291 from /opt/gitlab/embedded/lib/ruby/site_ruby/3.0.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in \`invoke_command'
2023-08-22_15:58:38.67296 from /opt/gitlab/embedded/lib/ruby/site_ruby/3.0.0/bundler/vendor/thor/lib/thor.rb:392:in \`dispatch'
2023-08-22_15:58:38.67301 from /opt/gitlab/embedded/lib/ruby/site_ruby/3.0.0/bundler/cli.rb:34:in \`dispatch'
2023-08-22_15:58:38.67307 from /opt/gitlab/embedded/lib/ruby/site_ruby/3.0.0/bundler/vendor/thor/lib/thor/base.rb:485:in \`start'
2023-08-22_15:58:38.67314 from /opt/gitlab/embedded/lib/ruby/site_ruby/3.0.0/bundler/cli.rb:28:in \`start'
2023-08-22_15:58:38.67328 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/bundler-2.4.18/exe/bundle:37:in \`block in '
2023-08-22_15:58:38.67340 from /opt/gitlab/embedded/lib/ruby/site_ruby/3.0.0/bundler/friendly_errors.rb:117:in \`with_friendly_errors'
2023-08-22_15:58:38.67352 from /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/bundler-2.4.18/exe/bundle:29:in \`'
2023-08-22_15:58:38.67365 from /opt/gitlab/embedded/bin/bundle:25:in \`load'
Edited by Jason Plum