Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vanilla traefik 2 sample #196

Open
carlosecv opened this issue Dec 10, 2020 · 10 comments
Open

vanilla traefik 2 sample #196

carlosecv opened this issue Dec 10, 2020 · 10 comments
Labels
help wanted Extra attention is needed

Comments

@carlosecv
Copy link

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
Copy link
Author

carlosecv commented Dec 10, 2020

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

This comment has been minimized.

@carlosecv

This comment has been minimized.

@yajo yajo added the help wanted Extra attention is needed label Dec 10, 2020
@yajo
Copy link
Contributor

yajo commented Dec 10, 2020

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
Copy link
Author

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
Copy link

maybe my comments in #116 help

@AntoniRomera
Copy link

AntoniRomera commented Oct 15, 2021

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
Copy link

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
Copy link

rquevedo commented Nov 12, 2022

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
Copy link
Member

Check #469

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

7 participants