Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    "Could not save message" when sending mail with attachment

    Kopano Groupware Core
    3
    7
    480
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • bcnx71
      bcnx71 last edited by

      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

      umgfoin 1 Reply Last reply Reply Quote 0
      • bcnx71
        bcnx71 last edited by

        Anyone got a clue?

        1 Reply Last reply Reply Quote 0
        • umgfoin
          umgfoin @bcnx71 last edited by

          @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 case errno == 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.

          bcnx71 1 Reply Last reply Reply Quote 0
          • bcnx71
            bcnx71 @umgfoin last edited by

            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

            thctlo umgfoin 2 Replies Last reply Reply Quote 0
            • thctlo
              thctlo @bcnx71 last edited by

              @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 grommunio

              I 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) .

              1 Reply Last reply Reply Quote 0
              • umgfoin
                umgfoin @bcnx71 last edited by

                @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.

                bcnx71 1 Reply Last reply Reply Quote 0
                • bcnx71
                  bcnx71 @umgfoin last edited by

                  @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

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post