Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4703 Lượt xem

Hi there,

I tried to setup Odoo 12 behind a reverse proxy with HAProxy.
www Firewall with HAProxy Odoo server

At the beginning everything worked fine, after a half a day (obviously a timeout somewhere), I cannot create PDFs anymore.
If i log in without proxy, I can create PDFs.
After I change the configuration to the proxy and do not log out, it's working, after a while (or when I log out and in again) I get an error:

Request timeout
The operation was interrupted. This usually means that the current operation is taking too much time.

In odoo-server.log I see something like:
odoo\\.addons\\.base\\.models\\.ir_actions_report:\\ wkhtmltopdf:\\ b'Exit\\ with\\ code\\ 1\\ due\\ to\\ network\\ error:\\ ProtocolUnknownError
odoo\\.addons\\.base\\.models\\.ir_actions_report:\\ The\\ PDF\\ report\\ has\\ been\\ generated\\ for\\ records\\ \\[1067\\]\\.

The\ configuration\ for\ HAProxy\ is\ a\ little\ bit\ different\ as\ for\ nginx,\ I\ tried\ as\ much\ as\ I\ could\ see\ at:
https://www.odoo.com/documentation/12.0/administration/deployment/deploy.html#https
- Connect Tiemout
- X-Forwarded-For
- X-Real-IP
... i could set.

Does anyone has any idea?
Sure i can provide more information, but I don't know, which I should paste.

Maybe someone has an configuration example with HAProxy?

Many thanks and regards,
Angelo

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Maybe it's helpful for someone:
the problem was the system parameter web\.base\.url\.
After\ freezing\ it\ to\ the\ IP:Port\ with\ a\ new\ parameter\ web.base.url.freeze=True, everything went fine.

Ảnh đại diện
Huỷ bỏ

where is the parameter set?
web.base.url.freeze=True

@Marcus this is set in Settings/Technical/System Parameters
You must be logged in as admin with debug on.

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 10 24
1367
1
thg 12 20
8857
1
thg 9 20
9770
0
thg 2 18
3503
1
thg 11 17
4885