[19.0] Unusual callback URL with Odoo 19.2 causing failure on BSD systems
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 55/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- Python
- Estrelas
- 271
- Forks
- 602
- Merge médio
- 5d 1h
- PRs com merge (30d)
- 7
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de OCA/queue
-
enhancement
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 30/100
Mantenedores costumam responder em até 1 dia
-
Migration to version 20.0Abertahelp wanted no stale work in progress
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
OCA/queue#1002 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Delaying unlink or write on a model whose method was replaced raises AttributeError at enqueue timeTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertabug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
Mantenedores costumam responder em até 1 dia
-
[19.0] queue_job: Jobs stay pending after the jobrunner's database connection is silently droppedTalvez já em andamento @HoloborodkoBohdan assumiu há 32 dias. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 25/100
OCA/queue#984 · 1 comentário · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
Mantenedores costumam responder em até 1 dia
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
pytest-dev/pytest-html#1085 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 90/100
pollen-robotics/reachy_mini#1527 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 66/100
Mantenedores costumam responder em até 2 dias
-
Variadic arguments that aren't objects are passed as objects (stringWithFormat_ with %d / %f)Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
A seed and its negative give the same run, so realizations of a negative seed repeat each otherAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
Mantenedores costumam responder em até 1 dia