Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
4822 Lượt xem

Hi,

I've clonned a database to another server and copied over the attachments from the original environment under /home/odoo/.local/share/Odoo/filestore on the new environment. So far so good, the old attachments are visible from the clonned application, but when I try to create new attachments these are simply not stored in the corresponding OS-ubuntu 14.04 folder and I get the following error message:

OSError: [Errno 2] No such file or directory

The attachment referenced in the error message has actually not been created. The 'document' addon is installed in the system.

Do you have some kind of guide or steps to follow to clone an environment attachments included?

Thanks in advance.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

777 can be a not-so-good temporary solution. Check if the user who is running the instance (i.e. "odoo" ) has enough right to read/write the file. This is what you will need. For example, 755 should be good. Of course, owner of the share should be that user. Perhaps you copied as root, and this is the problem.

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks for the observation Daniel, I agree with you.

This was my problem. Copied filestore as root. Thanks.

Tác giả Câu trả lời hay nhất

FYI: had to apply 777 permissions to fix the issue

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 12 24
1511
1
thg 3 23
6723
2
thg 4 22
4173
0
thg 10 21
2678
2
thg 5 20
12259