İçereği Atla
Menü
Bu soru işaretlendi
6113 Görünümler

Every time a pod restarts the below error occurs

No such file or directory: '/var/lib/odoo/filestore//e7/e7aa49e28912f86a83133bd5730a9f410d778dff
odoo.exceptions.CacheMiss: 'ir.attachment(13,).raw

I have already mapped volumes so that the filestore data is not lost when the container restarts.
as below:

Deployment extract

    volumeMounts:
        - name: odoo-webdata
          mountPath: /var/lib/odoo
volumes:
    - name: odoo-webdata
      persistentVolumeClaim:
        claimName: odoo-web-data

PersistentVolumeClaim extract

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
    name: odoo-web-data
spec:
    accessModes:
        - ReadWriteOnce
    resources:
        requests:
            storage: 10Gi

odoo.conf extract

[options]
data_dir = /var/lib/odoo

Workaround

I have to delete the record (s) in the attachment table as below, which is annoying and not maintainable. What am i missing ? Thanks

records =  self.env['ir.attachment'].search([])
record.unlink()
self.env.cr.commit()

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
3
Haz 22
6618
1
Haz 24
3449
1
Mar 21
4292
4
Ara 24
18008
2
Ağu 24
5118