Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
4696 Переглядів

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

Аватар
Відмінити
Автор Найкраща відповідь

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.

Аватар
Відмінити

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 Відповіді Переглядів Дія
0
жовт. 24
1364
1
груд. 20
8854
1
вер. 20
9769
0
лют. 18
3503
1
лист. 17
4884