Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
We are using the Odoo recruitment module and we we have CVs attached to applicants. When trying to access certain CVs this error keeps appearing:
OSError: [Errno 2] No such file or directory: '/opt/odoo/.local/share/Odoo/filestore/ZHRPM/2d/2d2955a5544e09c59860478be67a5ab5b5aac6f4'
along with the Traceback. This appears to be completely random.
Going through the logs, we came across this:
Traceback (most recent call last):
File "/opt/odoo/odoo/openerp/addons/base/ir/ir_attachment.py", line 135, in _file_write
with open(full_path, 'wb') as fp:
IOError: [Errno 13] Permission denied: u'/opt/odoo/.local/share/Odoo/filestore/ZHRPM/2d/2d2955a5544e09c59860478be67a5ab5b5aac6f4'
Has anyone come across this before? What might be the reason for this to occur? How can we resolve it?
Thanks in advance.
This is due to user permission of the user which runs odoo server, usually the user is "odoo".
You need to change the owner of the filestore folders
1) Check if odoo user is the owner:
user@HOST:~# sudo cd /var/lib/odoo/.local/share/
user@HOST:/var/lib/odoo/.local/share# sudo ls -la
drwx------ 3 root root 4096 Sep 22 2016 .
drwx------ 3 root root 4096 Sep 22 2016 ..
drwx------ 5 root root 4096 Apr 26 18:06 Odoo
2) Change the folder owner to proper user
user@HOST:/var/lib/odoo/.local/share# chown -R odoo: /var/lib/odoo
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 8/12/15, 8:38 AM|
|Seen: 1752 times|
|Last updated: 4/27/17, 6:07 PM|