[19.0] Unusual callback URL with Odoo 19.2 causing failure on BSD systems
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
The callback URL is built in the jobrunner.runner module of queue_job, which uses the configured http_interface, so start by reading how it picks the host. Reproduce by setting http_interface to 0.0.0.0 and checking the URL it requests. Done means the runner requests a reachable address when the interface is 0.0.0.0, and the workaround of setting host = localhost in odoo.rc still works.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
On a system updated to Odoo 19.2, the config "http_interface" is now set to "0.0.0.0" by default. This results in a unusual callback URL that fails on BSD systems.
Module
queue_job
Describe the bug
When jobrunner.runner constructs the callback URL to run a job, the constructed URL looks something like:
http://0.0.0.0:8069/queue_job/runjob?db=cmos&job_uuid=0cfa19cb-100f-4c8b-b9d3-d29df5abdc14
On BSD systems, this results in:
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='0.0.0.0', port=8069): Max retries exceeded with url: /queue_job/runjob?db=cmos&job_uuid=84495b18-dd11-48f0-9a9f-3497baf019a8 (Caused by NewConnectionError("HTTPConnection(host='0.0.0.0', port=8069): Failed to establish a new connection: [Errno 51] Network is unreachable"))
2026-05-13 01:24:42,894 12712 ERROR ? odoo.addons.queue_job.jobrunner.runner: exception in GET http://0.0.0.0:8069/queue_job/runjob?db=cmos&job_uuid=0cfa19cb-100f-4c8b-b9d3-d29df5abdc14
This behaviour is not observed on Linux systems; ie: http://0.0.0.0:8069 translates to http://localhost:8069 bypassing the exception.
Affected Versions
queue_job: 19.0.2.0.1
Workaround
Add the following to the odoo.rc file:
[queue_job]
host = localhost
Additional context
OS: FreeBSD 15/amd64
Python: 3.13
- Ngôn ngữ chính
- Python
- Star
- 271
- Fork
- 602
- Merge trung bình
- 4 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của OCA/queue
-
enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Migration to version 20.0Đang mởhelp wanted no stale work in progress
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
OCA/queue#1002 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Delaying unlink or write on a model whose method was replaced raises AttributeError at enqueue timeCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[19.0] queue_job: Jobs stay pending after the jobrunner's database connection is silently droppedCó thể đã có người làm @HoloborodkoBohdan đã nhận 32 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 25/100
OCA/queue#984 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
vllm-project/vllm#64845 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
dekobon/big-code-analysis#1729 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add `openai_safety_identifier`, the replacement for the `user` field that `openai_user` sendsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
pydantic/pydantic-ai#12091 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100