Project

General

Profile

Actions

Defect #40528

closed

Hangs when requesting after code changes in development mode

Added by Katsuya HIDAKA 8 months ago. Updated 16 days ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

When running the rails server in development mode, it may hang when requesting after code changes.

Reproduction Steps

  1. Check out trunk (r22777) and start the rails server in development mode.
  2. Log in to Redmine.
  3. 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

Related to Redmine - Feature #36320: Migrate to Rails 7.2ClosedMarius BĂLTEANU

Actions
Actions #1

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."

Actions #2

Updated by Go MAEDA 8 months ago

  • Status changed from New to Confirmed
Actions #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).

Actions #4

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.

Actions #5

Updated by Marius BĂLTEANU 16 days ago

  • Status changed from Confirmed to Closed
  • Resolution set to Fixed
Actions #6

Updated by Marius BĂLTEANU 16 days ago

Actions

Also available in: Atom PDF