Skip to Content
Menu
This question has been flagged
1 Reply
2165 Views

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?


Avatar
Discard
Author

For those seeing this just ignore, since i could just remove it from ir_attachment since it was only favicon

Best Answer

To find out more information about this issue you can go to "Settings" > "Technical" > "Attachments" and use a custom filter: ("Stored filename", "contains", "18e5b7790a8b6d75909b7e39b2e4a6f04b112528"). Make sure you have developer mode activated.

Here you will see to which attachment this file is linked. If you open the record you could try for example re-uploading this attachment with a new file. But at least it might point you into the right direction to what causes this problem.

I hope this helps!

Avatar
Discard
Related Posts Replies Views Activity
1
Jul 25
2108
2
Jul 25
7604
2
Jul 25
4042
2
Jul 25
3794
1
Jul 25
6360