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

    [SOLVED] "Message cannot be opened" problem with core-8.4.90.1296_0+157-Ubuntu_16.04-amd64

    Kopano Groupware Core
    10
    25
    4299
    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.
    • bosim
      bosim @fallingdamps last edited by

      @fallingdamps said in [SOLVED] “Message cannot be opened” problem with core-8.4.90.1296_0+157-Ubuntu_16.04-amd64:

      folder=kopano.Server().user(“SYSTEM”).folder(“Public Folders/Kontakte Test”)

      Try folder=kopano.Server().public_store.folder(“Kontakte Test”)

      Bo

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

        @bosim said in [SOLVED] “Message cannot be opened” problem with core-8.4.90.1296_0+157-Ubuntu_16.04-amd64:

        folder=kopano.Server().public_store.folder(“Kontakte Test”)

        Thank you, this is working. Now I get hierarchyid.

        I tried the script with the storeguid of SYSTEM and hierachyid. In WebApp the known error messages was still appearing (although the script did update the exact number of contacts in the folder).

        And then I remembered the user who did create all (!) the contacts in this public folder. I tried it again with the storeguid of this user and now it works. Hooray, the contacts are not lost.

        I do not know the details of the database scheme and the consequences of the SQL statements in the script. And I do not know what happens if different users had created entries in the same corrupted public folder (solution more complex?). Therefore I hope that this was a good way to fix my problem.

        Thank you again for the quick response.

        Regards
        fallingdamps

        bosim 1 Reply Last reply Reply Quote 0
        • bosim
          bosim @fallingdamps last edited by

          @fallingdamps said in [SOLVED] “Message cannot be opened” problem with core-8.4.90.1296_0+157-Ubuntu_16.04-amd64:

          And then I remembered the user who did create all (!) the contacts in this public folder. I tried it again with the storeguid of this user and now it works. Hooray, the contacts are not lost.

          Interesting it works, because you should use the store guid for the public store, so kopano.Server().public_store.guid

          It should be safe to run the script again with that guid and the hierarchyid of the folder in the public store.

          Glad I could help.

          Have a nice weekend and best regards,
          Bo

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

            It seems that I made a mistake. I used the following statement in step 3 to produce a wrong parameter:

            • kopano.Server().user(“SYSTEM”).store.guid

            I have now used the following and hopefully correct statements thanks to bosim:

            • kopano.Server().public_store.guid (step 3)
            • kopano.Server().public_store.folder(“Kontakte Test”).hierarchyid (in step 4)

            This solution may be obvious for developers and insiders but it was not for me.

            It is perhaps a good idea if someone could add this to the comments in the script fix-entryids.py.

            And now finally: have a nice weekend, too.

            Regards
            fallingdamps

            bosim 1 Reply Last reply Reply Quote 0
            • bosim
              bosim @fallingdamps last edited by

              @fallingdamps said in [SOLVED] “Message cannot be opened” problem with core-8.4.90.1296_0+157-Ubuntu_16.04-amd64:

              This solution may be obvious for developers and insiders but it was not for me.
              It is perhaps a good idea if someone could add this to the comments in the script fix-entryids.py.
              And now finally: have a nice weekend, too.

              Well you are right it could have been more simple, but I am happy you made it working. We do not expect more of these incidents to come, it was a very unfortunate situation having the database in a state where it could not be easily repaired by kopano-backup or kopano-fsck.

              Have a nice weekend
              Bo

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

                Thanks @bosim for your solution!!!

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

                  Many thanks @bosim for your solution!
                  All items are visible again :-)

                  Best regards and merry xmas
                  Martin

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

                    Hi together!

                    After searching for hours i found this posting. Many thanks for writing this script! I had so much trouble with my wife because of missing mails, now most of them are back again.

                    I have one question: I have to run the script on the “Sent Items” folder, but I do not know how to access it to get the hierarchy ID. I thought about searching in the hierarchy-table for the parent of the id of the inbox, looked down into the hierarchies with matching parent, but I endet in not knowing where to find in the database the matching name, so im stuck here.

                    All I tried around this gave errors (without blanks, other quotes and so on).
                    folder=kopano.Server().user(“xxx”).inbox.folder(“Sent Items”)
                    folder=kopano.Server().user(“xxx”).inbox.folder(“Gesendete Objekte”)
                    The error is always like: kopano.errors.NotFoundError: no such folder: <what I tried>

                    When I try
                    folder=kopano.Server().user(“xxx”).outbox
                    and get the id
                    the script does nothing :-(.

                    I would really appreciate if somebody could give me a hint,

                    kind regards,
                    Christian

                    darootler 1 Reply Last reply Reply Quote 0
                    • darootler
                      darootler @tueftler17 last edited by

                      @tueftler17

                      Try this:

                      folder=kopano.Server().user("xxx").folder("Sent Items")
                      

                      Regards
                      Richard

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

                        @Richard:
                        Perfect, as usual the solution was easy but in Germany we say: “I had tomatoes on my eyes”, so I did not find it.

                        Many thanks to you, now almost all messages are back again. I still see some errors when I do a kopano-backup but I will try to ignore them. Hopefully they won’t do a message-loop with active-sync.

                        Again: It was very helpful, I wish you all a great 2018!

                        kind regards,
                        Christian

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

                          After updating my kopano core, i had the same problem with corrupted mails. I reorganized all my folders with the script, but syncing with outlook 2016 stops at 98%, and i don’t have any ideas, which folder i forgot. Is there a possibility to get all hierachyid’s for a specified user ?

                          Or is there a possibility to find out, on which folder the sync stops? Is this logged ?

                          I can’t work with outlook, no changes are sent to the server, outlook still waits for the sync to be completed

                          0_1516693085239_2018-01-23.jpg

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

                            @teka74 said in [SOLVED] “Message cannot be opened” problem with core-8.4.90.1296_0+157-Ubuntu_16.04-amd64:

                            After updating my kopano core, i had the same problem with corrupted mails. I reorganized all my folders with the script, but syncing with outlook 2016 stops at 98%, and i don’t have any ideas, which folder i forgot. Is there a possibility to get all hierachyid’s for a specified user ?

                            Does the z-push-errors.log say anything about this?

                            Maybe you hit: https://forum.kopano.io/topic/907/incident-call-to-undefined-function-mapi_zarafa_getuser/

                            Bo

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

                              @bosim No, looked in z-push-error.log and the z-push.log, can’t see errors. Error logging is on, switched it to log all info, to see what’s happening. Only got “loop detected”

                              Now I updated to the new 8.5.80 build in the morning, hope it’s better with this version…

                              edit:

                              I think I had forgotten a folder in rewriting the ID’s… Don’t know which one. Found my inbox id (72), and the Deleted Items (id 75) , so I tried to sync the id’ 73 74 75 76 77 and following. The script found entrys, and now it’s working! Very strange

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

                                The bug is somehow back again. Just installed the nightlys from version 8.6.80. It affects a specific inbox subfolder and the sent mail folder. Every mail sent after the upgrade is accessable but everything before is not.
                                The problem seems to be limited to webapp and deskapp. I still have access via z-push (maybe it’s cached … haven’t checked yet)
                                I tried the script mentioned above which worked fine for the subfolder but did nothing to sent mail…
                                Is there something else I miss?

                                OS: Ubuntu server 16.04.
                                webapp: 3.4.7.1262+728.1
                                z-push: most recent version from repos
                                kopano core: 8.6.80 nightlys

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

                                  Ahh … I forgot to mention, that after upgrading to the problematic version 3 broken messages appeared in the sub folder. They do not have a header or any content and of course I cannot delete them …

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