Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
5488 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ

Nice catch on the commit. I missed that one.

Tác giả

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.

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

PS. 775 for dirs and 664 for files