Skip to Content
Menu
This question has been flagged
1 Reply
3014 Views

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

Avatar
Discard
Author Best Answer

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.

Avatar
Discard

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.

Related Posts Replies Views Activity
0
Oct 24
181
1
Dec 20
7242
1
Sep 20
8616
0
Feb 18
2517
1
Nov 17
3972