Skip to Content
Menu
This question has been flagged
1 Reply
3071 Views

I have a strange issue with my self installed odoo 14 instance where it crashes randomly. Any insight or help on this issue would be appreciated.


2021-06-13 04:14:38,240 26881 INFO odoo14 odoo.addons.base.models.ir_cron: Starting job `Snailmail: process letters queue`.
2021-06-13 04:14:38,252 26881 INFO odoo14 odoo.addons.base.models.ir_cron: Job `Snailmail: process letters queue` done.
2021-06-13 04:17:00,979 26881 INFO odoo14 werkzeug: 108.193.2.35 - - [13/Jun/2021 04:17:00] "POST /longpolling/poll HTTP/1.1" 200 - 8 0.006 50.016
2021-06-13 04:17:38,448 26881 INFO odoo14 odoo.addons.base.models.ir_cron: Starting job `Calendar: Event Reminder`.
2021-06-13 04:17:38,465 26881 INFO odoo14 odoo.addons.base.models.ir_cron: Job `Calendar: Event Reminder` done.
2021-06-13 04:19:38,597 26881 INFO odoo14 odoo.addons.base.models.ir_cron: Starting job `Invoice OCR: Update All Status`.
2021-06-13 04:19:38,613 26881 INFO odoo14 odoo.addons.base.models.ir_cron: Job `Invoice OCR: Update All Status` done.
2021-06-13 04:19:38,615 26881 INFO odoo14 odoo.addons.base.models.ir_cron: Starting job `Post process payment transactions`.
2021-06-13 04:19:38,629 26881 INFO odoo14 odoo.addons.base.models.ir_cron: Job `Post process payment transactions` done.
2021-06-13 04:29:39,218 26881 INFO odoo14 odoo.addons.base.models.ir_cron: Starting job `Post process payment transactions`.
2021-06-13 04:29:39,230 26881 INFO odoo14 odoo.addons.base.models.ir_cron: Job `Post process payment transactions` done.
2021-06-13 04:37:03,861 26881 WARNING odoo14 odoo.service.server: Thread virtual real time limit (1252/1200s) reached.
2021-06-13 04:37:03,861 26881 INFO odoo14 odoo.service.server: Dumping stacktrace of limit exceeding threads before reloading
2021-06-13 04:37:03,878 26881 INFO odoo14 odoo.tools.misc:
# Thread: (db:n/a) (uid:n/a) (url:n/a)
File: "/usr/lib/python3.7/threading.py", line 885, in _bootstrap
self._bootstrap_inner()
File: "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File: "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File: "/usr/lib/python3.7/socketserver.py", line 650, in process_request_thread
self.finish_request(request, client_address)
File: "/usr/lib/python3.7/socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File: "/usr/lib/python3.7/socketserver.py", line 720, in __init__
self.handle()
File: "/opt/venv-odoo14/lib/python3.7/site-packages/werkzeug/serving.py", line 329, in handle
rv = BaseHTTPRequestHandler.handle(self)
File: "/usr/lib/python3.7/http/server.py", line 426, in handle
self.handle_one_request()
File: "/opt/venv-odoo14/lib/python3.7/site-packages/werkzeug/serving.py", line 360, in handle_one_request
self.raw_requestline = self.rfile.readline()
File: "/usr/lib/python3.7/socket.py", line 589, in readinto
return self._sock.recv_into(b)
2021-06-13 04:37:03,879 26881 INFO odoo14 odoo.service.server: Initiating server reload



Avatar
Discard
Best Answer

From the log you provided (mainly the line with the big WARNING word) it seems that your server is reloading because it tries to run your Schedules Actions (or simply Cron Jobs) and they are taking more than 20 minutes to complete. 

The 20 minutes (1200s) is your current value for a parameter --limit-time-real you can set when launching Odoo or in the odoo.conf file. Looks like you have it set as in the linked sample from the documentation.

Now your options are to either increase this limit, which would temporarily solve the issue, but 20 minutes should be enough most of the time, so it is not sustainable to keep increasing the parameter.

Or, and I would recommend this, trying to find what is actually causing your Odoo cron jobs to run so long.
As a pointer, try looking at the "Post process payment transactions" cron job, as from the log it's the last one to run before the reload (the "crash") and it seems to have executed twice with ~10 minutes between the runs.

Avatar
Discard
Related Posts Replies Views Activity
1
Aug 24
997
1
Nov 24
1482
1
Nov 24
1188
0
Oct 24
74
2
Sep 24
1047