Edi Santoso
Odoo and Python Developer
drink a tea to enjoying the life

odoo error IOError: [Errno 2] No such file or directory read file

Pernahkah ketika membuka odoo tiba loading terhenti dan ketika di cek di log ternyata dapat error seperti

Traceback (most recent call last):
  File "/home/me/odoo-dev/odoo-latest/openerp/addons/base/ir/ir_attachment.py", line 105, in _file_read
    r = open(full_path,'rb').read().encode('base64')
IOError: [Errno 2] No such file or directory: u'/home/me/.local/share/Odoo/filestore/odoo9_ku/92/92d9f2d4bf7ab787c66fa0a6ffbd7d242d58aa90'


untuk membenahi error tersebut yaitu dengan menghapus file data di database,

buka postgresql

psql -U postgres

postgres=# \c odoo9_ku

odoo9_ku=# delete from public.ir_attachment where store_fname like '%LOG ENCRYPTED DARI PESAN ERROR%'

contoh seperti log error yang saya kasih warna merah di atas

kemudian lakukan restart server odoo, dan refresh browser mu