Giter VIP home page Giter VIP logo

Comments (15)

JordiBForgeFlow avatar JordiBForgeFlow commented on September 17, 2024

I have created an issue to odoo:
odoo/odoo#23124

from ansible-odoo.

JordiBForgeFlow avatar JordiBForgeFlow commented on September 17, 2024

The problem occurs also with 10.0 in debian stretch.

from ansible-odoo.

satish-opensys avatar satish-opensys commented on September 17, 2024

The problem seems to be with lessc node package.
please try commands below -

sudo apt-get install nodejs nodejs-legacy node-less
sudo apt-get install npm
sudo npm install -g less
sudo npm install -g less-plugin-clean-css
sudo ln -s /usr/local/bin/lessc /usr/bin/lessc
sudo ln -s /usr/bin/nodejs /usr/bin/node

from ansible-odoo.

sebalix avatar sebalix commented on September 17, 2024

lessc is already installed by this role (https://github.com/OCA/ansible-odoo/blob/master/tasks/install.yml#L75 + https://github.com/OCA/ansible-odoo/blob/master/tasks/install_npm.yml).
For Debian Stretch / Odoo 11 : the following packages are used: https://github.com/OCA/ansible-odoo/blob/master/vars/Debian-9_Odoo-11.yml#L42

from ansible-odoo.

JordiBForgeFlow avatar JordiBForgeFlow commented on September 17, 2024

Perhaps it is the vfersion used. Not sure. But I reproduce the error also using Ubuntu 16.04 and odoo 10 for which I never faced issues with multiple workers in non ansible installations.

Will need to compare the package versions between a working instance and the versions proposed by ansible.

Have you been able to reproduce the issue frpm your side?

I used mostly LXC containers, but also tries in a OVH server with same results

from ansible-odoo.

sebalix avatar sebalix commented on September 17, 2024

No, from my side all was working pretty well when I integrated the NodeJS+NPM packages (I remember that I pass a huge amount of time to test every possibilities on differents distributions...).
I'll test again.
Also, it could help having an URL to test (returning 200 OK) if the CSS is well-compiled, and add it to the tests.

from ansible-odoo.

satish-opensys avatar satish-opensys commented on September 17, 2024

Can you share screenshots of issues coming on terminal and also the Odoo Web UI

from ansible-odoo.

JordiBForgeFlow avatar JordiBForgeFlow commented on September 17, 2024

image

from ansible-odoo.

JordiBForgeFlow avatar JordiBForgeFlow commented on September 17, 2024

(b'', b'The "--no-js" argument is deprecated, as inline JavaScript is disabled by default. Use "--js" to enable inline JavaScript (not recommended).
')This error occured while compiling the bundle 'web.assets_backend' containing:
- /web/static/lib/bootstrap/less/variables.less
- /web/static/lib/bootstrap/less/mixins/vendor-prefixes.less
- /web/static/lib/bootstrap/less/mixins/buttons.less
- /web/static/lib/bootstrap/less/mixins/clearfix.less
- /web/static/lib/bootstrap/less/mixins/size.less
- /web/static/src/less/variables.less
- /web/static/src/less/utils.less
- /web_editor/static/src/less/web_editor.variables.less
- /web/static/src/less/import_bootstrap.less
- /web/static/src/less/bootstrap_overridden.less
- /web/static/src/less/webclient_extra.less
- /web/static/src/less/webclient_layout.less
- /web/static/src/less/webclient.less
- /web/static/src/less/domain_selector.less
- /web/static/src/less/model_field_selector.less
- /web/static/src/less/progress_bar.less
- /web/static/src/less/dropdown.less
- /web/static/src/less/dropdown_extra.less
- /web/static/src/less/tooltip.less
- /web/static/src/less/debug_manager.less
- /web/static/src/less/control_panel.less
- /web/static/src/less/fields.less
- /web/static/src/less/fields_extra.less
- /web/static/src/less/views.less
- /web/static/src/less/views_extra.less
- /web/static/src/less/pivot_view.less
- /web/static/src/less/graph_view.less
- /web/static/src/less/form_view.less
- /web/static/src/less/form_view_extra.less
- /web/static/src/less/list_view.less
- /web/static/src/less/list_view_extra.less
- /web/static/src/less/kanban_dashboard.less
- /web/static/src/less/kanban_column_progressbar.less
- /web/static/src/less/kanban_view.less
- /web/static/src/less/kanban_view_mobile.less
- /web/static/src/less/web_calendar.less
- /web/static/src/less/search_view.less
- /web/static/src/less/search_view_extra.less
- /web/static/src/less/data_export.less
- /web/static/src/less/base_settings.less
- /web/static/src/less/report_backend.less
- /base_import/static/src/less/base_import.less
- /web_diagram/static/src/less/diagram_view.less
- /web_editor/static/src/less/web_editor.common.less
- /web_editor/static/src/less/web_editor.backend.less
- /web_settings_dashboard/static/src/less/dashboard.less

from ansible-odoo.

JordiBForgeFlow avatar JordiBForgeFlow commented on September 17, 2024

Issue also reported here:odoo/docker#151

from ansible-odoo.

JordiBForgeFlow avatar JordiBForgeFlow commented on September 17, 2024

Ok, after a long series of back and forth I found the root cause and the issue is fixed in #69, specifically:
https://github.com/OCA/ansible-odoo/pull/69/files#diff-7eeda618087b49ae876084ab6c73fdbbR66
https://github.com/OCA/ansible-odoo/pull/69/files#diff-7eeda618087b49ae876084ab6c73fdbbR67

Cause:
The ansible role had as default values for limit_memory_hard and limit_memory_soft values that were applicable defaults for openerp 7.0 (see https://github.com/odoo/odoo/blob/7.0/openerp/tools/config.py#L288).

But for 8.0 onwards the default values were increased significantly (see for example https://github.com/odoo/odoo/blob/9.0/openerp/tools/config.py#L267), to abount 2GB of default required memory.

The standard odoo documentation is even obsolete in this point https://www.odoo.com/documentation/11.0/reference/cmdline.html

The lack of memory was causing the less to fail to compile the less files.

from ansible-odoo.

sebalix avatar sebalix commented on September 17, 2024

@jbeficent good catch, indeed I increased these values in our internal Ansible configuration, that's why all was working well!

from ansible-odoo.

oosantana avatar oosantana commented on September 17, 2024

Try

sudo apt-get install nodejs
sudo apt-get install npm
sudo npm install -g less
sudo npm install -g less-plugin-clean-css
sudo ln -s /usr/local/bin/lessc /usr/bin/lessc
sudo ln -s /usr/bin/nodejs /usr/bin/node

Restar Odoo

from ansible-odoo.

JordiBForgeFlow avatar JordiBForgeFlow commented on September 17, 2024

@oosantana that was not the problem. It is now solved, as I said

from ansible-odoo.

majdi61 avatar majdi61 commented on September 17, 2024

@jbeficent good catch, indeed I increased these values in our internal Ansible configuration, that's why all was working well!

pls how i do that ?

from ansible-odoo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.