Odoo Help


Backup Database Odoo Client Security Error? Anyone know why?

John Baldwin
on 1/30/15, 8:04 PM 2,330 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.

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.

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.



| 6 5 7
Lodz, Poland

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

on 1/31/15, 2:46 PM

PS. 775 for dirs and 664 for files

on 1/31/15, 2:57 PM

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


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