Defect #40528
closedHangs when requesting after code changes in development mode
0%
Description
When running the rails server in development mode, it may hang when requesting after code changes.
Reproduction Steps¶
- Check out trunk (r22777) and start the rails server in development mode.
- Log in to Redmine.
- Make changes to some code and reload the Redmine page.
- Reproduction may occur simply by adding comments or executing the touch command.
Expected Behavior¶
The request succeeds, and the page transition is successful.
Actual Behavior¶
Requests frequently hang, and the page transition does not occur, remaining in a loading state.
The rails server logs in this state are as follows:
Started GET "/issues" for ::1 at 2024-04-05 10:59:49 +0900
In this state, it is not possible to stop the server with Ctl+C (SIGTERM). It is necessary to stop it each time with SIGKILL (kill -9).
Environment¶
Environment: Redmine version 5.1.2.devel Ruby version 3.3.0-p0 (2023-12-25) [aarch64-linux] Rails version 7.1.2 Environment development Database adapter SQLite Mailer queue ActiveJob::QueueAdapters::AsyncAdapter Mailer delivery smtp Redmine settings: Redmine theme Default SCM: Subversion 1.14.2 Mercurial 6.3.2 Cvs 1.12.13 Bazaar 3.3.2 Git 2.39.2 Filesystem Redmine plugins: no plugin installed
The issue was confirmed on the following operating systems:
- macOS 14.4.1 (Apple M2)
- Ubuntu 23.10
Investigation¶
- This issue also reproduces with Ruby 3.3.0.
- The issue might have started occurring after the update to Rails 7.1 (r22488). At least in my environment, it hasn't reproduced so far with the previous revision r22487.
- The issue does not reproduce when starting Puma with a single thread (the default thread count is 5):
PUMA_MIN_THREADS=1 PUMA_MAX_THREADS=1 bin/rails s
- Referring to the contents of the Puma project's issue, I conducted an investigation using the `ActionDispatch::DebugLocks` middleware. As a result, I observed logs similar to this comment.
Related issues
Updated by Katsuya HIDAKA 8 months ago
Investigation
This issue also reproduces with Ruby 3.3.0.
Sorry, the above "Ruby 3.3.0" is incorrect. The correct version is "Ruby 3.2.3."
Updated by Go MAEDA 17 days ago
It seems that this issue has stopped occurring since updating to Rails 7.2 (#36320#note-39).
Updated by Katsuya HIDAKA 16 days ago
I'm also not encountering this issue anymore in my environment. I'm not sure exactly what fixed it, but since there are no other reports about it, I think we can close this issue as resolved.
Updated by Marius BĂLTEANU 16 days ago
- Status changed from Confirmed to Closed
- Resolution set to Fixed
Updated by Marius BĂLTEANU 16 days ago
- Related to Feature #36320: Migrate to Rails 7.2 added