从其他服务器的数据库拷贝的数据库恢复后可能出现静态文件丢失,导致所有页面的图片都还不能访问,后台会有如下报错
Traceback (most recent call last):
File "/home/ubuntu/Odoo/my_gooderp/openobject/odoo/addons/base/ir/ir_attachment.py", line 100, in _file_read
r = open(full_path,'rb').read().encode('base64')
IOError: [Errno 2] No such file or directory: u'/root/.local/share/Odoo/filestore/wxzy_1108/39/39a7601618d045cf8f8a3e28d71ad1c0f888fdb5'
2019-11-26 06:48:32,184 3914 INFO wxzy_1108 odoo.addons.base.ir.ir_attachment: _read_file reading /root/.local/share/Odoo/filestore/wxzy_1108/8d/8dcb6d04d9c3b7c4641b8498d57b5775a4205f8d
Traceback (most recent call last):
File "/home/ubuntu/Odoo/my_gooderp/openobject/odoo/addons/base/ir/ir_attachment.py", line 100, in _file_read
r = open(full_path,'rb').read().encode('base64')
IOError: [Errno 2] No such file or directory: u'/root/.local/share/Odoo/filestore/wxzy_1108/8d/8dcb6d04d9c3b7c4641b8498d57b5775a4205f8d'
2019-11-26 06:48:32,184 3914 INFO wxzy_1108 odoo.addons.base.ir.ir_attachment: _read_file reading /root/.local/share/Odoo/filestore/wxzy_1108/cf/cfdb3076b153150f95753c3688af9f927adcf1f0
Traceback (most recent call last):
File "/home/ubuntu/Odoo/my_gooderp/openobject/odoo/addons/base/ir/ir_attachment.py", line 100, in _file_read
r = open(full_path,'rb').read().encode('base64')
File "/home/ubuntu/Odoo/my_gooderp/openobject/odoo/addons/base/ir/ir_attachment.py", line 100, in _file_read
r = open(full_path,'rb').read().encode('base64')
IOError: [Errno 2] No such file or directory: u'/root/.local/share/Odoo/filestore/wxzy_1108/75/759750baeacf34eb609b6ba942dbb91933dae03b'
2019-11-26 06:48:32,185 3914 INFO wxzy_1108 odoo.addons.base.ir.ir_attachment: _read_file reading /root/.local/share/Odoo/filestore/wxzy_1108/2a/2afd08acd4914da8d5ae1afcaad519ff7352b65c
Traceback (most recent call last):
File "/home/ubuntu/Odoo/my_gooderp/openobject/odoo/addons/base/ir/ir_attachment.py", line 100, in _file_read
r = open(full_path,'rb').read().encode('base64')
IOError: [Errno 2] No such file or directory: u'/root/.local/share/Odoo/filestore/wxzy_1108/2a/2afd08acd4914da8d5ae1afcaad519ff7352b65c'
2019-11-26 06:48:32,185 3914 INFO wxzy_1108 odoo.addons.base.ir.ir_attachment: _read_file reading /root/.local/share/Odoo/filestore/wxzy_1108/26/26723a290487e3e565da0e332e3e9dbc87eebb1a
Traceback (most recent call last):
File "/home/ubuntu/Odoo/my_gooderp/openobject/odoo/addons/base/ir/ir_attachment.py", line 100, in _file_read
r = open(full_path,'rb').read().encode('base64')
IOError: [Errno 2] No such file or directory: u'/root/.local/share/Odoo/filestore/wxzy_1108/26/26723a290487e3e565da0e332e3e9dbc87eebb1a'
2019-11-26 06:48:32,185 3914 INFO wxzy_1108 odoo.addons.base.ir.ir_attachment: _read_file reading /root/.local/share/Odoo/filestore/wxzy_1108/45/45bff6378331e9a088a96ccbe79a7b36d72876cb
Traceback (most recent call last):
File "/home/ubuntu/Odoo/my_gooderp/openobject/odoo/addons/base/ir/ir_attachment.py", line 100, in _file_read
r = open(full_path,'rb').read().encode('base64')
IOError: [Errno 2] No such file or directory: u'/root/.local/share/Odoo/filestore/wxzy_1108/45/45bff6378331e9a088a96ccbe79a7b36d72876cb'
这应该就是数据库不同的哈希值导致数据库缓存的文件名不对,
对于这种情况,如果没有其他附件的话可以直接更新base模块即可恢复网页基本的图标图片
网友评论