Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda

Hello world :)

I am using odoo inside of docker. And I had a typo inside of my docker-compose.yml (which I did not notice until now):

    volumes:
      - odoo-web-data:/var/llib/odoo

The Installation was running fine as all the data just lived in an anonomous volume instead....

{
   "Type":"volume",
   "Name":"5e975261de8f22a61b9f2a577e65b35cf38f3b49dcf1369853842aaa835dfd57",
   "Source":"/var/lib/docker/volumes/5e975261de8f22a61b9f2a577e65b35cf38f3b49dcf1369853842aaa835dfd57/_data",
   "Destination":"/var/lib/odoo",
   "Driver":"local",
   "Mode":"z",
   "RW":true,
   "Propagation":""
}

{
   "Type":"volume",
   "Name":"odoo_odoo-web-data",
   "Source":"/var/lib/docker/volumes/odoo_odoo-web-data/_data",
   "Destination":"/var/llib/odoo",
   "Driver":"local",
   "Mode":"z",
   "RW":true,
   "Propagation":""
}

Doing some routine server work i pruned away all unused anonomous volumes on my docker host. Unfortunately THIS TIME the odoo stack was not running when I pruned the volumes, which means the anonomous volume (currently unused) containing the correct /var/lib/odoo folder now lives in /dev/null......

I have sucessfully recovered from that by reinstalling some of the base modules and as the database is still fine Its running as usual now.

The only problem left are my file attachments. Fortunatly thats only 3 Invoices that I send out. Everytime I load an old invoice I get an error from the pdf preview as it tries to load the invoice I sent which is not found on disk...

FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/odoo/.local/share/Odoo/filestore/companyname/63/6310e246fa4d33eb96030101813eabd91122f4ff'

So, does anyone know of a way to "import" the pdfs (which I still have) and update the old file references in the database to point to that one? I have read somewhere that the files are stored base64 encoded, so could I just write the file to the asset path and encrypt it using base64? Is there any special algorithm involved in creating checksums or something I should know of?

Any help is apreciated, Thank you :)

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Nov 24
6638
3
Nov 24
2960
5
Okt 24
8076
1
Mei 24
1390
2
Okt 23
6250