Hello Forum
When i try to create a new product, i can create it and give name and so on, but at the same time i get an error in log :
2024-03-08 12:51:05,240 756 INFO magnatek01_backup_test odoo.addons.base.models.ir_attachment: _read_file reading /root/.local/share/Odoo/filestore/magnatek01_backup_test/18/18e5b7790a8b6d75909b7e39b2e4a6f04b112528
Traceback (most recent call last):
File "/opt/odoo/odoo/api.py", line 805, in get
field_cache = field_cache[record.env.cache_key(field)]
KeyError: (None, None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo/odoo/fields.py", line 994, in __get__
value = env.cache.get(record, self)
File "/opt/odoo/odoo/api.py", line 809, in get
raise CacheMiss(record, field)
odoo.exceptions.CacheMiss: 'ir.attachment(3116,).datas'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo/odoo/api.py", line 805, in get
field_cache = field_cache[record.env.cache_key(field)]
KeyError: (None,)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo/odoo/ir_attachment.py", line 105, in _file_read
with open(full_path, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.local/share/Odoo/filestore/magnatek01_backup_test/18/18e5b7790a8b6d75909b7e39b2e4a6f04b112528'
This error code is on the test server but the same one comes on the live server.
I have both looked on my test server/database and on the live server, and they are missing the same files.
I dont think that the live server has been shutdown, where someone/error could have been deleted it.
But what can i do now? can i create the file my self? or can i get odoo to do it?
For those seeing this just ignore, since i could just remove it from ir_attachment since it was only favicon