Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reopen: Sync with multiple Mailboxes in Outlook Cause App Crash (Z-Push/ActiveSync) #1205

Open
gmcpaul opened this issue Nov 21, 2024 · 5 comments

Comments

@gmcpaul
Copy link

gmcpaul commented Nov 21, 2024

Hi,
sorry to create a new case with this but i am still having trouble with keeping Outlook/Activesync stable when syncing multiple (large ~5-20gb) Mailboxes for an User.

*) I have updated the Outlook versions to current releases not older than Office 2019
*) I have uninstalled and reinstalled the Office edt with Office Scrub, so i can ensure the Versions are as clean as possible

Still i get the same error with them:

Office Sync works a few Days and all of a sudden the Outlook app disappears.
In the Applog of WIndows i can find that pstprx32.dll caused the App to crash.

All that helps is to close Outlook and delete the OST files and let it resync ... which works for a random number up to about 3 days.

Since then i work within the Webclient, which is a cool feature but i really want to get Outlook going
Android Sync is working fine by the way

please maybe you can put me on track how to further debug the problem, it must be something on the serverside which culprits the datastream and causes it to fail

thanks
paul

@gmcpaul
Copy link
Author

gmcpaul commented Nov 28, 2024

Ok i tried with one smaller Mailbox, which worked for a week now.
But when i add a few more the same problem reappeared.

So i assume that the zpush component is somehow on its limits.
Are there some recommondations or experiences with that issue?

By the way the server was migrated from kopano so the activesync worked there with the very same load and mailboxes.

@lonesomewalker
Copy link

Without further details about your environment... :-)

I have servers running with mailboxes over 15GB.
Sometimes they have to be deleted, because there is a loop detected and the resync takes too long.

So, what is your environment?

@gmcpaul
Copy link
Author

gmcpaul commented Dec 2, 2024

@lonesomewalker
Thanks for your reply.
OS is Ubuntu 24.04 LTS (upgraded from 20.04) (Mysql, Apache, Php8.3)

I tried to stick to the manual from the Groupoffice Site, the only difference is that the mailboxes, as well as the groupoffice files are located on another Partition within the /home/ structure (has historic reasons).

I migrated from Kopano to GroupOffice via Imapsync within this system.
So basically i kept the Kopano Install up, installed Groupoffice besides and synced all Mailboxes to GroupOffice/Dovecot, removed Kopano and its Addons..then Upgraded to os 22.04
There are is one Mailboxes, which are larger than 12Gib; others have basically not more than 1.5Gb each; which worked within the Kopano Solution flawlessly.

when i reset the ost files or delete the appdata office folder, where the ost files resist, the sync starts and works for a few days but then crashes and it results in the pstprx32.dll crash error.
so we tried to only sync one mailbox, which only widens the timespan before the outlook app crashes but it does.

i mean im aware that sometimes Outlook Ost files get bad but not all few 2-3 days.
personally i think that something is wrong within the z-push env but i cant seem to find the problem, also whith the debug switch turned on i do not really find a clue why this happens.

/etc/groupoffice/config.php

<?php

$config['db_name'] = 'groupoffice';
$config['db_host'] = 'localhost';
$config['db_user'] = 'groupoffice';
$config['db_pass'] = 'xxx';
$config['db_port'] = '3306';
$config['file_storage_path'] = '/home/groupoffice/groupoffice';
$config['vmail_path'] = '/home/groupoffice/mailboxes/vmail';
$config['post_max_size'] = '1G';
$config['tmpdir'] = '/tmp/groupoffice';
$config['debug'] = 'true';

/etc/groupoffice/globalconfig.inc.php

<?php
$config = [
        // GO will connect to this installation to add a mailbox. It is the full url to the Group-Office installation with the postfixadmin module installed.
        'serverclient_server_url' => 'http://localhost/groupoffice/',
        // A token to authenticate. The token has to be identical on the web and mail server. By default they are the same server so you can just set anything here.

        'serverclient_token' => '123',

        // Comma separated list of mailbox domains
        'serverclient_domains' => 'dom1.org,dom2.org,dom3.org',

        // The email account properties that will be added for the user
        'serverclient_mbroot' => '',
        'serverclient_use_ssl' => false,
        'serverclient_use_tls' => false,
        'serverclient_novalidate_cert' => '0',
        'serverclient_host' => 'localhost',
        'serverclient_port' => 143,
        'serverclient_smtp_host' => 'localhost',
        'serverclient_smtp_port' => 25,
        'serverclient_smtp_encryption' =>'',
        'serverclient_smtp_username' => '',
        'serverclient_smtp_password' => ''
];

apache, default.conf

<VirtualHost *:80>
    ServerName mail.dom1.org
    ServerAlias webmail.dom1.org
    RewriteEngine On
    RewriteRule ^/$ https://webmail.dom1.org/groupoffice [R=301,L]
</VirtualHost>

<VirtualHost *:443>
    ServerAdmin [email protected]
    ServerName mail.dom1.org
    ServerAlias webmail.dom1.org
    DocumentRoot /var/www/html
    SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/mail.dom1.org/cert.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/mail.dom1.org/privkey.pem

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    Options FollowSymLinks
    RewriteEngine On
    RewriteRule ^/$ https://webmail.dom1.org/groupoffice [R=301,L]

ProxyPreserveHost       On
ProxyRequests           Off

SSLProxyVerify          None
SSLProxyCheckPeerCN     Off
SSLProxyCheckPeerName   Off
SSLProxyCheckPeerExpire Off

ProxyPass        /cp/          http://127.0.0.1:9090/cp/        upgrade=websocket
ProxyPassReverse /cp/          http://127.0.0.1:9090/cp/

</VirtualHost>

if you need some of the config details, please let me know.
i would be glad if the problem could be solved in time
<3

@lonesomewalker
Copy link

Okay...
You know that sync has a separate logfile on the server... what does this say?
Also, is the same mailbox synced to more than one user?

And, i can't see the htaccess/redirects for ms paths in your config :)

@gmcpaul
Copy link
Author

gmcpaul commented Dec 3, 2024

HI @lonesomewalker ,

so in regards of the redirects, im using the default groupoffice.conf file enabled in /etc/apache/enabled-configs:

Define GROUPOFFICE_PATH /usr/share/groupoffice

#Main web applications
Alias /groupoffice ${GROUPOFFICE_PATH}

#For site manager
Alias /public ${GROUPOFFICE_PATH}/public.php

Alias /Microsoft-Server-ActiveSync ${GROUPOFFICE_PATH}/modules/z-push/index.php

#For CalDAV support
Alias /caldav ${GROUPOFFICE_PATH}/modules/caldav/calendar.php

#For CardDAV support
Alias /carddav ${GROUPOFFICE_PATH}/modules/carddav/addressbook.php

#For WebDAV support
Alias /webdav ${GROUPOFFICE_PATH}/modules/dav/files.php

#For WOPI support
Alias /wopi ${GROUPOFFICE_PATH}/go/modules/business/wopi/wopi.php

#For Google Oauth2 support
Alias /gauth ${GROUPOFFICE_PATH}/go/modules/community/googleoauth2/gauth.php

#For OnlyOffice support
Alias /onlyoffice ${GROUPOFFICE_PATH}/go/modules/business/onlyoffice/connector.php

#DAV Service discovery. At least required for iOS7 support
Redirect 301 /.well-known/carddav /carddav
Redirect 301 /.well-known/caldav /caldav

#openID service discovery
Alias /.well-known/openid-configuration ${GROUPOFFICE_PATH}/api/oauth.php/.well-known/openid-configuration


#autoconfig
Alias /mail/config-v1.1.xml ${GROUPOFFICE_PATH}/go/modules/community/autoconfig/autoconfig.php
Alias /v1.1/mail/config-v1.1.xml ${GROUPOFFICE_PATH}/go/modules/community/autoconfig/autoconfig.php
Alias /.well-known/autoconfig/mail/config-v1.1.xml ${GROUPOFFICE_PATH}/go/modules/community/autoconfig/autoconfig.php

#autodiscover
Alias /autodiscover/autodiscover.json ${GROUPOFFICE_PATH}/go/modules/community/autoconfig/autodiscover-json.php
Alias /Autodiscover/Autodiscover.xml ${GROUPOFFICE_PATH}/go/modules/community/autoconfig/autodiscover.php
Alias /autodiscover/autodiscover.xml ${GROUPOFFICE_PATH}/go/modules/community/autoconfig/autodiscover.php

<Directory ${GROUPOFFICE_PATH}>
        Options -Indexes +FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

# Optionally disallow /install. Upgrade via command line only.
#<Directory ${GROUPOFFICE_PATH}/install>
#               Require local
#</Directory>

when parsing the z-push.log, i find:

a few of these
09/11/2024 10:04:22 [210324] [ERROR] [[email protected]] ImportChangesCombined->Config() icc not configured

that user seems to have a problem with auth on on of his devices (had to delete him anyway)

14/11/2024 21:23:50 [2445955] [ERROR] [[email protected]] Failed to recreate mime source. Falling back to original mime. Subject: asdf samples Exception: Invalid address: (From):user1
14/11/2024 21:23:50 [2445955] [WARN] [[email protected]] SyncObject->Check(): object from type SyncMail: parameter 'from' contains an invalid email address 'user1'. Address is removed.
30/10/2024 17:54:31 [485724] [WARN] [[email protected]] Not possible to determine class of request. Request did not contain class and apparently there is an issue with the HierarchyCache.

so not really anything which points to zpush problems rather than encoding issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants