Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[19.0] Unusual callback URL with Odoo 19.2 causing failure on BSD systems

未关闭
#933 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
55/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
python
领域
backend

调研方向

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 内容生成。

描述

bug

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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

OCA/queue 的其他 Issue

查看 OCA/queue 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。