Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
9 Odpowiedzi
14243 Widoki

Hi all,

we are getting this problem with odoo 10 community, no more icons , no more css only 404 error in log

like this:

2018-01-15 08:20:16,323 18607 INFO 10demo werkzeug: 127.0.0.1 - - [15/Jan/2018 08:20:16] "GET /account_cutoff_accrual_base/static/description/icon.png HTTP/1.1" 404 -

os: debian jessie

nodejs installed from https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions

someone could help me?

Awatar
Odrzuć

Please provide the necessary information, complete traceback, what did you do, did it work before or is it a fresh install, check the log for corrupt modules. This is not a trivia game, you are responsible to provide accurate information if you want to get help.

Autor

Dear Ermin, there is no traceback becuse there is no error.

The problem is that web interface show no more icons or images and in the log file, the only useful information a 404 on GET , as pasted in message.

So, are you able to answer my trivia question now?

Errors in log

"GET /web/static/lib/fontawesome/fonts/fontawesome-webfont.ttf?v=4.5.0 HTTP/1.1" 404

"GET /web/static/lib/fontawesome/fonts/fontawesome-webfont.woff?v=4.5.0 HTTP/1.1" 404 -

You did not explain if this is a fresh install or if the problem arose after working properly before, you did not explain which way you did install your Odoo, you did not explain which version, you did not explain which version of nodejs you have installed...

Most probably this can happen when you did not properly install nodejs, when you have installed a corrupt module or when you did not properly install Odoo (permission problems for example).

Hi Ermin,

Installation worked two weeks ago, I did it with buildout on debian jessie, Odoo 10 Community.

Then we need to update OCA project, so i rebuild it.

After that we loose every icon and every image, we got only one tip from log file posted above .

I've tried updating nodejs from official site to version 8.x and 9.x with no changes.

I've tried different werkzeug versions , with no changes

now i've no idea

fresh install on jessie , with node following this instructions :https://www.odoo.com/documentation/10.0/setup/install.html

command npm install -g less shows :

npm WARN engine less@2.7.3: wanted: {"node":">=0.12"} (current: {"node":"0.10.29","npm":"1.4.21"})

npm WARN engine mime@1.6.0: wanted: {"node":">=4"} (current: {"node":"0.10.29","npm":"1.4.21"})

npm WARN engine request@2.81.0: wanted: {"node":">= 4"} (current: {"node":"0.10.29","npm":"1.4.21"})

npm WARN engine form-data@2.1.4: wanted: {"node":">= 0.12"} (current: {"node":"0.10.29","npm":"1.4.21"})

npm WARN engine har-validator@4.2.1: wanted: {"node":">=4"} (current: {"node":"0.10.29","npm":"1.4.21"})

npm WARN engine hawk@3.1.3: wanted: {"node":">=0.10.32"} (current: {"node":"0.10.29","npm":"1.4.21"})

npm WARN engine cryptiles@2.0.5: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"})

npm WARN engine hoek@2.16.3: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"})

npm WARN engine boom@2.10.1: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"})

npm WARN engine har-schema@1.0.5: wanted: {"node":">=4"} (current: {"node":"0.10.29","npm":"1.4.21"})

npm WARN engine co@4.6.0: wanted: {"iojs":">= 1.0.0","node":">= 0.12.0"} (current: {"node":"0.10.29","npm":"1.4.21"})

/usr/local/bin/lessc -> /usr/local/lib/node_modules/less/bin/lessc

less@2.7.3 /usr/local/lib/node_modules/less

├── graceful-fs@4.1.11

├── image-size@0.5.5

├── mime@1.6.0

├── source-map@0.5.7

├── errno@0.1.6 (prr@1.0.1)

├── mkdirp@0.5.1 (minimist@0.0.8)

├── promise@7.3.1 (asap@2.0.6)

└── request@2.81.0 (is-typedarray@1.0.0, aws-sign2@0.6.0, oauth-sign@0.8.2, forever-agent@0.6.1, tunnel-agent@0.6.0, stringstream@0.0.5, caseless@0.12.0, isstream@0.1.2, json-stringify-safe@5.0.1, safe-buffer@5.1.1, performance-now@0.2.0, extend@3.0.1, aws4@1.6.0, uuid@3.1.0, qs@6.4.0, combined-stream@1.0.5, tough-cookie@2.3.3, form-data@2.1.4, mime-types@2.1.17, hawk@3.1.3, http-signature@1.1.1, har-validator@4.2.1)

maybe less incompatible version ?

I had no CSS in Odoo 11, and I had to `npm uninstall -g less` (make sure 'which lessc' fails, I had two versions!) and recreate the odoo database, see here for more details: https://github.com/OCA/ansible-odoo/issues/85

Najlepsza odpowiedź

I had no CSS in Odoo 11, and I had to `npm uninstall -g less` (make sure 'which lessc' fails, I had two versions!) then reinstall the right version (personally I used the ansible role, but you can do it by hand) and recreate the odoo database, see here for more details: https://github.com/OCA/ansible-odoo/issues/85

To rebuild the JS/CSS assets, run:


DELETE FROM ir_attachment WHERE datas_fname SIMILAR TO '%.(js|css)';
DELETE FROM ir_attachment WHERE name='web_icon_data';

Awatar
Odrzuć
Najlepsza odpowiedź

did you install any modules that are not for odoo10? That can cause the problem, you just need to delete it. I had a problem with no icons or css and in my case the problem was that I had a zip file in the customaddons folder. It probably tried to load it as a module. :) I just deleted it, restarted odoo and everything worked again. 

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
paź 19
7677
0
sty 18
4784
1
maj 17
9534
1
mar 23
6306
3
gru 19
9930