Kopano Webapp isn't loading - Failed to open store



  • Hey there,

    if I want to open a store from a family member with their login data, I’m not able to open the store and apache2 give me a lot of these errors:

    [Fri Feb 22 10:45:20.109183 2019] [:error] [pid 10686] [client xxx.com:40954] PHP Warning:  mapi_openmsgstore(): Unable to open message store: invalid entry (80040107) in /usr/share/kopano-webapp/server/includes/core/class.mapisession.php on line 579, referer: https://xxx.com/webapp/
    [Fri Feb 22 10:45:20.109244 2019] [:error] [pid 10686] [client xxx.com:40954] Failed to open store with entryid , referer: https://xxx.com/webapp/
    [Fri Feb 22 10:45:20.109289 2019] [:error] [pid 10686] [client xxx.com:40954] MAPIException: MAPI error  in /usr/share/kopano-webapp/server/includes/core/class.mapisession.php:579\nStack trace:\n#0 /usr/share/kopano-webapp/server/includes/core/class.mapisession.php(579): mapi_openmsgstore(Resource id #3, '')\n#1 /usr/share/kopano-webapp/server/includes/core/class.operations.php(738): MAPISession->openMessageStore(NULL)\n#2 /usr/share/kopano-webapp/server/includes/core/class.operations.php(697): Operations->getFavoriteLinkedFolderProps(Array)\n#3 /usr/share/kopano-webapp/server/includes/core/class.operations.php(284): Operations->getFavoritesFolders(Resource id #41, Array)\n#4 /usr/share/kopano-webapp/server/includes/modules/class.hierarchymodule.php(481): Operations->getHierarchyList(Array)\n#5 /usr/share/kopano-webapp/server/includes/modules/class.hierarchymodule.php(85): HierarchyModule->hierarchyList()\n#6 /usr/share/kopano-webapp/server/includes/core/class.jsonrequest.php(57): HierarchyModule->execute()\n#7 /usr/share/kopano-webapp/kopano.php(145): JSONRequest->execute('{"zarafa":{"hie...')\n#8 {main}, referer: https://xxx.com/webapp/
    [Fri Feb 22 10:45:20.109343 2019] [:error] [pid 10686] [client xxx.com:40954] PHP Notice:  Undefined offset: 1749811458 in /usr/share/kopano-webapp/server/includes/core/class.operations.php on line 739, referer: https://xxx.com/webapp/
    [Fri Feb 22 10:45:20.109386 2019] [:error] [pid 10686] [client xxx.com:40954] PHP Warning:  mapi_msgstore_openentry() expects parameter 1 to be resource, integer given in /usr/share/kopano-webapp/server/includes/core/class.operations.php on line 739, referer: https://xxx.com/webapp/
    [Fri Feb 22 10:45:20.109428 2019] [:error] [pid 10686] [client xxx.com:40954] PHP Warning:  mapi_getprops() expects parameter 1 to be resource, boolean given in /usr/share/kopano-webapp/server/includes/core/class.operations.php on line 742, referer: https://xxx.com/webapp/
    [Fri Feb 22 10:45:20.110949 2019] [:error] [pid 10686] [client xxx.com:40954] PHP Notice:  Undefined offset: 1749942530 in /usr/share/kopano-webapp/server/includes/core/class.operations.php on line 733, referer: https://xxx.com/webapp/
    [Fri Feb 22 10:45:20.110984 2019] [:error] [pid 10686] [client xxx.com:40954] PHP Notice:  Undefined offset: 1749811458 in /usr/share/kopano-webapp/server/includes/core/class.operations.php on line 733, referer: https://xxx.com/webapp/
    [Fri Feb 22 10:45:20.110997 2019] [:error] [pid 10686] [client xxx.com:40954] PHP Notice:  Undefined offset: 1749942530 in /usr/share/kopano-webapp/server/includes/core/class.operations.php on line 738, referer: https://xxx.com/webapp/
    [Fri Feb 22 10:45:20.111078 2019] [:error] [pid 10686] [client xxx.com:40954] PHP Warning:  mapi_openmsgstore(): Unable to open message store: invalid entry (80040107) in /usr/share/kopano-webapp/server/includes/core/class.mapisession.php on line 579, referer: https://xxx.com/webapp/
    [Fri Feb 22 10:45:20.111116 2019] [:error] [pid 10686] [client xxx.com:40954] Failed to open store with entryid , referer: https://xxx.com/webapp/
    [Fri Feb 22 10:45:20.111154 2019] [:error] [pid 10686] [client xxx.com:40954] MAPIException: MAPI error  in /usr/share/kopano-webapp/server/includes/core/class.mapisession.php:579\nStack trace:\n#0 /usr/share/kopano-webapp/server/includes/core/class.mapisession.php(579): mapi_openmsgstore(Resource id #3, '')\n#1 /usr/share/kopano-webapp/server/includes/core/class.operations.php(738): MAPISession->openMessageStore(NULL)\n#2 /usr/share/kopano-webapp/server/includes/core/class.operations.php(697): Operations->getFavoriteLinkedFolderProps(Array)\n#3 /usr/share/kopano-webapp/server/includes/core/class.operations.php(284): Operations->getFavoritesFolders(Resource id #41, Array)\n#4 /usr/share/kopano-webapp/server/includes/modules/class.hierarchymodule.php(481): Operations->getHierarchyList(Array)\n#5 /usr/share/kopano-webapp/server/includes/modules/class.hierarchymodule.php(85): HierarchyModule->hierarchyList()\n#6 /usr/share/kopano-webapp/server/includes/core/class.jsonrequest.php(57): HierarchyModule->execute()\n#7 /usr/share/kopano-webapp/kopano.php(145): JSONRequest->execute('{"zarafa":{"hie...')\n#8 {main}, referer: https://xxx.com/webapp/
    [Fri Feb 22 10:45:20.111179 2019] [:error] [pid 10686] [client xxx.com:40954] PHP Notice:  Undefined offset: 1749811458 in /usr/share/kopano-webapp/server/includes/core/class.operations.php on line 739, referer: https://xxx.com/webapp/
    [Fri Feb 22 10:45:20.111196 2019] [:error] [pid 10686] [client xxx.com:40954] PHP Warning:  mapi_msgstore_openentry() expects parameter 1 to be resource, integer given in /usr/share/kopano-webapp/server/includes/core/class.operations.php on line 739, referer: https://xxx.com/webapp/
    [Fri Feb 22 10:45:20.111226 2019] [:error] [pid 10686] [client xxx.com:40954] PHP Warning:  mapi_getprops() expects parameter 1 to be resource, boolean given in /usr/share/kopano-webapp/server/includes/core/class.operations.php on line 742, referer: https://xxx.com/webapp/
    

    This error don’t occurs if I open the store in my store. He is also able to open the store over z-push.

    I use following versions:

    Kopano: 8.7.80.587.10057ac52-0+100.1
    Webapp: 3.5.3.2161+1200.1
    Z-Push: 2.4.6.beta0+0-0
    Php: 7.0.33-0+deb9u1

    Does anyone can help mit with this?

    Thank you and best wishes



  • hm, i’ve just posted something simular… in the “webapp” forum…

    Try to reset the password.

    kopano-admin -u username -P
    and type the pass…

    Does that help?
    when what was you log level and where did you see these messages.
    I could not find any…



  • Hey thctlo,

    I tried this with the password, but it doesn’t work.

    Regarding logging, you’ve to check your apache2/php config.

    At apache2 you’ve to check for the line for an error log in virtual host config.

    Your active page is normally under:
    /etc/apache2/sites-enabled/

    You also need to check php.ini under /etc/php/7.0/apache2/php.ini that error logging is enabled.

    If you still don’t see any logs, check your webapp config under:
    /etc/kopano/webapp/config.php

    I hope this helps. But my initial case is still open. :(



  • I just wondered where got the error in the logs. thanks for that.
    I got mine working again.

    For you, check with dpkg -l | egrep "kopano|mapi|webapp"
    if all packages within the latest version, are you using community packages?

    Then you might have missed a package that needs updating and for that i have.
    Have a look : https://github.com/thctlo/Kopano
    My script gets it all for you.



  • Your script is great. Wow. But all versions are up to date. It doesn’t fix my issue.



  • Can you check if these are installed…
    php7-mapi python3-kopano python3-mapi php7.0-soap
    And what are the details of the user showing, kopano-admin --details user



  • @thctlo these packages are all installed.

    The output of zarafa-admin shows:

    User object id:         xxx
    User store id:          xxx
    Username:               xxx
    Fullname:               xxx
    Emailaddress:           xxx@xxx.xxx
    Active:                 yes
    Administrator:          no
    Address book:           Visible
    Auto-accept meeting req:no
    Out Of Office:          disabled
    Last logon:             02/27/2019 10:07:54 PM
    Last logoff:            02/27/2019 10:07:37 PM
    Server version:         8.7.80
    Mapped properties:
            PR_EC_ENABLED_FEATURES  mobile; outlook; webapp
            PR_EC_DISABLED_FEATURES imap; pop3
    Current user store quota settings:
     Quota overrides:       no
     Warning level:         unlimited
     Soft level:            unlimited
     Hard level:            unlimited
    Current store size:     130.22 MB
    Groups (1):
            Everyone
    

Log in to reply