Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
5470 Представления

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.

Аватар
Отменить
Автор Лучший ответ

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.

Аватар
Отменить
Лучший ответ

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.

Автор

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