從其他服務器的數據庫拷貝的數據庫恢復后可能出現靜態文件丟失,導致所有頁面的圖片都還不能訪問,后臺會有如下報錯
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模塊即可恢復網頁基本的圖標圖片