Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In Rails 7.0.0-alpha2, mobility and good_job seem to conflict using development puma web concurrency #549

Closed
leehericks opened this issue Dec 3, 2021 · 4 comments

Comments

@leehericks
Copy link

Context

Standard Rails new using Rails 7.0.0-alpha2 and Ruby 3.0.3 (same issue with 3.0.2)
Local Postgresql 12 database

Run rails new testapp -d postgresql

Edit puma.rb, uncomment (enable) web concurrency and preload_app! (cluster mode)

Screen Shot 2021-12-03 at 10 43 02

Add and configure either of mobility or good_job separately and no problem. But together is a problem.
good_job setup

Run rails server

Expected Behavior

Be able to open 127.0.0.1:3000 in your web browser

Actual Behavior

Browser hangs, request doesn't come through on the terminal.

Workaround

Disable web concurrency and run Puma in single mode and then requests run properly. But of course this all works with Puma web concurrency in Rails 6.1.4.1, not sure what changed in Rails 7.0.0-alpha2

@shioyama
Copy link
Owner

shioyama commented Dec 3, 2021

Thanks @leehericks ! I have no idea what might be causing this, I've never heard of anything like this. I'll try to have a look at that repo.

@shioyama
Copy link
Owner

shioyama commented Dec 3, 2021

Ok, I've narrowed down the problem to this file

lib/rails/generators/mobility/backend_generators/base.rb
https://github.com/shioyama/mobility/blob/99579bb5f3bf9b3588fe5e7319bcb1b9e83131ec/lib/rails/generators/mobility/backend_generators/base.rb

@shioyama
Copy link
Owner

shioyama commented Dec 3, 2021

Honestly, this feels like a Rails bug.

@shioyama
Copy link
Owner

Fixed in 1.2.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants