报错:
Traceback (most recent call last): File "/root/work16/addons/queue_job/jobrunner/runner.py", line 248, in urlopen response.raise_for_status() File "/root/work16/env16/lib/python3.10/site-packages/requests/models.py", line 943, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 500 Server Error: INTERNAL SERVER ERROR for url: http://localhost:8069/queue_job/runjob?db=lzw003&job_uuid=6f345a5f-fb2e-4097-b5aa-015436f38e52 2024-02-19 06:34:32,248 40525 WARNING ? odoo.addons.queue_job.jobrunner.runner: state of job 6f345a5f-fb2e-4097-b5aa-015436f38e52 was reset from enqueued to pending 2024-02-19 06:34:32,249 40525 INFO ? odoo.addons.queue_job.jobrunner.runner: asking Odoo to run job 6f345a5f-fb2e-4097-b5aa-015436f38e52 on db lzw003 2024-02-19 06:34:32,279 40525 ERROR ? odoo.http: Exception during request handling. Traceback (most recent call last): File "/root/work16/odoo/odoo/http.py", line 2000, in __call__ response = request._serve_nodb() File "/root/work16/odoo/odoo/http.py", line 1553, in _serve_nodb response = self.dispatcher.dispatch(rule.endpoint, args) File "/root/work16/odoo/odoo/http.py", line 1727, in dispatch return endpoint(**self.request.params) File "/root/work16/odoo/odoo/http.py", line 697, in route_wrapper result = endpoint(self, *args, **params_ok) File "/root/work16/addons/queue_job/controllers/main.py", line 75, in runjob env = http.request.env(user=SUPERUSER_ID) TypeError: 'NoneType' object is not callable 2024-02-19 06:34:32,281 40525 INFO ? werkzeug: 127.0.0.1 - - [19/Feb/2024 06:34:32] "GET /queue_job/runjob?db=lzw003&job_uuid=6f345a5f-fb2e-4097-b5aa-015436f38e52 HTTP/1.1" 500 - 1 0.002 0.018 2024-02-19 06:34:32,283 40525 ERROR ? odoo.addons.queue_job.jobrunner.runner: exception in GET http://localhost:8069/queue_job/runjob?db=lzw003&job_uuid=6f345a5f-fb2e-4097-b5aa-015436f38e52 Traceback (most recent call last): File "/root/work16/addons/queue_job/jobrunner/runner.py", line 248, in urlopen response.raise_for_status() File "/root/work16/env16/lib/python3.10/site-packages/requests/models.py", line 943, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 500 Server Error: INTERNAL SERVER ERROR for url: http://localhost:8069/queue_job/runjob?db=lzw003&job_uuid=6f345a5f-fb2e-4097-b5aa-015436f38e52
解决方案:
如果你尝试了所有方法都不能解决这个问题,检查数据库,如果有其他闲置的数据库,删除后再试。