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

    Wrong indication of read/unread messages

    Kopano Groupware Core
    4
    25
    2074
    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.
    • genesis74
      genesis74 last edited by

      Hi @fbartels,

      those messages are rather small and are consisting of html content only. No plain text part. I will check if I can send one to your support.

      1 Reply Last reply Reply Quote 1
      • genesis74
        genesis74 last edited by

        @fbartels: Since in KC-1417 it is mentioned that the problem might be cache-related I checked the cache settings of my kopano server. For whatever reason, the cache_cell_size setting was commented out. I set the cache_cell_size to 2048M. According to the manual this seems to be a rather high setting in my case, and that new limit obviously has not been reached by far yet (looking at system memory usage). This seems to have helped - no more read/unread problems so far (at least I am unable to reproduce them with this setting).

        1 Reply Last reply Reply Quote 0
        • afischer
          afischer last edited by afischer

          Hi,
          I think we suffer from the same issue.
          Since we updated to Kopano 8.7 last week, users report problems with read/unread messages. Mostly, Outlook 2010 with mapi-client were affected.
          Besides swap-usage grows rapidly, so that we had a crash of kopano-server last week.
          I couldn’t find a pattern so far. Moving all unread messages to a subfolder, marking all remaining elements read and moving back the unread fixed it.
          Best regards,
          Achim

          1 Reply Last reply Reply Quote 0
          • genesis74
            genesis74 last edited by

            After running kopano-server for a few days without interfering (i.e. restarting) I had to do a reboot today. The described problem came up again. Now with emails not having anything obvious in common. Also, IMAP is now affected as well.

            fbartels 1 Reply Last reply Reply Quote 0
            • fbartels
              fbartels Kopano @genesis74 last edited by

              Hi @genesis74 and @afischer,

              while we are still not able to reproduce the effect we have yesterday merged a potential fix for this. I have uploaded a bug containing this fix (along with some other changes reported in 8.7.0) to https://download.kopano.io/supported/core:/pre-final/.

              Can you give this a try and report back if the issue was resolved afterwards?

              Regards Felix

              Resources:
              https://kopano.com/blog/how-to-get-kopano/
              https://documentation.kopano.io/
              https://kb.kopano.io/

              Support overview:
              https://kopano.com/support/

              1 Reply Last reply Reply Quote 0
              • afischer
                afischer last edited by

                Hello Felix,
                I’m unsure how to install the update. Shall I copy my kopano-repo-file and change the url from …final… to …pre-final… and then update the system with this repo enabled?
                Is it sufficient to use kopano-core or do I need any other repo - e.g. kopano-webapp?
                We are running z-push on a different machine, shall I install the updates there, too?
                Best regards,
                Achim

                1 Reply Last reply Reply Quote 0
                • fbartels
                  fbartels Kopano last edited by

                  Hi @afischer,

                  yes you could do it exactly like that. just add another repo file, but this one pointing towards pre-final instead of final. WebApp does not need to be updated for this, your z-push system could most probably also stay on this version.

                  BUT: we know meanwhile that the issue still occurs with this build. Still trying to nail down exact repro steps.

                  Regards Felix

                  Resources:
                  https://kopano.com/blog/how-to-get-kopano/
                  https://documentation.kopano.io/
                  https://kb.kopano.io/

                  Support overview:
                  https://kopano.com/support/

                  1 Reply Last reply Reply Quote 0
                  • afischer
                    afischer last edited by

                    This Bug is very annoying. When can we expect a fix for this?
                    Is it possible to downgrade to the latest working version (8.6.9)?

                    Best regards,
                    Achim

                    1 Reply Last reply Reply Quote 0
                    • genesis74
                      genesis74 last edited by

                      Indeed the problem still persists. The only way I can get rid of those unread flags is:

                      • kopano-admin --reset-folder-count <user>
                      • kopano-srvadm --clear-cache all
                      • mark all messages as read with IMAP client
                      • restart kopano-server

                      It took several iterations of the above mentioned procedure with decreasing numbers of unread-flagged-messages before I managed to have all messages flagged as read via IMAP as well as WebApp. I found no way to manage this without an IMAP client.

                      1 Reply Last reply Reply Quote 0
                      • fbartels
                        fbartels Kopano last edited by

                        Hi @afischer,

                        I have just now uploaded the same build that we run internally to https://download.kopano.io/supported/core:/pre-final/
                        This has a “fix” for emails being truncated after searching for them. the downside of this change is that even though these emails are not truncated any longer, they will only load as plain text.
                        at least on my test system I was still able to observe the mails being shown as unread and up until know I am still missing information to reproduce the missing webapp settings, so this is probably still in there as well.

                        @genesis74 you steps seem a bit overkill to me. What I could observe (since I have my WebApp usually instructed to not automatically mark mails as read) is that when WebApp prefetches the message or when I click on the message it turns to read. meaning that the message are actually stored as read on the database only that webapp does not realise it at first.

                        Regards Felix

                        Resources:
                        https://kopano.com/blog/how-to-get-kopano/
                        https://documentation.kopano.io/
                        https://kb.kopano.io/

                        Support overview:
                        https://kopano.com/support/

                        genesis74 2 Replies Last reply Reply Quote 0
                        • afischer
                          afischer last edited by

                          Hello Felix,
                          Hm, we did not notice the problem you fixed. (truncated emails)
                          Our users, especially my boss, get impatient due to the bug of unread messages. I don’t want to install a beta-version with potentially new bugs, in which this annoying bug still exist.
                          But you don’t answer my question if there is a way to downgrade to 8.6.9
                          Best regards,
                          Achim

                          1 Reply Last reply Reply Quote 0
                          • fbartels
                            fbartels Kopano last edited by

                            @afischer said in Wrong indication of read/unread messages:

                            But you don’t answer my question if there is a way to downgrade to 8.6.9

                            I have not tested this myself, but our support has some experience in this area. I’d recommend to talk to then.

                            Regards Felix

                            Resources:
                            https://kopano.com/blog/how-to-get-kopano/
                            https://documentation.kopano.io/
                            https://kb.kopano.io/

                            Support overview:
                            https://kopano.com/support/

                            1 Reply Last reply Reply Quote 0
                            • genesis74
                              genesis74 @fbartels last edited by

                              Hi @fbartels,

                              I am not sure about your last sentence. Because it seems to me that this is the point - message state “read” is not stored in the database because after logging out of WebApp and logging back in (see my first post) or after restarting kopano-server messages that had already been flagged as read are marked as unread again.

                              By using IMAP as a second way to accessing the database I experienced that some of those messages appear as unread also in my IMAP client after doing the kopano-admin --reset-folder-count step. It made me believe that the “read”-state might have been written to the cache but not to the database (assuming WebApp and kopano-gateway/IMAP are not using the same cache or at least not in the same way).

                              1 Reply Last reply Reply Quote 0
                              • genesis74
                                genesis74 @fbartels last edited by

                                Hi @fbartels ,

                                my observation is as described in my first post. Especially after restarting kopano-server the unread-flagged messages turn up again. But sometimes also after logging out of WebApp and logging back in. The number of unread messages in the folder is then often inconsistent with the number shown next to the folder name. And all this is inconsistent with what I see if I use an IMAP-client. The only way I found to get this into line is what I described in my last post - yes, it looks like overkill, but it was the only solution I could find.

                                By the way - reading your last sentence I am a little bit in doubt if the database is updated correctly when marking those emails as read. In that case, clearing the cache should solve the problem completely, shouldn’t it? It seems to me as if the problem is that sometimes the new state of the read/unread flag is only saved to the cache but not the database …

                                fbartels 1 Reply Last reply Reply Quote 0
                                • fbartels
                                  fbartels Kopano @genesis74 last edited by

                                  @genesis74 said in Wrong indication of read/unread messages:

                                  I am a little bit in doubt if the database is updated correctly when marking those emails as read

                                  yes, that is the current theory. we have multiple tables with similar data (e.g. properties, mvproperties, tproperties) there seems to me a mismatch there.

                                  Regards Felix

                                  Resources:
                                  https://kopano.com/blog/how-to-get-kopano/
                                  https://documentation.kopano.io/
                                  https://kb.kopano.io/

                                  Support overview:
                                  https://kopano.com/support/

                                  1 Reply Last reply Reply Quote 0
                                  • 8GM-DK
                                    8GM-DK last edited by

                                    Adding my voice here to confirm that the issue is also affecting us as well as (at least) one of our customers. We tried updating to the latest (ubuntu) final (core, webapp, z-push…) but it did not help.

                                    1 Reply Last reply Reply Quote 0
                                    • 8GM-DK
                                      8GM-DK last edited by

                                      FYI: We could fix the issue with

                                      kopano-admin --reset-folder-count $USER
                                      

                                      It seems the cache is confused, and just clearing it did not help. This command updated the folders correctly.

                                      fbartels 1 Reply Last reply Reply Quote 0
                                      • fbartels
                                        fbartels Kopano @8GM-DK last edited by

                                        Hi @8GM-DK,

                                        the above issue was addressed with the 8.7.1 release. please make sure to read the text above the changelog at https://documentation.kopano.io/kopano_changelog/kc.html#kopano-core-8-7-1-final-8-7-1-0 for further instructions.

                                        Regards Felix

                                        Resources:
                                        https://kopano.com/blog/how-to-get-kopano/
                                        https://documentation.kopano.io/
                                        https://kb.kopano.io/

                                        Support overview:
                                        https://kopano.com/support/

                                        1 Reply Last reply Reply Quote 0
                                        • 8GM-DK
                                          8GM-DK last edited by

                                          root@mail:~# kopano-dbadm kc-1444
                                          Tue Jul  2 13:03:07 2019: [notice ] kc-1444: updating tproperties...
                                          Tue Jul  2 13:05:13 2019: [notice ] kc-1444: updated 136 rows.
                                          root@mail:~# kopano-admin --clear-cache=0x0020
                                          The selected option is deprecated in this utility.
                                          Forwarding call to: `kopano-srvadm --clear-cache cell`.
                                          Error reading config file /etc/kopano/admin.cfg
                                          [crit   ] Config error: Cannot normalize path "/etc/kopano/admin.cfg": No such file or directory
                                          
                                          

                                          Hey @fbartels , ty for the information. The above happened when I tried to follow the instructions used in the changelog. I don’t seem to have a “admin.cfg”?

                                          1 Reply Last reply Reply Quote 0
                                          • 8GM-DK
                                            8GM-DK last edited by

                                            I could remedy the situation by a simple

                                            touch /etc/kopano/admin.cfg
                                            

                                            Now the cache was cleared and it seems everything works as expected.

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