Skip to content

need to update config/initializers/puma_app_status_patch.rb for puma 7

since we updated to Puma 7

rails s does not work now:

gdk stop rails-web && GITLAB_RAILS_RACK_TIMEOUT_ENABLE_LOGGING=false PUMA_SINGLE_MODE=true gdk rails s
so that I can insert debugger
but today it says
tiangao@tgao--20240202-M7DJJ gitlab % gdk stop rails-web && gdk rails s 

ok: down: /Users/tiangao/tgao_gitlab/gitlab-development-kit/services/rails-web: 365s
=> Booting Puma
=> Rails 7.1.5.2 application starting in development 
=> Run `bin/rails server --help` for more startup options
Exiting
I, [2025-10-09T21:59:20.607336 #83529]  INFO -- : Gitlab::Tracking::SnowplowLoggingEmitter initialized with endpoint https://gdk.test:9092/com.snowplowanalytics.snowplow/tp2
I, [2025-10-09T21:59:20.613357 #83529]  INFO -- : Starting synchronous flush
I, [2025-10-09T21:59:20.613449 #83529]  INFO -- : Skipping sending events since buffer is empty
I, [2025-10-09T21:59:20.613471 #83529]  INFO -- : Finished synchronous flush
/Users/tiangao/tgao_gitlab/gitlab-development-kit/gitlab/config/initializers/puma_app_status_patch.rb:7:in `<main>': uninitialized constant Puma::Const (NameError)

raise if Gem::Version.new(Puma::Const::PUMA_VERSION) > Gem::Version.new('7.0.4')
                              ^^^^^^^

Puma::Const::PUMA_VERSION does not work for puma 7

Edited by 🤖 GitLab Bot 🤖