frappe / erpnext

Free and Open Source Enterprise Resource Planning (ERP)
https://erpnext.com
GNU General Public License v3.0
21.78k stars 7.31k forks source link

Gunicorn Restart Errors Causing Slowdown in ERPNext #38978

Closed OwaisAzad closed 10 months ago

OwaisAzad commented 10 months ago

Information about bug

Hello everyone,

I’m encountering an issue with my ERPNext instance where I’m repeatedly experiencing Gunicorn restart errors. These errors are causing a slowdown in my application performance. Here are the logs detailing the issue: ./web.error.log: [2023-12-14 02:14:22 +0000] [2661999] [INFO] Autorestarting worker after current request. [2023-12-14 02:14:23 +0000] [2661999] [INFO] Worker exiting (pid: 2661999) [2023-12-14 02:14:23 +0000] [2774185] [INFO] Booting worker with pid: 2774185

[…]

[2023-12-14 09:55:11 +0000] [57360] [INFO] Handling signal: term [2023-12-14 09:55:11 +0000] [57360] [INFO] Shutting down: Master [2023-12-14 09:55:14 +0000] [57360] [INFO] Starting gunicorn 20.1.0 [2023-12-14 09:55:14 +0000] [57360] [INFO] Listening at: http://127.0.0.1:8000 (57360) [2023-12-14 09:55:14 +0000] [57360] [INFO] Using worker: sync [2023-12-14 09:55:14 +0000] [57363] [INFO] Booting worker with pid: 57363 [2023-12-14 09:55:14 +0000] [57364] [INFO] Booting worker with pid: 57364 [2023-12-14 09:55:14 +0000] [57365] [INFO] Booting worker with pid: 57365 [2023-12-14 09:55:14 +0000] [57366] [INFO] Booting worker with pid: 57366 [2023-12-14 09:55:15 +0000] [57367] [INFO] Booting worker with pid: 57367

[…]

[2023-12-14 09:57:38 +0000] [57360] [INFO] Handling signal: term [2023-12-14 09:57:39 +0000] [57363] [INFO] Worker exiting (pid: 57363) [2023-12-14 09:57:39 +0000] [57364] [INFO] Worker exiting (pid: 57364) [2023-12-14 09:57:39 +0000] [57365] [INFO] Worker exiting (pid: 57365) [2023-12-14 09:57:40 +0000] [57366] [INFO] Worker exiting (pid: 57366) [2023-12-14 09:57:40 +0000] [57367] [INFO] Worker exiting (pid: 57367) [2023-12-14 09:57:40 +0000] [57360] [INFO] Shutting down: Master

[…]

[2023-12-14 10:00:26 +0000] [846] [INFO] Handling signal: term [2023-12-14 10:00:26 +0000] [846] [INFO] Shutting down: Master [2023-12-14 10:00:29 +0000] [846] [INFO] Starting gunicorn 20.1.0 [2023-12-14 10:00:29 +0000] [846] [INFO] Listening at: http://127.0.0.1:8000 (846) [2023-12-14 10:00:29 +0000] [846] [INFO] Using worker: sync [2023-12-14 10:00:29 +0000] [957] [INFO] Booting worker with pid: 957 [2023-12-14 10:00:29 +0000] [958] [INFO] Booting worker with pid: 958 [2023-12-14 10:00:29 +0000] [959] [INFO] Booting worker with pid: 959 [2023-12-14 10:00:29 +0000] [960] [INFO] Booting worker with pid: 960 [2023-12-14 10:00:29 +0000] [961] [INFO] Booting worker with pid: 961

I’m seeking assistance on resolving this issue promptly. Any guidance or suggestions on how to tackle and mitigate these Gunicorn restart errors would be greatly appreciated.

Thank you in advance for your help.

Best regards

Module

CRM

Version

aoc 0.0.1 content_qa 0.0.1 creative 0.0.1 erpnext 15.0.0-dev frappe 15.0.0-dev hrms 15.0.0-dev moc 0.0.1 pmo 0.0.1

Installation method

manual install

Relevant log output / Stack trace / Full Error Message.

./web.error.log:
[2023-12-14 02:14:22 +0000] [2661999] [INFO] Autorestarting worker after current request.
[2023-12-14 02:14:23 +0000] [2661999] [INFO] Worker exiting (pid: 2661999)
[2023-12-14 02:14:23 +0000] [2774185] [INFO] Booting worker with pid: 2774185

[…]

[2023-12-14 09:55:11 +0000] [57360] [INFO] Handling signal: term
[2023-12-14 09:55:11 +0000] [57360] [INFO] Shutting down: Master
[2023-12-14 09:55:14 +0000] [57360] [INFO] Starting gunicorn 20.1.0
[2023-12-14 09:55:14 +0000] [57360] [INFO] Listening at: http://127.0.0.1:8000 (57360)
[2023-12-14 09:55:14 +0000] [57360] [INFO] Using worker: sync
[2023-12-14 09:55:14 +0000] [57363] [INFO] Booting worker with pid: 57363
[2023-12-14 09:55:14 +0000] [57364] [INFO] Booting worker with pid: 57364
[2023-12-14 09:55:14 +0000] [57365] [INFO] Booting worker with pid: 57365
[2023-12-14 09:55:14 +0000] [57366] [INFO] Booting worker with pid: 57366
[2023-12-14 09:55:15 +0000] [57367] [INFO] Booting worker with pid: 57367

[…]

[2023-12-14 09:57:38 +0000] [57360] [INFO] Handling signal: term
[2023-12-14 09:57:39 +0000] [57363] [INFO] Worker exiting (pid: 57363)
[2023-12-14 09:57:39 +0000] [57364] [INFO] Worker exiting (pid: 57364)
[2023-12-14 09:57:39 +0000] [57365] [INFO] Worker exiting (pid: 57365)
[2023-12-14 09:57:40 +0000] [57366] [INFO] Worker exiting (pid: 57366)
[2023-12-14 09:57:40 +0000] [57367] [INFO] Worker exiting (pid: 57367)
[2023-12-14 09:57:40 +0000] [57360] [INFO] Shutting down: Master

[…]

[2023-12-14 10:00:26 +0000] [846] [INFO] Handling signal: term
[2023-12-14 10:00:26 +0000] [846] [INFO] Shutting down: Master
[2023-12-14 10:00:29 +0000] [846] [INFO] Starting gunicorn 20.1.0
[2023-12-14 10:00:29 +0000] [846] [INFO] Listening at: http://127.0.0.1:8000 (846)
[2023-12-14 10:00:29 +0000] [846] [INFO] Using worker: sync
[2023-12-14 10:00:29 +0000] [957] [INFO] Booting worker with pid: 957
[2023-12-14 10:00:29 +0000] [958] [INFO] Booting worker with pid: 958
[2023-12-14 10:00:29 +0000] [959] [INFO] Booting worker with pid: 959
[2023-12-14 10:00:29 +0000] [960] [INFO] Booting worker with pid: 960
[2023-12-14 10:00:29 +0000] [961] [INFO] Booting worker with pid: 961
deepeshgarg007 commented 10 months ago

@OwaisAzad This is not a product-related issue. Closing this ticket