Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

How do I fix random 404 errors with OpenERP 7 deployed in Apache2 with mod_wsgi?

By
Russell Briggs
on 9/12/13, 12:57 PM 2,227 views

We've deployed OpenERP v7 with Apache2 and mod_wsgi. using the guide on doc.openerp.com.

We have noticed problems where users randomly get 404 errors for static files, for example:

/web/static/src/css/full.css 404

/web/static/src/font/entypo-webfont.ttf 404

This is not a permissions issue, because sometimes the same files that were erroring before are loaded fine. There are no helpful errors logged that I can find.

It seems OpenERP static files are served by werkzeug's SharedDataMiddleware which is not really designed for use in production. I've tried using the latest version of werkzeug but this doesn't seem to have helped.

I guess really there should be an openerp 'collectstatic' command so that static files can be served directly by apache.

From further research it seems most people are running OpenERP v7 as a standalone process with an nginx proxy in front of it, which is probably what I'll do to solve the problem.

Just wondering if anyone else has seen this behaviour and has a fix for it? I would prefer to run OpenERP as a proper apache2 process if possible.

0
Daniel Blanco
On 3/20/15, 7:52 PM

Sorry I can't comment cause of my karma. Russell I see the same behaviour. In my case with Odoo V8. I am using it with apache in proxy mode, but seems the problem have nothing to do with apache;  the same happens if overriding apache, and going directly thu port 8069

Even the db Selector is bad, with styles lost.

Tried Adam solution without results.



Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 9/12/13, 12:57 PM
Seen: 2227 times
Last updated: 3/20/15, 7:52 PM