"Could not save message" when sending mail with attachment
-
Hi all,
using Kopano 10.0.1.156 on Centos 7.9. When I send a message with an attachment I get in Webapp the message “Could not save message”. In server.log I get:
K-1281: create /var/lib/kopano/attachments/18/d1/dd3d8a947a6e: File exists
This file is present and has a size of 0.
The mail is sent, but it misses the attachment.
How can I fix this?
Cheers,
BC -
Anyone got a clue?
-
@bcnx71 said in "Could not save message" when sending mail with attachment:
K-1281: create /var/lib/kopano/attachments/18/d1/dd3d8a947a6e: File exists
According to source ECAttachmentStorage.cpp, I’d assume, your k.-server is trying to write an attachment-file to a location, where leftovers from a former (or partially restored or damaged …) kopano data-instance were found: By default, kopano-server offloads attachment-data in the filesystem rather keeping them in the database.
The server is designed to not overwrite existing attachment-files, even if they shouldn’t be there.
This errorcode (K-1281) should be rather specific as it explicitely catches the caseerrno == EEXIST
during a fileopen operation.[...] } else if (errno == EEXIST) { /* * Possibly old /var/lib/kopano/attachments with a * blank DB having accidentally the same server_guid. */ ec_log_warn("K-1281: create %s: %s", hl.holder_ref.c_str(), strerror(errno)); break;
++umgfoin.
-
Hi @umgfoin
thanks. I removed all attachments with sizes 0 and then it seems to work for a bit, but the problem reappears, new attachments files with a size of 0 are created.
In the ned I decided to configure a new server with the latest Kopano version. This seems to work now.
I’m a 1 person company, I wish you could buy single licenses, that way I could get official support.Cheers,
BC
-
@bcnx71 Since Kopano is lacking update and info…
And your only a 1 user company. https://grommunio.com/ free upto 5 users.its really sad, im a over 15y zarafa/kopano user and i have 2 option.
Or start with own compiled packages or switch to grommunioI dont know that they are doing, i do see updates on git, but nothing is pushed to autobuilders or updated to ( in my case, waiting for debian Bullseye) .
-
@bcnx71 said in "Could not save message" when sending mail with attachment:
but the problem reappears, new attachments files with a size of 0 are created.
Do you have other meaningful entries in the logs (e.g. at log-level debug)?
Did you check your access-permissions in /var/lib/kopano/attachments for the kopano-server user?
++umgfoin. -
nothing besides the “K-1281: create /var/lib/kopano/attachments/18/d1/dd3d8a947a6e: File exists” message. I did not enable debugging.
I did check the permissions, they were all right. Files were created so those must have been correct. For some reasons the files were 0 bytes large for some reason.
Anyway, the problem was solved by installing a new Kopano instance and transferring all mails with impasync,
cheers,
BC