[19.0] Unusual callback URL with Odoo 19.2 causing failure on BSD systems
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Python
- 星标
- 271
- 派生
- 602
- 平均合并
- 5 天 1 小时
- 30 天内合并 PR
- 7
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
OCA/queue 的其他 Issue
-
enhancement
难度 3/5 1-2 天 新手友好度 30/100
维护者通常 1 天内回复
-
help wanted no stale work in progress
难度 5/5 一周以上 新手友好度 35/100
维护者通常 1 天内回复
-
Delaying unlink or write on a model whose method was replaced raises AttributeError at enqueue time可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭bug
难度 4/5 3-5 天 新手友好度 35/100
OCA/queue#996 · 1 个 reaction ·
维护者通常 1 天内回复
-
[19.0] queue_job: Jobs stay pending after the jobrunner's database connection is silently dropped可能已有人在做 @HoloborodkoBohdan 于 31 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 25/100
OCA/queue#984 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
OCA/queue#965 · 1 个 reaction ·
维护者通常 1 天内回复
相似的 Issue
-
infrastructure
难度 2/5 1-3 小时 新手友好度 76/100
NatLabRockies/H2Integrate#977 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
topoteretes/cognee#6470 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
-
area:docs priority:p2 type:docs wave:9
难度 1/5 1 小时以内 新手友好度 84/100
jejjohnson/radtrax#293 ·
维护者通常 1 天内回复
-
bug core plugins
难度 2/5 1-3 小时 新手友好度 68/100
bunkerity/bunkerweb#4121 · 1 条评论 ·
维护者通常 1 天内回复