Sync with multiple Mailboxes in Outlook Cause App Crash (Z-Push/ActiveSync)
Dear all, i recently migrated a mailsystem of a friend of mine which worked as a charm.
Now we currently face an interesting problem. When syncing multiple Mailboxes (4-6) to Outlook (tried 2013,2016,2024) the Outlook App keeps Crashing after Sync has been done.
I tried following things:
- Completely removed the Office Install (Office Scub) and reinstall
- Renewed the Outlook Profiles
- Cleared the Cache Directories
- Set Sync Time to a minimum
Outlook starts and crashes after a few seconds the err reports mentions pstprx32.dll in correlation with that. So i tried different Versions of the Outlook App since i found that M$ has had some issues with that dll in the past. Sadly without success. Now that im out of ideas, i wanted to check here, if ther are some known issues in connection with z-push? Maybe im missing some tweaks or something, i checked and adjusted the php.ini as mentioned and all that but it did not solve the issue.
Thanks and all the best, Paul
Sounds like an outlook problem but it might be worth checking the server logs to see if there are any errors server side:
https://groupoffice.readthedocs.io/en/latest/troubleshooting/logging.html
@mschering turns out you where right... zpush was not able to write to the cache dir ... my fault... thank you für putting me on the right track ;)
well seems the problem is not solved... still hassling with outlook crashes os is a ubuntu 24.04 with the current group-office release
some errors i can find within the zpush error log:
/usr/share/groupoffice/go/core/util/StringUtil.php:483 iconv(): Wrong encoding, conversion from "pdfiso-8859-1" to "UTF-8//TRANSLIT//IGNORE" is not allowed (2)
15/10/2024 22:57:34 [138121] [ERROR] [mailadress] ImportChangesCombined->Config() icc not configured 15/10/2024 22:57:34 [138121] [WARN] [mailadress] /usr/share/groupoffice/go/modules/community/activesync/Z-Push/src/lib/default/diffbackend/importchangesdiff.php:221 Trying to access array offset on false (2) 15/10/2024 22:57:34 [138121] [WARN] [mailadress] StatusException: DiffState->GetState(): Error, state not available - code: 12 - file: /usr/share/groupoffice/go/modules/community/activesync/Z-Push/src/lib/default/diffbackend/diffstate.php:100 15/10/2024 22:57:34 [138121] [FATAL] [mailadress] WBXML 10K debug data: AwFqAAAHU1IDe2RlZDExNWFlLWJjZmMtNGNlNy1hMjg2LWNmNGVkZDVmMmEwOH0xAAFJAzAAAUcDQXJjaGl2AAFKAzEyAAEB 15/10/2024 22:57:34 [138121] [FATAL] [mailadress] Exception: (StatusException) - DiffState->GetState(): Error, state not available
15/10/2024 23:00:34 [86406] [ERROR] mailadress] Failed to recreate mime source. Falling back to original mime. Subject: [your-subject] Exception: Invalid address: (From): bla
FROM addressbook_contact c
LEFT JOIN addressbook_contact_star s ON
c.id = s.contactId AND s.userId = 13
WHERE
addressBookId = :addressBookId -> SQLSTATE[HY000] [2002] No such file or directory
18/10/2024 13:32:44 [2514987] [FATAL] [mailadress] WBXML 10K debug data: AwFqAAANRUgDNDgwAAFJSksDYy8xMwABTANDb250YWN0cwABAUpLA2EvMTIAAUwDQ2FsZW5kYXIAAQFKSwNtL0lOQk9YAAFMA0VtYWlsAAEBSksDbS9XRUJDQU0AAUwDRW1haWwAAQFKSwNtL1N5Y2hyb25pc2llcnVuZ3Nwcm9ibGVtZQABTANFbWFpbAABAUpLA20vU3BhbQABTANFbWFpbAABAUpLA20vU2VudCBJdGVtcwABTANFbWFpbAABAUpLA20vU2VudAABTANFbWFpbAABAUpLA20vUHJpdmF0AAFMA0VtYWlsAAEBSksDbS9MaW5lNAABTANFbWFpbAABAUpLA20vTGFyYW5qYQABTANFbWFpbAABAUpLA20vX0JBVQABTANFbWFpbAABAUpLA20vTGluZTQuVEhJTkshAAFMA0VtYWlsAAEBSksDbS9MaW5lNC5TVEVVRVJCRVJBVEVSLCBGSVJNQSwgQkFOSwABTANFbWFpbAABAUpLA20vTGluZTQuU1BFRElUSU9OLCBMSUVGRVJVTkdFTiwgVkVSUEFDS1VORwABTANFbWFpbAABAUpLA20vTGluZTQuU0hPUAABTANFbWFpbAABAUpLA20vTGluZTQuUFJPRFVLVEUAAUwDRW1haWwAAQFKSwNtL0xpbmU0LlBSRVNTRQABTANFbWFpbAABAUpLA20vTGluZTQuT25saW5lLVBvcnRhbGUAAUwDRW1haWwAAQFKSwNtL0xpbmU0LktVTkRFTgABTANFbWFpbAABAUpLA20vTGluZTQuSE9NRVBBR0U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KSwNtL0xpbmU0LlBST0RVS1RFLkFHRU5ULkhFUlNURUxMRVIuc2lub2hiY2UAAUwDRW1haWwAAQFKSwNtL0xpbmU0LlBST0RVS1RFLkFHRU5ULkhFUlNURUxMRVIucmlnaHR3YXkAAUwDRW1haWwAAQFKSwNtL0xpbmU0LlBST0RVS1RFLkFHRU5ULkhFUlNURUxMRVIucGlvbmVlcgABTANFbWFpbAABAUpLA20vTGluZTQuUFJPRFVLVEUuQUdFTlQuSEVSU1RFTExFUi5sb25nZmVuZwABTANFbWFpbAABAUpLA20vTGluZTQuUFJPRFVLVEUuQUdFTlQuSEVSU1RFTExFUi5rYW1laWNvaGsoc2ltb24pIC0gSG9mZXIhAAFMA0VtYWlsAAEBSksDbS9MaW5lNC5QUk9EVUtURS5BR0VOVC5IRVJTVEVMTEVSLkJ1cmctV8OkY2h0ZXIAAUwDRW1haWwAAQFKSwNtL0xpbmU0LlBST0RVS1RFLkFHRU5ULkhFUlNURUxMRVIuYnJ1Y2VlZQABTANFbWFpbAABAUpLA20vTGluZTQuUFJPRFVLVEUuQUdFTlQuSEVSU1RFTExFUi5heGEAAUwDRW1haWwAAQFKSwNtL0xpbmU0LlBST0RVS1RFLkFHRU5ULkhFUlNURUxMRVIuYWJhAAFMA0VtYWlsAAEBSksDbS9MaW5lNC5QUk9EVUtURS5BR0VOVC5IRVJTVEVMTEVSLmFiYS5wcml2AAFMA0VtYWlsAAEBAQE=
18/10/2024 13:32:44 [2514987] [FATAL] [mailadress] Exception: (go\core\db\DbException) - Database exception, DEBUG: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away, Full SQL: SELECT COALESCE(count(*), 0) AS count, COALESCE(max(modifiedAt), 0) AS modifiedAt
FROM addressbook_contact c
LEFT JOIN addressbook_contact_star s ON
c.id = s.contactId AND s.userId = 12
WHERE
addressBookId = :addressBookId -> SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
maybe someone has an idea ..
outlook profile reset, and entered the new mbxes ... it syncs after 1-2 days if fails with the errors mentioned at the beginn pstprx32.dll causes crash
Refering to the error message, something happend to the MySQL connection. Whats the size of your max_allowed_packet in my.cnf?
@creissig thanks for your response in my.cf it was commented out so i queried the mysql and got following answer
mysql> SHOW VARIABLES LIKE 'max_allowed_packet'; +--------------------+----------+ | Variable_name | Value | +--------------------+----------+ | max_allowed_packet | 67108864 | +--------------------+----------+
so it appears 64mb
so i up it to 128? for testing?
For testing I would reccomend setting to 512MB. If it works you can try with lower values.
@creissig i let it run for good 5 days and yesterday (after i updated groupoffice) it seems that it failed again but i did not find the disconnects ... so maybe its not the only problem
in the apache error log i found:
[Wed Oct 30 03:43:09.008206 2024] [php:error] [pid 3658665] [client 178.115.240.199:64451] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 4096 bytes) in /usr/share/groupoffice/modules/z-push/backend/go/go.php on line 634 [Wed Oct 30 03:43:09.008468 2024] [php:notice] [pid 3658665] [client 178.115.240.199:64451] ErrorException in /usr/share/groupoffice/modules/z-push/backend/go/go.php at line 634: Allowed memory size of 268435456 bytes exhausted (tried to allocate 4096 bytes) [Wed Oct 30 03:43:09.033747 2024] [php:error] [pid 3658665] [client 178.115.240.199:64451] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 720896 bytes) in /usr/share/groupoffice/go/core/Debugger.php on line 364
so i extended mem to 512mb now in apache2/php.ini and 256mb in all other php modules
Settings with 512MB and 256MB for the modules look fine. I always recommend to stick in first instance to the manual under https://groupoffice.readthedocs.io/en/latest/install/config.html#recommended-php-settings Also check that your memory limit change is applied correctly. Try to run php_info() in a script and check the output for the actual memory_limit there. For php_fpm the file is under /etc/php/x.x/fpm directory (where x.x is your version)
regarding phpinfo memory_limit shows 512mb, yes 👍 also changed fpm-php.ini from 256 to 512mb now
@creissig btw thanks for your effort
...im still on the hunt had to work on another frontier in the mean time...
so outlook active sync clients keep crashing when deleten the eas cache directory on the client side it seems to rebuilt the sync but i do not believe that this is an client issue, since were syncing the same mailboxes on 3 different systems
eas cache i mean : %userprofile%\appdata\Local\Microsoft\Outlook\EasCache -- > i delete the dir and then it appears to try to resync
problem is i cannot find when it crashes exactly, cause the logs fill up so fast
@mschering maybe you can reopen the ticket... and maybe some of the groupoffice devs have some input for me <3
also updated to the latest release of group office... just for good measure
i mean, is it possible that activesync somehow stumbles because of some "bad" mails like wrong codepage or such? cause i had to migrade the mailboxes via imapsync back then ..
12/11/2024 21:09:35 [ 2799] [WARN] [[email protected]] /usr/share/groupoffice/go/core/util/StringUtil.php:483 iconv(): Wrong encoding, conversion from "pdfutf-8" to "UTF-8//TRANSLIT//IGNORE" is not allowed (2) 12/11/2024 21:09:36 [ 2799] [ERROR] [[email protected]] Failed to recreate mime source. Falling back to original mime. Subject: AW:Auswertung Monitoring Materialbeschaffung, Stand 07.02.2020 Exception: Invalid address: (to): Pea Oppelz