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

Could not execute command lessc #16463

Closed
AyaYousef opened this issue Apr 17, 2017 · 4 comments
Closed

Could not execute command lessc #16463

AyaYousef opened this issue Apr 17, 2017 · 4 comments

Comments

@AyaYousef
Copy link

AyaYousef commented Apr 17, 2017

Impacted versions: 10

Steps to reproduce:

  1. Install a new Odoo on Ubuntu 16.04
  2. Create a new database
  3. Install any module.
  4. You will now get the error "Could not execute command 'lessc'"

Current behavior:
Odoo backend and website layout is corrupted and I get dozens of errors in the console. In these errors I noticed that all files that ends with .less are altered to .less.css as it shown in the screenshot provided. At the very top of the page I get message with "Could not execute command /usr/bin/lessc"

Error log:

2017-04-17 06:17:57,317 5155 ERROR recruit odoo.addons.base.ir.ir_qweb.assetsbundle: Could not execute command 'lessc'
2017-04-17 06:17:57,327 5156 ERROR recruit odoo.addons.base.ir.ir_qweb.assetsbundle: Could not execute command 'lessc'
2017-04-17 06:17:57,463 5156 INFO recruit werkzeug: 127.0.0.1 - - [17/Apr/2017 06:17:57] "GET /web/static/lib/bootstrap/less/mixins/web.assets_frontend/vendor-prefixes.less.css HTTP/1.0" 404 -
2017-04-17 06:17:57,506 5156 INFO recruit werkzeug: 127.0.0.1 - - [17/Apr/2017 06:17:57] "GET /web/static/lib/bootstrap/less/mixins/web.assets_frontend/buttons.less.css HTTP/1.0" 404 -
2017-04-17 06:17:57,563 5156 INFO recruit werkzeug: 127.0.0.1 - - [17/Apr/2017 06:17:57] "GET /web/static/src/less/web.assets_frontend/utils.less.css HTTP/1.0" 404 -
2017-04-17 06:17:57,572 5155 INFO recruit werkzeug: 127.0.0.1 - - [17/Apr/2017 06:17:57] "GET /web/static/lib/bootstrap/less/web.assets_frontend/variables.less.css HTTP/1.0" 404 -
2017-04-17 06:17:57,614 5156 INFO recruit werkzeug: 127.0.0.1 - - [17/Apr/2017 06:17:57] "GET /web_enterprise/static/src/less/web.assets_frontend/variables.less.css HTTP/1.0" 404 -
2017-04-17 06:17:57,622 5155 INFO recruit werkzeug: 127.0.0.1 - - [17/Apr/2017 06:17:57] "GET /web_editor/static/src/less/web.assets_frontend/web_editor.variables.less.css HTTP/1.0" 404 -
2017-04-17 06:17:57,798 5156 INFO recruit werkzeug: 127.0.0.1 - - [17/Apr/2017 06:17:57] "GET /web/static/src/less/web.assets_frontend/import_bootstrap.less.css HTTP/1.0" 404 -
2017-04-17 06:17:57,826 5155 INFO recruit werkzeug: 127.0.0.1 - - [17/Apr/2017 06:17:57] "GET /web_editor/static/src/less/web.assets_frontend/web_editor.common.less.css HTTP/1.0" 404 -
2017-04-17 06:17:57,900 5156 INFO recruit werkzeug: 127.0.0.1 - - [17/Apr/2017 06:17:57] "GET /website/static/src/less/web.assets_frontend/website.ui.less.css HTTP/1.0" 404 -
2017-04-17 06:17:57,920 5155 INFO recruit werkzeug: 127.0.0.1 - - [17/Apr/2017 06:17:57] "GET /website/static/src/less/web.assets_frontend/website.ui.components.less.css HTTP/1.0" 404 -
2017-04-17 06:17:57,956 5156 INFO recruit werkzeug: 127.0.0.1 - - [17/Apr/2017 06:17:57] "GET /website/static/src/less/web.assets_frontend/website.wrapwrap.less.css HTTP/1.0" 404 -
2017-04-17 06:17:57,964 5155 INFO recruit werkzeug: 127.0.0.1 - - [17/Apr/2017 06:17:57] "GET /website/static/src/less/web.assets_frontend/website.snippets.less.css HTTP/1.0" 404 -
2017-04-17 06:17:58,167 5156 INFO recruit werkzeug: 127.0.0.1 - - [17/Apr/2017 06:17:58] "GET /website/static/src/less/web.assets_frontend/website.zoomodoo.less.css HTTP/1.0" 404 -
2017-04-17 06:17:58,171 5155 INFO recruit werkzeug: 127.0.0.1 - - [17/Apr/2017 06:17:58] "GET /website_enterprise/static/src/less/web.assets_frontend/website_enterprise.less.css HTTP/1.0" 404 -
2017-04-17 06:17:58,223 5156 INFO recruit werkzeug: 127.0.0.1 - - [17/Apr/2017 06:17:58] "GET /website_blog/static/src/less/web.assets_frontend/website_blog.less.css HTTP/1.0" 404 -
2017-04-17 06:17:58,227 5155 INFO ? werkzeug: 127.0.0.1 - - [17/Apr/2017 06:17:58] "GET /website_mail/static/src/css/website_mail.css HTTP/1.0" 200 -

Expected behavior:
I shouldn't get that error as I've installed a clean odoo using this guide, which I tried before on an other server with no problems

To solve it I tried the following solution refered in this link, but it didn't solve the problem

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

Video/Screenshot link (optional):

selection_038

@pimodoo pimodoo removed their assignment Apr 20, 2017
@deyvsonaguiar
Copy link

See this tutorial for fix your issue:

https://www.odoo.com/forum/help-1/question/what-does-this-error-mean-on-odoo-could-not-execute-command-lessc-60439

@bluemix
Copy link
Contributor

bluemix commented Oct 5, 2017

as @deyvsonaguiar provides the link, this helped fix the problem
sudo apt-get install node-less

@Selectsolution
Copy link

Selectsolution commented Apr 5, 2018

The Same Proplem Here

@sugarfree1
Copy link

Just for anyone searching about Mac OS X. I found the solution here: https://gist.github.com/jfie5/7343868

Especially this line helped me:

sudo npm install -g less

(npm is already installed on my OS X).

If you don't have npm then you need to install it first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants