Answer a question

I have installed Odoo8 and it is running with Nginx.

When I access to the URL where Odoo is supposed to run, I only see the black topbar with no menus, the rest of the page is empty.

The log spits out this error:

Traceback (most recent call last): File "/opt/odoo/odoo_8/src/OCA/OCB/openerp/http.py", line 544, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/odoo/odoo_8/src/OCA/OCB/openerp/http.py", line 581, in dispatch result = self._call_function(**self.params) File "/opt/odoo/odoo_8/src/OCA/OCB/openerp/http.py", line 318, in _call_function return self.endpoint(*args, **kwargs) File "/opt/odoo/odoo_8/src/OCA/OCB/openerp/http.py", line 810, in call return self.method(*args, **kw) File "/opt/odoo/odoo_8/src/OCA/OCB/openerp/http.py", line 410, in response_wrap response = f(*args, **kw) File "/opt/odoo/odoo_8/src/linked-addons/web/controllers/main.py", line 591, in bootstrap_translations if http.addons_manifest[addon_name].get('bootstrap'): KeyError: 'web'

I checked that I have module web at the mentioned path, with the right permissions and the right owner. I was not able to find a solution for this problem.

Anyone experienced the same situation? I think it can be a problem of Nginx (because recently I made several Odoo 8 installations in different servers and following exactly the same steps in each one, but the other ones did not use Nginx).

I paste here the configuration of the Nginx site of Odoo:

server_tokens off;

server {
    server_name my.server.name.com;

    large_client_header_buffers 16 8m;
    client_max_body_size        200m;

    location / {
      proxy_pass            http://127.0.0.1:8069;
      proxy_buffers         16 8m;
      proxy_buffer_size     8m;
      proxy_set_header      X-Forwarded-Host  $host;
      proxy_set_header      X-Real-IP $http_x_real_ip;
      proxy_set_header      X-Forwarded-Proto https;
      proxy_connect_timeout 600;
      proxy_send_timeout    600;
      proxy_read_timeout    600;
      send_timeout          600;

      location ~ ^/(.*)/static/(.*) {
        alias /opt/odoo/odoo_8/src/linked-addons/$1/static/$2;

        expires +30d;
        access_log    off;
        log_not_found off;
      }
    }
}

Any suggestion or idea will be appreciated.

Answers

Well, I do not have idea why, but it is fixed. What I did:

  1. I removed all the Odoo modules I had downloaded from GitHub.
  2. I downloaded then again (exactly like I did the first time).
  3. I restarted Odoo service.
  4. This time I got two errors instead of one. One was the KeyError: 'web', like earlier, the other one was asking for Wand package.
  5. I installed Wand: pip install Wand
  6. After refreshing, same situation, two errors, but the other one this time was asking for MagickWand.
  7. I installed it: apt-get install libmagickwand-dev
  8. After refreshing, again, two errors, this time Odoo was asking for pycoda.
  9. I installed pycoda: pip install pycoda
  10. I restarted Nginx and Odoo services, just in case, and it worked. No more errors.

I cannot explain why the log did not tell me anything about the other errors in the first installation, and it only noticed me about the KeyError: 'web'.

Logo

开发云社区提供前沿行业资讯和优质的学习知识,同时提供优质稳定、价格优惠的云主机、数据库、网络、云储存等云服务产品

更多推荐