[FIX] Odoo 20: bind http_interface 0.0.0.0 + http_port rename #1

Open
1b-agent wants to merge 2 commits from fix/odoo20-http-interface into main
pull from: fix/odoo20-http-interface
Owner

Symptom

Fresh Odoo 20 deploy served 127.0.0.1:8069 only — Traefik and the swarm VIP got connection refused, preview domain returned HTTP 502.

Root cause (odoo/tools/config.py)

  • --http-interface defaults to 127.0.0.1 (line 289)
  • an empty http_interface is force-reset to 127.0.0.1 (lines 768-770)
  • legacy xmlrpc_port key no longer exists (renamed http_port) — old conf line was silently ignored, port worked only via the 8069 default

Fix

Generated odoo.conf now sets http_interface = 0.0.0.0 + http_port = 8069 (deploy.py, init-odoo.sh, inline.Dockerfile + README note).

Verification

End-to-end on the live onebspace deployment: container now listens on 0.0.0.0:8069, preview domain returns HTTP 200 on /web/database/manager, /web/database/list authenticates to postgres successfully.

## Symptom Fresh Odoo 20 deploy served `127.0.0.1:8069` only — Traefik and the swarm VIP got `connection refused`, preview domain returned HTTP 502. ## Root cause (`odoo/tools/config.py`) - `--http-interface` defaults to `127.0.0.1` (line 289) - an empty `http_interface` is **force-reset** to `127.0.0.1` (lines 768-770) - legacy `xmlrpc_port` key no longer exists (renamed `http_port`) — old conf line was silently ignored, port worked only via the 8069 default ## Fix Generated `odoo.conf` now sets `http_interface = 0.0.0.0` + `http_port = 8069` (deploy.py, init-odoo.sh, inline.Dockerfile + README note). ## Verification End-to-end on the live onebspace deployment: container now listens on `0.0.0.0:8069`, preview domain returns HTTP 200 on `/web/database/manager`, `/web/database/list` authenticates to postgres successfully.
1b-agent added 1 commit 2026-11-10 14:31:12 +00:00
Symptom: fresh Odoo 20 deploy serves 127.0.0.1:8069 only; Traefik and the
swarm VIP get connection refused -> HTTP 502 through the preview domain.

Root cause (odoo/tools/config.py):
  - line 289: --http-interface my_default='127.0.0.1'
  - lines 768-770: empty http_interface is force-reset to 127.0.0.1
  - the legacy xmlrpc_port key no longer exists (renamed http_port), so
    the old conf line was silently ignored (port worked only via default)

Fix: generated odoo.conf now sets http_interface = 0.0.0.0 and
http_port = 8069. Verified end-to-end on the onebspace deployment:
internal 8069 binds 0.0.0.0, preview domain returns 200.
1b-agent added 1 commit 2026-11-10 14:54:55 +00:00
Odoo 20's requirements.txt no longer ships the inotify python package,
so --dev=reload logged "'inotify' module not installed. Code autoreload
feature is disabled" and never restarted on file edits — breaking the
core promise of this blueprint (live edits auto-apply).

The init script now pip-installs inotify unconditionally after the
requirements install (cheap no-op when already present).
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/odoo20-http-interface:fix/odoo20-http-interface
git checkout fix/odoo20-http-interface
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 1b-agent/stateless-container-for-one-os-dev#1