Project

General

Profile

Actions

Defect #31363

closed

500 Internal Server Error

Defect #31363: 500 Internal Server Error

Added by haobin li over 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Email notifications
Target version:
-
Resolution:
Duplicate
Affected version:

Description

The number of users is about 40. So the [ActionMailer::DeliveryJob] will send lots of mails when a user commit an issuse.
The web will display "500 Internal Server Error",but the committing action is taking effect.


Files

production1.log (38.7 KB) production1.log haobin li, 2019-05-14 03:26
production2.log (23.1 KB) production2.log haobin li, 2019-05-14 03:26
20190514093011.png (13.9 KB) 20190514093011.png haobin li, 2019-05-14 03:30
production 3.log (11.4 KB) production 3.log haobin li, 2019-05-14 04:45

Related issues 1 (0 open — 1 closed)

Is duplicate of Redmine - Defect #31241: intermittent 500s ActiveRecord::ConnectionTimeoutErrorClosedActions

Updated by haobin li over 7 years ago Actions #1

From version 4.0.0 to v4.0.3,the issue always exist.

Updated by bill auger over 7 years ago Actions #2

this look like the same issue i reported a few weeks ago

https://www.redmine.org/issues/31241

Updated by haobin li over 7 years ago Actions #3

ActiveRecord::ConnectionTimeoutError (could not obtain a connection from the pool within 5.000 seconds (waited 5.000 seconds); all pooled connections were in use):

5 secconds is too short.Which file/parameter couled be setted about this timer?

Updated by Go MAEDA over 7 years ago Actions #4

Could you paste the environment information? You can find it on admin/info page.

Updated by haobin li over 7 years ago Actions #5

Go MAEDA wrote:

Could you paste the environment information? You can find it on admin/info page.

Information

Redmine 4.0.3.stable

Default administrator account changed
Attachments directory writable
Plugin assets directory writable (./public/plugin_assets)
RMagick available (optional)
ImageMagick convert available (optional)

Environment:
  Redmine version                4.0.3.stable
  Ruby version                   2.6.0-p0 (2018-12-25) [x86_64-linux]
  Rails version                  5.2.2.1
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
SCM:
  Subversion                     1.7.14
  Git                            1.8.3.1
  Filesystem                     
Redmine plugins:
  no plugin installed

Updated by pasquale [:dedalus] about 7 years ago Actions #6

It sound the same issue of #32314 where I have detected the magic number equals to 30

Updated by jianmin Zhang over 6 years ago Actions #7

Have you solved this problem? I have the same problem when I use:

Completed 500 Internal Server Error in 5004ms (ActiveRecord: 0.0ms)

ActiveRecord::ConnectionTimeoutError (could not obtain a connection from the pool within 5.000 seconds (waited 5.003 seconds); all pooled connections were in use):

Updated by bill auger over 6 years ago Actions #8

i have no solution; but instead, i have changed the 500 page to read: "sorry, server is overloaded - please wait while we reconnect you ..."; and added a meta-refresh - it is super tacky; but it has stopped the complaints for now

Updated by bill auger over 6 years ago Actions #9

FWIW - i just noticed this ticket is categorized as "Email notifications"; while my ticket #31241 is categorized "Database" - these are almost certainly duplicates though

Updated by Marius BĂLTEANU over 6 years ago Actions #10

  • Is duplicate of Defect #31241: intermittent 500s ActiveRecord::ConnectionTimeoutError added

Updated by Marius BĂLTEANU over 6 years ago Actions #11

  • Status changed from New to Closed
  • Resolution set to Duplicate

I'm closing this in the favour of #31241, I've added some notes there.

Actions

Also available in: PDF Atom