Freshly installed kopano gateway crash when using IMAP



  • Hello,

    Yesterday i’ve installed a new server with kopano community edition to my replace my own personal mailserver(3 users :) ) running on an old zarafa version.
    This went well, and eventually everything seemed to work how I wanted it to work. Then I started migrating mail data.
    Because ActiveSync/Z-Push isn’t suited for copying large(few gigabytes), I added both zarafa and Kopano in Microsoft Outlook using IMAP. Waited some time to let zarafa sync everything locally, and then started copying inbox data using the data copy function in Outlook. This is the result after a few seconds:

    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] ----------------------------------------------------------------------
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] Fatal error detected. Please report all following information.
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] Application kopano-gateway version: 8.4.90
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] OS: Linux, release: 4.4.0-92-generic, version: #115-Ubuntu SMP Thu Aug 10 09:04:33 UTC 2017, hardware: x86_64
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] Thread name: kopano-gateway
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] Peak RSS: 18076
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] Pid 2476 caught SIGSEGV (11), traceback:
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] Backtrace:
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] #0. /usr/lib/libkcutil.so.0(+0x28fe0) [0x7fda164a9fe0]
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] #1. /usr/lib/libkcutil.so.0(+0x21f8d) [0x7fda164a2f8d]
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] #2. /usr/lib/libkcutil.so.0(_ZN2KC23generic_sigsegv_handlerEPNS_8ECLoggerEPKcS3_iPK9siginfo_tPKv+0x1c1) [0x7fda164a3261]
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] #3. /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7fda15e64390]
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] #4. /usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZNSt8__detail15_List_node_base7_M_hookEPS0_+0xf) [0x7fda1539758f]
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] #5. /usr/lib/libkcinetmapi.so.0(+0x68c51) [0x7fda16bf2c51]
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] #6. /usr/lib/libkcinetmapi.so.0(+0x51693) [0x7fda16bdb693]
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] #7. /usr/lib/libkcinetmapi.so.0(+0x4ff63) [0x7fda16bd9f63]
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] #8. /usr/lib/libkcinetmapi.so.0(+0x51362) [0x7fda16bdb362]
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] #9. /usr/lib/libkcinetmapi.so.0(+0x52d4c) [0x7fda16bdcd4c]
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] #10. /usr/lib/libkcinetmapi.so.0(+0x53846) [0x7fda16bdd846]
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] #11. /usr/lib/libkcinetmapi.so.0(_ZN2KC8IMToMAPIEP12IMAPISessionP9IMsgStoreP9IAddrBookP8IMessageRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_16delivery_optionsE+0x146) [0x7fda16be11d6]
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] #12. /usr/sbin/kopano-gateway() [0x42c299]
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] #13. /usr/sbin/kopano-gateway() [0x42e670]
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] #14. /usr/sbin/kopano-gateway() [0x40a9be]
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] #15. /usr/lib/libkcutil.so.0(_ZN2KC18unix_fork_functionEPFPvS0_ES0_iPi+0x6d) [0x7fda164a7b2d]
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] #16. /usr/sbin/kopano-gateway() [0x409d81]
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] #17. /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7fda14d39830]
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] #18. /usr/sbin/kopano-gateway() [0x40a279]
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] Signal errno: Success, signal code: 1
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] Sender pid: 0, sender uid: 0, si_status: 0
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] User time: 0, system time: 0, signal value: 0
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] Faulting address: (nil), affected fd: 0
    Thu Aug 24 17:21:04 2017: [crit   ] [ 2476] When reporting this traceback, please include Linux distribution name (and version), system architecture and Kopano version.
    Thu Aug 24 17:21:05 2017: [warning] [ 2478] Failed to open public store
    
    

    When copying a few mails individually it works, but when selecting more mails, SIGSEGV is the result.

    I’m running Ubuntu 16.04 LTS , 2 cores, 4 GB of memory.
    Other versions numbers are in the log above.

    Does anyone have any idea?

    I can probably migrate my mails using other ways, and I don’t really plan to use IMAP, so it’s not really a problem for me. But maybe it’s easily fixed.

    Thanks in advance.



  • Upgraded to the latest versions of kopano(core-8.4.90.103_0+19-Ubuntu_16.04-amd64.tar.gz) , which went very smooth.
    Same problem, crashes almost immediately after pressing CTRL-V in Outlook:

    
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] ----------------------------------------------------------------------
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] Fatal error detected. Please report all following information.
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] Application kopano-gateway version: 8.4.90
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] OS: Linux, release: 4.4.0-92-generic, version: #115-Ubuntu SMP Thu Aug 10 09:04:33 UTC 2017, hardware: x86_64
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] Thread name: kopano-gateway
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] Peak RSS: 18824
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] Pid 1865 caught SIGSEGV (11), traceback:
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] Backtrace:
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] #0. /usr/lib/libkcutil.so.0(+0x28fe0) [0x7f60161c5fe0]
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] #1. /usr/lib/libkcutil.so.0(+0x21f8d) [0x7f60161bef8d]
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] #2. /usr/lib/libkcutil.so.0(_ZN2KC23generic_sigsegv_handlerEPNS_8ECLoggerEPKcS3_iPK9siginfo_tPKv+0x1c1) [0x7f60161bf261]
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] #3. /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7f6015b80390]
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] #4. /usr/lib/libmapi.so.1(MAPIFreeBuffer+0xf) [0x7f601664f40f]
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] #5. /usr/lib/libkcinetmapi.so.0(+0x68b6a) [0x7f601690eb6a]
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] #6. /usr/lib/libkcinetmapi.so.0(+0x51693) [0x7f60168f7693]
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] #7. /usr/lib/libkcinetmapi.so.0(+0x4ff63) [0x7f60168f5f63]
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] #8. /usr/lib/libkcinetmapi.so.0(+0x51362) [0x7f60168f7362]
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] #9. /usr/lib/libkcinetmapi.so.0(+0x52d4c) [0x7f60168f8d4c]
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] #10. /usr/lib/libkcinetmapi.so.0(+0x53846) [0x7f60168f9846]
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] #11. /usr/lib/libkcinetmapi.so.0(_ZN2KC8IMToMAPIEP12IMAPISessionP9IMsgStoreP9IAddrBookP8IMessageRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_16delivery_optionsE+0x146) [0x7f60168fd1d6]
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] #12. /usr/sbin/kopano-gateway() [0x42c299]
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] #13. /usr/sbin/kopano-gateway() [0x42e670]
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] #14. /usr/sbin/kopano-gateway() [0x40a9be]
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] #15. /usr/lib/libkcutil.so.0(_ZN2KC18unix_fork_functionEPFPvS0_ES0_iPi+0x6d) [0x7f60161c3b2d]
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] #16. /usr/sbin/kopano-gateway() [0x409d81]
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] #17. /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f6014a55830]
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] #18. /usr/sbin/kopano-gateway() [0x40a279]
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] Signal errno: Success, signal code: 1
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] Sender pid: 4213, sender uid: 16460, si_status: 0
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] User time: 0, system time: 0, signal value: 0
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] Faulting address: 0x404c00001075, affected fd: 0
    Fri Aug 25 11:33:47 2017: [crit   ] [ 1865] When reporting this traceback, please include Linux distribution name (and version), system architecture and Kopano version.
    Fri Aug 25 11:33:47 2017: [warning] [ 1869] Failed to open public store
    
    

  • Kopano

    Hi @yomark ,

    I just had one of my testers gives this a quick shot.

    Our setup was as followed:
    Kopano 1 (8.3.3)
    Kopano 2 (8.4.90.118)
    Both running Debian 8.

    Setup Thunderbird to connect to both “Kopano 1” and “Kopano 2”. Select a bunch of messages (around 50) and copy these from “Kopano 1” to “Kopano 2”.

    For us no crash occurred.



  • @fbartels thank you for checking.
    I did not select 50 mails, but more like 10000. I did try to select a single year(lets say 2000 mails) but then it also crashed.
    A small number of mails indeed works fine.

    I eventually exported my mails to a PST file and used the kopano PST importer, that worked fine. Very impressed with the new Kopano, mainly the possibility to also share contacts and calenders using Z-push from “public folders” is great and will come in handy for businesses.


Log in to reply
 

Looks like your connection to Kopano Community Forum was lost, please wait while we try to reconnect.