Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After odoo installation, either CSS nor JS are found

After a lot of tries, I could finally install odoo 8, however, when I connect to it, browser redirects to /web/database/manager and the HTML is loaded (the logo appears and in the title Tag appears Odoo.

The problem is that JavaScripts and CSS are not loaded (by seeing in firebug, I saw a lot of not found errors, for example, /web/static/lib/jquery.blockUI/jquery.blockUI.js)

When I see /opt/odoo/addons/web/ directory, I see that all files are there.

The strange thing is that only the company logo appears, which has this path: /web/binary/company_logo. The curious thing is that path does not actually exist physically.

Any help will be greatly appreciated Thanks

EDIT:

I have enabled all log types and I see this when I start the server:

INFO ? openerp: addons paths: ['/home/odoo/.local/share/Odoo/addons/8.0', u'/opt/odoo/addons', '/opt/odoo/openerp/addons']

The path where the most pages are is actually /opt/odoo/addons, so it is correctly configured. Maybe for some reason, the path is not read.

When I see Firebug, I see this:

"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/css/full.css"
full.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/es5-shim/es5-shim.min.js"
es5-shim.min.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/underscore/underscore.js"
underscore.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/datejs/globalization/en-US.js"
en-US.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/spinjs/spin.js"
spin.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/underscore.string/lib/underscore.string.js"
undersc...ring.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery/jquery.js"
jquery.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.blockUI/jquery.blockUI.js"
jquery.blockUI.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.hotkeys/jquery.hotkeys.js"
jquery.hotkeys.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.placeholder/jquery.placeholder.js"
jquery....lder.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.timeago/jquery.timeago.js"
jquery.timeago.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.form/jquery.form.js"
jquery.form.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ba-bbq/jquery.ba-bbq.js"
jquery.ba-bbq.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/datejs/core.js"
core.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/datejs/sugarpak.js"
sugarpak.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/datejs/parser.js"
parser.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/datejs/extras.js"
extras.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.validate/jquery.validate.js"
jquery....date.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.autosize/jquery.autosize.js"
jquery....size.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.scrollTo/jquery.scrollTo-min.js"
jquery....-min.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/cleditor/jquery.cleditor.js"
jquery....itor.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.textext/jquery.textext.js"
jquery.textext.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/select2/select2.js"
select2.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ui/js/jquery-ui-1.9.1.custom.js"
jquery-...stom.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ui.timepicker/js/jquery-ui-timepicker-addon.js"
jquery-...ddon.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ui.notify/js/jquery.notify.js"
jquery.notify.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/bootstrap/js/bootstrap.js"
bootstrap.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/backbone/backbone.js"
backbone.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/qweb/qweb2.js"
qweb2.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/openerpframework.js"
openerp...work.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/py.js/lib/py.js"
py.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/testing.js"
testing.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/pyeval.js"
pyeval.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/core.js"
core.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/formats.js"
formats.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/chrome.js"
chrome.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/views.js"
views.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/data.js"
data.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/data_export.js"
data_export.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/search.js"
search.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/boot.js"
boot.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/view_list.js"
view_list.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/view_form.js"
view_form.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/view_list_editable.js"
view_li...able.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/view_tree.js"
view_tree.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/base/static/src/js/apps.js"
apps.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/tour.js"
tour.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/fontawesome/css/font-awesome.css"
font-awesome.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/cleditor/jquery.cleditor.css"
jquery....tor.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.textext/jquery.textext.css"
jquery....ext.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/select2/select2.css"
select2.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ui.bootstrap/css/custom-theme/jquery-ui-1.9.0.custom.css"
jquery-...tom.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ui.timepicker/css/jquery-ui-timepicker-addon.css"
jquery-...don.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ui.notify/css/ui.notify.css"
ui.notify.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/bootstrap/css/bootstrap.css"
bootstrap.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/css/base.css"
base.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/css/data_export.css"
data_export.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/base/static/src/css/modules.css"
modules.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/datejs/globalization/en-US.js"
en-US.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/spinjs/spin.js"
spin.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery/jquery.js"
jquery.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.blockUI/jquery.blockUI.js"
jquery.blockUI.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.hotkeys/jquery.hotkeys.js"
jquery.hotkeys.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.placeholder/jquery.placeholder.js"
jquery....lder.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.timeago/jquery.timeago.js"
jquery.timeago.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.form/jquery.form.js"
jquery.form.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ba-bbq/jquery.ba-bbq.js"
jquery.ba-bbq.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/datejs/core.js"
core.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/datejs/parser.js"
parser.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/datejs/sugarpak.js"
sugarpak.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/datejs/extras.js"
extras.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.validate/jquery.validate.js"
jquery....date.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.autosize/jquery.autosize.js"
jquery....size.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.scrollTo/jquery.scrollTo-min.js"
jquery....-min.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/cleditor/jquery.cleditor.js"
jquery....itor.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.textext/jquery.textext.js"
jquery.textext.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/select2/select2.js"
select2.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ui/js/jquery-ui-1.9.1.custom.js"
jquery-...stom.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ui.timepicker/js/jquery-ui-timepicker-addon.js"
jquery-...ddon.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ui.notify/js/jquery.notify.js"
jquery.notify.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/bootstrap/js/bootstrap.js"
bootstrap.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/backbone/backbone.js"
backbone.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/qweb/qweb2.js"
qweb2.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/openerpframework.js"
openerp...work.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/py.js/lib/py.js"
py.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/boot.js"
boot.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/testing.js"
testing.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/pyeval.js"
pyeval.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/core.js"
core.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/formats.js"
formats.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/chrome.js"
chrome.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/views.js"
views.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/data.js"
data.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/data_export.js"
data_export.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/search.js"
search.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/view_list.js"
view_list.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/view_form.js"
view_form.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/view_list_editable.js"
view_li...able.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/view_tree.js"
view_tree.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/base/static/src/js/apps.js"
apps.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/tour.js"
tour.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/fontawesome/css/font-awesome.css"
font-awesome.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.textext/jquery.textext.css"
jquery....ext.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/cleditor/jquery.cleditor.css"
jquery....tor.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/select2/select2.css"
select2.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ui.bootstrap/css/custom-theme/jquery-ui-1.9.0.custom.css"
jquery-...tom.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ui.timepicker/css/jquery-ui-timepicker-addon.css"
jquery-...don.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ui.notify/css/ui.notify.css"
ui.notify.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/bootstrap/css/bootstrap.css"
bootstrap.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/css/base.css"
base.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/css/data_export.css"
data_export.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/base/static/src/css/modules.css"
modules.css
ReferenceError: $ is not defined


$(function() {

EDIT: I have installed nodejs and less and the same happened. This was the installation output:

Installed:
  nodejs.x86_64 0:0.10.35-1.el5.hg

Complete!
root@des [/usr/local/src/less-less.js-e40c2f5]# npm install -g npm
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
[email protected] /usr/local/lib/node_modules/npm
clean-css[/usr/local/src/less-less.js-e40c2f5]# npm install -g less less-plugin-
/usr/local/bin/lessc -> /usr/local/lib/node_modules/less/bin/lessc
[email protected] /usr/local/lib/node_modules/less-plugin-clean-css
âââ [email protected] ([email protected], [email protected])

[email protected] /usr/local/lib/node_modules/less
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected] ([email protected])
âââ [email protected] ([email protected])
âââ [email protected] ([email protected])
âââ [email protected] ([email protected])
âââ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
like image 468
jstuardo Avatar asked Dec 20 '22 05:12

jstuardo


2 Answers

You need to install nodejs and less. How to install these depends on your operating system. Here is an example for Ubuntu 14.04 LTS:

The NodeJS and NPM packages in the Ubuntu 14.04 repository can not be used because they are outdated.

Follow the instructions from the NodeJS Website:

curl -sL https://deb.nodesource.com/setup_0.10 | sudo bash -
sudo apt-get install -y nodejs
sudo npm install -g npm

Then install Less and accessories:

sudo npm install -g less less-plugin-clean-css
like image 172
trevi Avatar answered Dec 28 '22 11:12

trevi


The following solution worked for me:

Try changing the owner, group and permissions of the odoo configuration file. Odoo runs as the user "Odoo" if you follow the default configuration. But the configuration file may not be accessible to Odoo.

Try setting chown odoo:odoo /etc/odoo-server.conf chmod 755 /etc/odoo-server.conf

Also, check permissions of other odoo files and addon files

like image 26
Abul Hassan Avatar answered Dec 28 '22 09:12

Abul Hassan