I did install all dependies as proposed in https://www.odoo.com/documentation/8.0/setup/install.html#source-install on my Ubuntu 14.4 server. After installing clean theme on a newly created database I see on the website that there must be a CSS error (no grafic, no structure).
The Logfile says:
IOError: [Errno 2] command not found: 'lessc'
When I check which less and which lessc the results are the same as odoo or as root user:
/usr/bin/less and /usr/local/bin/lessc
I think the problem is that odoo can't find lessc, but I don't have any idea how to fix this.
In my odoo home folder the .npm folder has been created.
The solution in my question was relativly simple, but without the help of a friend I would have having problems to find the clue.
Because normally odoo is started from the root user, so the environment variable from the odoo user are not active. The environment variables are coming from the process, eg are normally stated in the /etc/init.d/odoo-server startup file.
This variable should solve the problem: Please ad or correct in the startup script.
Another solution is the create a link to lessc folder
sudo ln -s /usr/local/bin/lessc /usr/bin/lessc
This error shows because of two reasons
You don't install required packages and plug-ins on your ubuntu system or
Install packages and plug-ins are outdated
To ride off from this issue try this commands on your ubuntu terminal
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_0.10 | sudo bash -
sudo apt-get install -y nodejs
sudo npm install -g npm (to update npm)
sudo npm install -g less less-plugin-clean-css
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 3/7/15, 5:44 AM|
|Seen: 1853 times|
|Last updated: 1/27/16, 7:01 AM|