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.

0

Backup Database Odoo Client Security Error? Anyone know why?

By
John Baldwin
on 1/30/15, 8:04 PM 1,538 views

I'm running Odoo on ubuntu using nginx as a reverse proxy to serve different databases on various subdomains. (sub of my primary)
Backups have never triggered an error before but now I get this:

Odoo Client Error
Uncaught SecurityError: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin "https://mysubdomain.mydomain.com" from accessing a cross-origin frame.
-----------------------------------------------------------------------------------------------------------https://mysubdomain.mydomain.com/web/static/src/js/core.js:447
 

And it still performs the backup. Additionally when I try to restore the backup I get restored success followed by restore failed, but the restore seems to be intact? I have no idea what this is and need some help to identify the problem.

0
John Baldwin
On 2/1/15, 2:00 PM

So this ended up being a conflict in my NGINX configuration. 

Had this: add_header X-Frame-Options DENY;

needed this: add_header X-Frame-Options SAMEORIGIN;

Stupid mistake on my part.

1

zbik

--zbik--
5941
| 6 4 7
Lodz, Poland
--zbik--


zbik
On 1/31/15, 8:36 AM

Probably you have problem with access right in folder data_dir (defined in odoo sever config). Backup method has changed. See this commit and later. Now backup contains/read files from this path.

Nice catch on the commit. I missed that one.

Stephen Mack
on 1/31/15, 8:40 AM

So how do you fix this in config file? I have updated Odoo so you are probably right but I have no idea how to fix it. Thanks for the help.

John Baldwin
on 1/31/15, 1:58 PM

Not in config, in data_dir .... chown -R odoo.odoo XXX (data_dir = XXX, in standard XXX=/var/lib/odoo) ... chmod -R 755 XXX

zbik
on 1/31/15, 2:46 PM

PS. 775 for dirs and 664 for files

zbik
on 1/31/15, 2:57 PM

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

1 follower(s)

Stats

Asked: 1/30/15, 8:04 PM
Seen: 1538 times
Last updated: 3/16/15, 8:10 AM