Comments (15)
I have created an issue to odoo:
odoo/odoo#23124
from ansible-odoo.
The problem occurs also with 10.0 in debian stretch.
from ansible-odoo.
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.
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.
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.
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.
Can you share screenshots of issues coming on terminal and also the Odoo Web UI
from ansible-odoo.
from ansible-odoo.
(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.
Issue also reported here:odoo/docker#151
from ansible-odoo.
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.
@jbeficent good catch, indeed I increased these values in our internal Ansible configuration, that's why all was working well!
from ansible-odoo.
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.
@oosantana that was not the problem. It is now solved, as I said
from ansible-odoo.
@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)
- Odoo 12.0: does anyone start working on migrate the role ? HOT 1
- Is buildout still a viable option?
- wkhtmltox download failing on Ubuntu 16.04 Xenial HOT 3
- Installing the database Odoo via ansible HOT 3
- nginx role to configure odoo HOT 11
- On (almost) vanilla Ubuntu 16.04, I get error: "Unable to find any of pip3 to use. pip needs to be installed." HOT 4
- Regression - Task "Create odoo data directory"
- use pip install with --pre when install type is 'pip' HOT 1
- Registering Odoo as a service in systemd: daemon-reload should be invoked HOT 2
- private repo on buildouts HOT 3
- Deploy odoo ansible HOT 3
- Odoo style compilation failed - lessc failure, no css, broken visuals HOT 13
- [TODO] Odoo 12.0 - Remove the NodeJS dependency
- Install via pip - how to proceed when a module already exists? HOT 3
- oca.odoo was not found on https://galaxy.ansible.com HOT 7
- wkhtmltox 0.12.4 Debian package not available anymore HOT 11
- Missing tool: psycogreen requires python-setuptools (failed on Stretch) HOT 3
- Phantom installation failed (Stretch)
- No log with systemd HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-odoo.