Tecnativa / doodba-copier-template

A Copier template for Doodba projects
Boost Software License 1.0
85 stars 113 forks source link

vanilla traefik 2 sample #196

Open carlosecv opened 3 years ago

carlosecv commented 3 years ago

Yajo

Do you have an sample for traekik 2 proxy to get working website edition for odoo 14?

Im having issues trying to get it working with traefik version 1 sample that is on docs, in traefik saple version 1 it worked with previous odoo versions not now.

Regards

carlosecv commented 3 years ago
Traceback:
TypeError: Cannot read property 'getRange' of undefined
    at https://mydomain.com.mx/web/content/214-260d0ef/1/web.assets_common_lazy.js:5112:762
    at Function._.each._.forEach (https://mydomain.com.mx/web/content/214-260d0ef/1/web.assets_common_lazy.js:9:558)
    at https://mydomain.com.mx/web/content/214-260d0ef/1/web.assets_common_lazy.js:5112:662
    at async Class._startEditMode (https:/mydomain.com.mx/web/content/216-dde5719/1/website.assets_editor.js:56:26)
    at async Promise.all (index 0)
carlosecv commented 3 years ago

This trows logs:

2020-12-10 03:16:41,225 11158 INFO ? odoo: Odoo version 14.0 odoo_1 | 2020-12-10 03:16:41,225 11158 INFO ? odoo: Using configuration file at /opt/odoo/auto/odoo.conf odoo_1 | 2020-12-10 03:16:41,225 11158 INFO ? odoo: addons paths: ['/opt/odoo/custom/src/odoo/odoo/addons', '/var/lib/odoo/addons/14.0', '/opt/odoo/auto/addons'] odoo_1 | 2020-12-10 03:16:41,225 11158 INFO ? odoo: database: odoo14@db:5432 odoo_1 | 2020-12-10 03:16:41,442 11158 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf odoo_1 | :219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject odoo_1 | :219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject odoo_1 | :219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject odoo_1 | :219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject odoo_1 | :219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject odoo_1 | :219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject odoo_1 | :219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject odoo_1 | :219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject odoo_1 | :219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject

carlosecv commented 3 years ago

Well I solved part of the issue that appears on log: odoo_1 | :219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject

add to odoo/custom/dependencies/pip.txt gevent==20.9.0

thanks to:

https://github.com/python-greenlet/greenlet/issues/178#issuecomment-697342964

yajo commented 3 years ago

Do you have an sample for traekik 2 proxy to get working website edition for odoo 14?

Not for now. Traefik 2 is very much more configurable than traefik 1, so it's not as easy to provide a working setup that works for everybody.

I'll leave this open, though, labeled with help wanted, so anybody from the community can contribute such thing to the docs and we'll review it.

carlosecv commented 3 years ago

I know that this is not a plug and play issue.

If someone has been successful in using copier template with odoo 14 in a productive way, with a Traefik 2 or Traefik 1 proxy, please share your basic configuration, both of your Trarefik proxy, and labels that allow you to edit your web portal.

Regards,

gdgellatly commented 3 years ago

maybe my comments in #116 help

AntoniRomera commented 2 years ago

Hello,

I have the same problem and one of the things I see working wrong, many requests to /web/dataset/call_kw return a 301 and then the body of the request is lost so odoo gives an error. I will try to change the proxy settings as the previous comment says and see what happens.

Captura del log de odoo.

odoo_1 | 2021-10-15 08:53:41,143 31 INFO db odoo.http: <function DataSet.call_kw at 0x7f99cc5cadc0>, /web/dataset/call_kw: Function declared as capable of handling request of type 'json' but called with a request of type 'http' odoo_1 | 2021-10-15 08:53:41,145 31 INFO db werkzeug: 88.12.5.3 - - [15/Oct/2021 08:53:41] "GET /web/dataset/call_kw HTTP/1.1" 400 - 2 0.001 0.005 odoo_1 | 2021-10-15 08:53:41,195 27 INFO db odoo.http: <function DataSet.call_kw at 0x7f99cc5cadc0>, /web/dataset/call_kw: Function declared as capable of handling request of type 'json' but called with a request of type 'http' odoo_1 | 2021-10-15 08:53:41,196 27 INFO db werkzeug: 88.12.5.3 - - [15/Oct/2021 08:53:41] "GET /web/dataset/call_kw HTTP/1.1" 400 - 2 0.001 0.004 UPDATE I just noticed that the original request ends in a / but the second one does not.

luismata01 commented 2 years ago
Traceback:
TypeError: Cannot read property 'getRange' of undefined
    at https://mydomain.com.mx/web/content/214-260d0ef/1/web.assets_common_lazy.js:5112:762
    at Function._.each._.forEach (https://mydomain.com.mx/web/content/214-260d0ef/1/web.assets_common_lazy.js:9:558)
    at https://mydomain.com.mx/web/content/214-260d0ef/1/web.assets_common_lazy.js:5112:662
    at async Class._startEditMode (https:/mydomain.com.mx/web/content/216-dde5719/1/website.assets_editor.js:56:26)
    at async Promise.all (index 0)

I have the same error, any update about this solution?

rquevedo commented 1 year ago

To fix this and as a quick fix, run copier update and set parameter paths_without_crawlers to empty [] and update your build docker-compose up -d. After odoo stop to show js error, you can set defaults values for this parameter again.

pedrobaeza commented 4 months ago

Check #469