Open m3asmi opened 12 months ago
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.
@m3asmi do you still have this issue?
@simahawk yes I still have it, here is of today:
2024-10-04 07:35:35,063 809805 INFO DATABASE werkzeug: 127.0.0.1 - - [04/Oct/2024 07:35:35] "GET /queue_job/runjob?db=DATABASE&job_uuid=5c7b1d30-6819-4ff7-b230-96abddafe4ed HTTP/1.1" 500 - 36 1.608 2.884
2024-10-04 07:35:35,066 809805 ERROR DATABASE werkzeug: Error on request:
Traceback (most recent call last):
File "/odoo/odoo-server/odoo/addons/base/models/ir_http.py", line 242, in _dispatch
result = request.dispatch()
File "/odoo/odoo-server/odoo/http.py", line 819, in dispatch
r = self._call_function(**self.params)
File "/odoo/odoo-server/odoo/http.py", line 368, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/odoo/odoo-server/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/odoo/odoo-server/odoo/http.py", line 357, in checked_call
result = self.endpoint(*a, **kw)
File "/odoo/odoo-server/odoo/http.py", line 925, in __call__
return self.method(*args, **kw)
File "/odoo/odoo-server/odoo/http.py", line 546, in response_wrap
response = f(*args, **kw)
File "/odoo/custom/others/queue_job/controllers/main.py", line 149, in runjob
self._enqueue_dependent_jobs(env, job)
File "/odoo/custom/others/queue_job/controllers/main.py", line 47, in _enqueue_dependent_jobs
job.enqueue_waiting()
File "/odoo/custom/others/queue_job/job.py", line 566, in enqueue_waiting
self.env.cr.execute(sql, (PENDING, self.uuid, DONE, WAIT_DEPENDENCIES))
File "<decorator-gen-5>", line 2, in execute
File "/odoo/odoo-server/odoo/sql_db.py", line 89, in check
raise psycopg2.OperationalError('Unable to use a closed cursor.')
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/werkzeug/serving.py", line 319, in run_wsgi
execute(self.server.app)
File "/usr/local/lib/python3.8/dist-packages/werkzeug/serving.py", line 308, in execute
application_iter = app(environ, start_response)
File "/odoo/odoo-server/odoo/service/wsgi_server.py", line 112, in application
return application_unproxied(environ, start_response)
File "/odoo/odoo-server/odoo/service/wsgi_server.py", line 87, in application_unproxied
result = odoo.http.root(environ, start_response)
File "/odoo/odoo-server/odoo/http.py", line 1355, in __call__
return self.dispatch(environ, start_response)
File "/odoo/odoo-server/odoo/http.py", line 1321, in __call__
return self.app(environ, start_wrapped)
File "/usr/local/lib/python3.8/dist-packages/werkzeug/middleware/shared_data.py", line 287, in __call__
return self.app(environ, start_response)
File "/odoo/odoo-server/odoo/http.py", line 1548, in dispatch
result = ir_http._dispatch()
File "/odoo/odoo-server/addons/website_sale/models/ir_http.py", line 15, in _dispatch
return super(IrHttp, cls)._dispatch()
File "/odoo/odoo-server/addons/website/models/ir_http.py", line 199, in _dispatch
response = super(Http, cls)._dispatch()
File "/odoo/odoo-server/addons/auth_signup/models/ir_http.py", line 19, in _dispatch
return super(Http, cls)._dispatch()
File "/odoo/odoo-server/addons/web_editor/models/ir_http.py", line 21, in _dispatch
return super(IrHttp, cls)._dispatch()
File "/odoo/odoo-server/addons/utm/models/ir_http.py", line 29, in _dispatch
response = super(IrHttp, cls)._dispatch()
File "/odoo/odoo-server/addons/http_routing/models/ir_http.py", line 519, in _dispatch
result = super(IrHttp, cls)._dispatch()
File "/odoo/odoo-server/odoo/addons/base/models/ir_http.py", line 246, in _dispatch
return cls._handle_exception(e)
File "/odoo/odoo-server/addons/utm/models/ir_http.py", line 34, in _handle_exception
response = super(IrHttp, cls)._handle_exception(exc)
File "/odoo/odoo-server/addons/http_routing/models/ir_http.py", line 616, in _handle_exception
return super(IrHttp, cls)._handle_exception(exception)
File "/odoo/odoo-server/odoo/addons/base/models/ir_http.py", line 214, in _handle_exception
return request._handle_exception(exception)
File "/odoo/odoo-server/odoo/http.py", line 763, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/odoo/odoo-server/odoo/http.py", line 301, in _handle_exception
raise exception.with_traceback(None) from new_cause
psycopg2.OperationalError: Unable to use a closed cursor. - - -
2024-10-04 07:35:40,052 809810 DEBUG ? odoo.addons.queue_job.jobrunner.channels: job 5c7b1d30-6819-4ff7-b230-96abddafe4ed marked running in channel root(C:18,Q:0,R:1,F:4)
I have this everytime, the server is runing on multi jobs