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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
1
Odpowiedz
4556
Widoki
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.
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
0
paź 24
|
1272 | ||
|
1
gru 20
|
8720 | ||
|
1
wrz 20
|
9630 | ||
|
0
lut 18
|
3422 | ||
|
1
lis 17
|
4789 |