1
votes

I've installed Odoo (version 8.0) on an Ubuntu 14.04 server. Pretty much out of the box (I only set the admin password), I can create databases, but when I try to do anything else, I just get a mostly-blank screen and a Javascript error (openerp.init is not a constructor in Firefox, undefined is not a function in Chrome/Safari). The "settings" menu option does show up, but does not do anything (obviously, given the fact that the Javascript doesn't work).

The database does get created (I can see it in the postgres database). The login screen also shows up (but logging in gives me the same error again), and the 'manage databases' link on it does still work. I can create additional databases, drop them, all of that works. I just can't actually do anything with the databases.

I've looked around in the Odoo documentation, but I can't find anything. Looking online for the error itself, I only get people who've caused this by installing add-ons (I didn't), or who say you can fix this by dropping the databases (it doesn't work), or using a different browser (none of Safari, Firefox, and Chrome work).

It also sometimes simply hangs trying to load one of the Javascript files (with names like web/js/web.assets_backend/fa4f621).

Information:

3

3 Answers

0
votes

I had the same problem a time ago and I had solved that this way:

Check that you're executing the Odoo service using the file odoo.py (do not execute openerp-gevent neither openerp-server). In your browser, remove all the cookies stored at the URL you're using for Odoo, and then, restart the service:

sudo fuser -k your_port/tcp
python your_odoo_path/odoo.py -c your_config_file_path --update=all -d your_database_name
0
votes

I've just had the same issue with a production install of Odoo. It seems to be a mixture of issues all collaborating together. Here are the steps I followed (I'm not 100% sure if all steps are required):

  • Clear browser cookies/cache/local website data on local machine's browser (clearing cache only did not work).
  • Delete (and backup!) session data from /opt/odoo/.local/share/Odoo/sessions
  • Complete reinstall of Odoo (re-cloning Odoo from github did not work - I had to launch a new AWS instance).
  • I suspect it might also be possible to 'clean' the postgres databases if you'e uncomfortable with a full reinstall.

This is an old topic but I'm posting here for future reference.

Just for clarity's sake, my issue was caused by one of our staff members refreshing the browser while in the Odoo POS. There were no errors in the log file, and resulted in the behavior seen in OP's screenshots. It seems that a session was corrupted, then stored in the database somehow.

0
votes

It's a little bit late for this answer but for future users reading... This seems to be an Odoo unsolved issue (happened to me with Odoo 12). There is a few ("official") workarounds from the issue thread on GitHub (you don't need to reinstall everything!!):

1- quick fix: DELETE FROM ir_attachment WHERE url LIKE '/web/content/%';

2- If it doesn't work, try cleaning browser cache and retry.

3- If it doesn't work, just delete the db and postgresql user and recreated it.

Recreating the DB usually works.

I now all of this are workarounds, but so far, this issue haven't been solved by Odoo team.

You can track the issue on GitHub