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

no CSS after installing Odoo11 Enterprise #58

Closed
khansch opened this issue Oct 12, 2017 · 53 comments
Closed

no CSS after installing Odoo11 Enterprise #58

khansch opened this issue Oct 12, 2017 · 53 comments

Comments

@khansch
Copy link

khansch commented Oct 12, 2017

After installing with your script on ubuntu 16.04 I get no css and the -u all attempt did not work. the server just does not do anything after the command.

image

2017-10-12 15:01:25,394 17118 INFO ? odoo: database: default@default:default
2017-10-12 15:01:25,400 17118 INFO ? odoo.service.server: HTTP service (werkzeug) running on 0.0.0.0:8070
2017-10-12 15:01:25,451 17118 INFO ? odoo.addons.base.ir.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf
2017-10-12 15:01:36,621 17118 INFO ? odoo.http: Generating nondb routing
2017-10-12 15:01:36,705 17118 INFO ? werkzeug: 93.237.107.48 - - [12/Oct/2017 15:01:36] "GET /web/database/selector HTTP/1.1" 200 -
2017-10-12 15:01:36,761 17118 INFO ? werkzeug: 93.237.107.48 - - [12/Oct/2017 15:01:36] "GET /web/static/lib/bootstrap/css/bootstrap.css HTTP/1.1" 404 -
2017-10-12 15:01:36,762 17118 INFO ? werkzeug: 93.237.107.48 - - [12/Oct/2017 15:01:36] "GET /web/static/lib/fontawesome/css/font-awesome.css HTTP/1.1" 404 -
2017-10-12 15:01:36,762 17118 INFO ? werkzeug: 93.237.107.48 - - [12/Oct/2017 15:01:36] "GET /web/static/lib/bootstrap/js/tooltip.js HTTP/1.1" 404 -
2017-10-12 15:01:36,762 17118 INFO ? werkzeug: 93.237.107.48 - - [12/Oct/2017 15:01:36] "GET /web/static/lib/jquery/jquery.js HTTP/1.1" 404 -
2017-10-12 15:01:36,763 17118 INFO ? werkzeug: 93.237.107.48 - - [12/Oct/2017 15:01:36] "GET /web/static/lib/bootstrap/js/modal.js HTTP/1.1" 404 -
2017-10-12 15:01:36,777 17118 INFO ? werkzeug: 93.237.107.48 - - [12/Oct/2017 15:01:36] "GET /web/static/lib/bootstrap/js/dropdown.js HTTP/1.1" 404 -
2017-10-12 15:01:36,800 17118 INFO ? werkzeug: 93.237.107.48 - - [12/Oct/2017 15:01:36] "GET /web/static/lib/bootstrap/js/modal.js HTTP/1.1" 404 -
2017-10-12 15:01:36,812 17118 INFO ? werkzeug: 93.237.107.48 - - [12/Oct/2017 15:01:36] "GET /web/static/src/img/logo2.png HTTP/1.1" 404 -
2017-10-12 15:01:36,836 17118 INFO ? werkzeug: 93.237.107.48 - - [12/Oct/2017 15:01:36] "GET /web/static/lib/bootstrap/js/tooltip.js HTTP/1.1" 404 -
2017-10-12 15:01:36,873 17118 INFO ? werkzeug: 93.237.107.48 - - [12/Oct/2017 15:01:36] "GET /web/static/lib/bootstrap/js/dropdown.js HTTP/1.1" 404 -
2017-10-12 15:01:36,919 17118 INFO ? werkzeug: 93.237.107.48 - - [12/Oct/2017 15:01:36] "GET /web/static/src/img/logo2.png HTTP/1.1" 404 -
2017-10-12 15:01:40,790 17118 INFO ? werkzeug: 93.237.107.48 - - [12/Oct/2017 15:01:40] "GET /web/database/selector HTTP/1.1" 200 -
2017-10-12 15:01:40,829 17118 INFO ? werkzeug: 93.237.107.48 - - [12/Oct/2017 15:01:40] "GET /web/static/lib/fontawesome/css/font-awesome.css HTTP/1.1" 404 -
2017-10-12 15:01:40,851 17118 INFO ? werkzeug: 93.237.107.48 - - [12/Oct/2017 15:01:40] "GET /web/static/lib/bootstrap/js/modal.js HTTP/1.1" 404

@Yenthe666
Copy link
Owner

Thanks for your report! What happens when you add ?debug=assets to the URL? Does the Odoo fully render then?

@khansch
Copy link
Author

khansch commented Oct 12, 2017

no, no changes at all. Its weird.

@chris001
Copy link

chris001 commented Oct 12, 2017

The 404 error is possibly because of incorrect ownership of the static CSS files.
chown -R odoo. * should fix it.

@Yenthe666
Copy link
Owner

They should be correct by default with the script though..

@vigermam
Copy link

as I mentioned in the other issue. you kinda need to tick the system to get it working. #55 , look my notes there.

@Yenthe666
Copy link
Owner

@vigermam that is a workaround, not a solution to the issue of the script or the source though. I'd like to pinpoint that in order to fix it for everybody.

@vigermam
Copy link

@Yenthe666 i just thought that might help anyone need to get it working at this very moment. or might help you to find where things might be broken. Thanks so much for the great work! 👍

@Yenthe666
Copy link
Owner

Absolutely! 😉 I hope I can pinpoint the source problem soon. Thank you!

@khansch
Copy link
Author

khansch commented Oct 13, 2017

Awesome guys... thanks for the commitment! Very much appreciated!!! Thanks a lot. Keep us updated.

@Yenthe666
Copy link
Owner

We'll get there! I believe the dependencies are a bit different on the different Linux flavours. Some of them have dependencies out of the box and some don't. This problem looks bigger in the latest version than the other ones.

@khansch
Copy link
Author

khansch commented Oct 13, 2017

Thanks Yenthe. Keep me updated. I wonder why Odoo doesn't have a skript or a howto to install the EE - the version that makes them money.......

@Yenthe666
Copy link
Owner

@khansch I guess they have this: https://www.odoo.com/documentation/11.0/setup/install.html
I don't really like it but I may be biased 😉

@khansch
Copy link
Author

khansch commented Oct 13, 2017

This howto sucks. already the link to the download of enterprise edition does not work, even though I am a subscribed member to EE 11. So I hope you have a solution to the problem soon. 👍

@khansch
Copy link
Author

khansch commented Oct 13, 2017

Still no change. Tried another dependency, but no effect. Still no CSS. :-(

@chris001
Copy link

@Yenthe666
Where are you getting the dependencies list from?
Is it from here?:
https://nightly.odoo.com/11.0/nightly/deb/Packages

Depends: init-system-helpers (>= 1.18~), python3-babel, python3-dateutil, python3-decorator, python3-docutils, python3-feedparser, python3-gevent, python3-html2text, python3-jinja2, python3-lxml, python3-mako, python3-mock, python3-ofxparse, python3-passlib, python3-pil, python3-psutil, python3-psycopg2, python3-pydot, python3-pyparsing, python3-pypdf2, python3-reportlab, python3-requests, python3-serial, python3-tz, python3-usb, python3-vatnumber, python3-werkzeug, python3-xlsxwriter, python3-yaml, python3:any (>= 3.3.2-2~), adduser, lsb-base, node-less, postgresql-client, python3-suds
Recommends: postgresql, python3-pyldap, python3-qrcode, python3-vobject
Conflicts: openerp, openerp-server, openerp-web, tinyerp-server
Replaces: openerp, openerp-server, openerp-web, tinyerp-server

@Yenthe666
Copy link
Owner

From the Github repository its requirements (https://github.com/odoo/odoo/blob/11.0/requirements.txt)

@chris001
Copy link

OK, maybe odoo team made a tiny mistake, maybe there is a dependency in the debian Packages list which was left out, by mistake, from the python requirements.txt. It's a small chance, but it's possible, so it should be double checked, just to be sure.

@khansch
Copy link
Author

khansch commented Oct 15, 2017

Guys, do you have any news? Still no way to get odoo11 installed properly. Thanks for your help.

@Yenthe666
Copy link
Owner

I don't have access to a computer at the moment. It is high on my priority list so I'll setup new servers with new tests this monday or tuesday. Sorry for the delay guys.

@Yenthe666
Copy link
Owner

Hi all,

I've made a new Ubuntu 16.04.3 server and ran both the community and the enterprise installation script. Both worked fine out of the box without any extra configuration or installations.
So either there is another version that gives problem or I'm really missing something.

@chris001
Copy link

chris001 commented Oct 17, 2017

@khansch
(From issue #55 )
What happens when you do:

  1. sudo service odoo-server stop (just to be sure nothing is running)
  2. cd /odoo/odoo-server
  3. sudo su odoo
  4. ./odoo-bin -c /etc/odoo-server.conf

@khansch
Copy link
Author

khansch commented Oct 22, 2017

@Yenthe666 Is the chat in your installation working correctly? We got odoo installed by our technical partner, but the chat it not working properly. If you type something in, it does not appear. If you refresh the browser, it appears.

Thanks for your help.

@chris001
Copy link

@khansch
Try chat on https://demo2.odoo.com/web#home for comparison.

@khansch
Copy link
Author

khansch commented Oct 22, 2017

hey chris, URL not found.
I mean the chat inside of odoo. Thanks for your help!

@chris001
Copy link

@khansch
What I meant is, try out the chat on the "Odoo Free Trial" and see if that works properly in your browser - without refreshing your browser page.
https://accounts.odoo.com/trial

@Yenthe666
Copy link
Owner

Indeed - try to reproduce it on a runbot or official instance. This could also be a configuration issue with SSL / Nginx forwarding for example.

@TornikeOdikadze
Copy link

I installed Odoo11 by package installers on CentOS7.
Css is not working after logging in.

@chris001
Copy link

@TornikeOdikadze

  1. Is it community or enterprise?
  2. Post output from running install script?
  3. Post logs while running (see comment above 27 days ago for how to)?

@alexx-alexx
Copy link

For those how did the trick... Why not to share .ova of VM?
Script doesn't work. No css.

@chris001
Copy link

@alexx-alexx @TornikeOdikadze

  1. What happens when you add ?debug=assets to the URL in the address line of the browser? Does the Odoo 11 fully render the CSS then?
  2. What happens when you start Odoo 11 server this way, and watch the terminal for errors:
sudo service odoo-server stop # just to be sure odoo service stops
cd /odoo/odoo-server
sudo su odoo
./odoo-bin -c /etc/odoo-server.conf

Post back your results.

@liao0007
Copy link

liao0007 commented Feb 2, 2018

Same problem here, Odoo 11 community edition.

installed from package on Ubuntu, tested without proxying.
All css files except few are not able to load properly, giving out 404 and no error in odoo-server.log.

screen shot 2018-02-02 at 18 08 46

@chris001
Copy link

chris001 commented Feb 2, 2018

@liao0007
Which URL you download install script from

@liao0007
Copy link

liao0007 commented Feb 3, 2018

@chris001

I installed via package manager.

“apt-get install odoo” following the official installation guild.

I also tried to install via source by pulling latest version from github, with same problem.

It could by something wrong with the system environment but I don’t know where to trace.

@chris001
Copy link

chris001 commented Feb 3, 2018

@liao0007
Can you

  1. remove the odoo installed via package manager,
  2. remove the odoo installed via source from github,
  3. Install with my "big update" install script:
cd ~
rm odoo_install.sh
wget https://github.com/chris001/InstallScript/raw/patch-2/odoo_install.sh
chmod +x odoo_install.sh
./odoo_install.sh
  1. verify that odoo-server service is status (running).
  2. open another terminal, to watch for errors in system environment with this command:
tail -f /var/log/odoo/odoo-server

@liao0007
Copy link

liao0007 commented Feb 5, 2018

@chris001

It helps, thank you.

I think virtualenv did the work.

@aliomattux
Copy link

Just wanted to throw in my success. I had this same issue and it was because I declared an invalid folder path for an additional addon directory for extra modules. I created the directory and everything works. It seems like when an initial request is made to the server it validates the existence of all addons path and fails silently

@chris001
Copy link

@aliomattux
This is true. When there's an non-existent directory in the addons_path, Odoo 11 fails to produce any output on the user's browser at runtime.
This is an Odoo bug that should be fixed.
When there's a non-existent directory in the linux path, the linux kernel doesn't fail.

@FlyingPigSolutions
Copy link

@chris001
Hello Chris,
I opened an issue that look similar #23468 and after trying so many things to make it work without success:

  • giving rights chown -R
  • update python to 3.6 version
  • postgresql config from md5 to trust
  • checked my paths (well it was working perfectly fine for 2 month and we didn't change it) in odoo-server.conf

I am thinking of reinstalling my Odoo.
However, I have a database running for 2 months of data. I wouldn't like to loose it.
Can I follow the step mentioned and reinstall independently of the database ?
cd ~ rm odoo_install.sh wget https://github.com/chris001/InstallScript/raw/patch-2/odoo_install.sh chmod +x odoo_install.sh ./odoo_install.sh

@chris001
Copy link

chris001 commented Mar 5, 2018

@FlyingPigSolutions

  • To be safe, you really should save a backup file containing your data currently stored in the odoo database, and upload it to a secure cloud account on a different machine than the odoo server, doing this will protect your data, in case of an unexpected event occurs:
    sudo pg_dump -U user_name database_name > backup_file
  • This install script only installs (or reinstalls) the app and all its required dependencies + optional nginx web server + secure LE HTTPS cert.
  • To answer your question, when you run the install script again, your data should remain untouched, the only thing updated on the database is the normal "database schema update" to match the new version of the Odoo code.
  • Depending on if your odoo_install.sh is new enough, you can update itself to the newest version, in just one command: ./odoo_install.sh --self-update
  • EDIT: You can also upgrade only the odoo code, with: ./odoo_install.sh --upgrade

@FlyingPigSolutions
Copy link

Thank you @chris001
Very useful to know although in my case it didn't do the trick.

just tried
Unless I missed a restart action (I'll try to reboot the server too)
Problem still running unfortunately for me but really appreciate your detailed help.

@FlyingPigSolutions
Copy link

@chris001 Still trying to figure it out my issue that might be related to this one.

Here is my result:

odoo@DOMAIN:~/odoo-server$ ./odoo-bin -c /etc/odoo-server.conf
Traceback (most recent call last):
File "./odoo-bin", line 8, in
odoo.cli.main()
File "/odoo/odoo-server/odoo/cli/command.py", line 60, in main
o.run(args)
File "/odoo/odoo-server/odoo/cli/server.py", line 175, in run
main(args)
File "/odoo/odoo-server/odoo/cli/server.py", line 124, in main
odoo.tools.config.parse_config(args)
File "/odoo/odoo-server/odoo/tools/config.py", line 334, in parse_config
odoo.netsvc.init_logger()
File "/odoo/odoo-server/odoo/netsvc.py", line 95, in init_logger
resetlocale()
File "/odoo/odoo-server/odoo/tools/translate.py", line 1183, in resetlocale
for ln in get_locales():
File "/odoo/odoo-server/odoo/tools/translate.py", line 1152, in get_locales
lang = locale.getdefaultlocale()[0]
File "/usr/lib/python3.5/locale.py", line 558, in getdefaultlocale
return _parse_localename(localename)
File "/usr/lib/python3.5/locale.py", line 486, in _parse_localename
raise ValueError('unknown locale: %s' % localename)
ValueError: unknown locale: UTF-8

I'll try also what you suggested above early february

@chris001
Copy link

chris001 commented Mar 6, 2018

@FlyingPigSolutions Looks like your installation is displaying an unknown locale UTF-8 issue.
My "big update" version of odoo_install.sh script should fix this locale issue.
Try and report back your results here.

@FlyingPigSolutions
Copy link

FlyingPigSolutions commented Apr 28, 2018

Hello @chris001 I tried to send you a mail through your website but the contact page wasn't working.
Can you send me your email please. I would like to ask you something but not in public.

@chris001
Copy link

@FlyingPigSolutions
Contact is firstname (at) (website dot com)

@maximilienvicidomini06
Copy link

Hello All I still have the issue could someone help me ?
capture d ecran

@xabispacebiker
Copy link

I had the same problem and in my case was a wrong addons_path in /etc/odoo/odoo.conf.

@AbdulghaniFawzi
Copy link

AbdulghaniFawzi commented Nov 28, 2018

This could also be a configuration issue with SSL / Nginx forwarding for example.

if ssl forwarding did this error, what will be the solution
@Yenthe666

@Yenthe666
Copy link
Owner

Depends on what the issue is, I'm totally going to guess it is due to a missing dependency or wrong addons_path though. I'd check those two first. I've never had these issues and installed dozens of Odoo's.

@AbdulghaniFawzi
Copy link

i already have this error before enable ssl all things is good, after enable ssl with apache this error appear
if i return to the first point by disable ssl the error still
@Yenthe666

@Yenthe666
Copy link
Owner

Then your configs are wrong basically

@AbdulghaniFawzi
Copy link

@Yenthe666
can you give me the standard steps to check my configs

@Yenthe666
Copy link
Owner

Sorry but I never use apache, it is really outdated. You should look at better alternatives such as Nginx (where loads of tutorials and info can be found for too) :)

@oberak
Copy link

oberak commented Dec 21, 2018

I got the same problem on Ubuntu 18.04 & Odoo 12.0
in my case i didn't make custom addon folder.

In console.
2018-12-21 06:33:06,994 4448 INFO ? odoo: addons paths: ['/opt/odoo/.local/share/Odoo/addons/12.0', '/opt/odoo/odoo12/addons', '/opt/odoo/odoo12-custom-addons', '/opt/odoo/odoo12/odoo/addons']

but I did't make '/opt/odoo/odoo12-custom-addons'
After creating the folder and restarting it works fine.
I don't know why...

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