Problems with z-push Mail-sync after each upgrade of MIAB

I have a problem with z-push after each update of MIAB.
After the MAIB update (e.g. from v67 to v68) there are no mails, dates, contacts at all on my iPhone. So the only solution - so far - is to complete delete my MIAB account from the iPhone and afterwards setup the MAIB account (es an Exchange Account) on my iPhone again.
Is this a known problem ? are there any known issues about this behaviour with z-push ?

Same for me. Luckily, it’s not too difficult to redo the Mail setup on my iPhone, but it feels like something that could be avoided.

Any clues in /var/log/z-push/z-push-error.log?

well - this seems to be the part you are looking for at the log…
(except the hundreds of “undefined array key…” warnings)

24/07/2024 10:46:26 [1770673] [ERROR] BackendCardDAV->ChangesSink - Error resyncing vcards: Woops, something’s gone wrong! The CardDAV server returned the http status code 0.
24/07/2024 10:46:26 [1770673] [ERROR] BackendCardDAV->ChangesSink - Error getting the changes
24/07/2024 10:46:26 [1770673] [ERROR] BackendCardDAV->ChangesSink - Error resyncing vcards: Woops, something’s gone wrong! The CardDAV server returned the http status code 0.
24/07/2024 10:46:26 [1770673] [ERROR] BackendCardDAV->ChangesSink - Error getting the changes
24/07/2024 10:47:23 [1864116] [WARN] BackendIMAP->getImapIdFromFolderId(‘5cd41538’) = not initialized!
24/07/2024 10:48:59 [1864118] [ERROR] LoopDetection->ProcessLoopDetectionPreviousConnectionFailed(): Command ‘Sync’ at 24/07/2024 10:46:27 with pid ‘1863721’ terminated unexpectedly o>
24/07/2024 10:48:59 [1864118] [ERROR] Please check your logs for this PID and errors like PHP-Fatals or Apache segmentation faults and report your results to the Z-Push dev team.
24/07/2024 11:58:07 [ 1018] [FATAL] Exception: (ProvisioningRequiredException) - Retry after sending a PROVISION command

Those Errors are logged after MIAB update.

It looks like there is some problem with the contact data. Perhaps you should try restarting the PHP-FPM services (affecting Nextcloud, which provides contact data, and Z-Push, which provides synchronization), and see if that reproduces the problem.

I’m more interested in the hundreds of “undefined array key…” warnings.

I have some PGP signed or encrypted emails that have this problem when synchronizing. I’ve probably solved the problem and submitted a PR to Z-Push. Do you have any digitally signed or encrypted emails?

First of all - i don’t use PGP signed / encryptet mails, and i didn’t receive such mails.

second - i restarted the php-fpm.service - nothing happend to my contacts / calender dates or mail - all still there and the account is still able to sync.

Now - this is strange…
the last entriy at the z-push-error.log is from 26/07/24 03:06:10… even if i received a couple of mails today after 03.06.10, and got them pushed to my iPhone.
******* are private information - so i replaced them with ***

26/07/2024 03:04:10 [284528] [WARN] [@*****.]SyncObject->Check(): object from type SyncMail: parameter ‘from’ contains an invalid email address '", ***"'. Address is removed.
26/07/2024 03:05:21 [183171] [WARN][
@
.
] /usr/local/lib/z-push/lib/utils/utils.php:1284 iconv(): Wrong encoding, conversion from "unicode-1-1-utf-7" to "utf-8" is not allowed (2)
26/07/2024 03:05:21 [183171] [WARN] [
@*****.] SyncObject->Check(): object from type SyncMail: parameter ‘from’ contains an invalid email address ‘Talkmaster’. Address is removed.
26/07/2024 03:05:21 [183171] [WARN][
@*****.] /usr/local/lib/z-push/lib/utils/utils.php:1284 iconv(): Wrong encoding, conversion from "unicode-1-1-utf-7" to "utf-8" is not allowed (2)
26/07/2024 03:05:21 [183171] [WARN] [
@*****.] SyncObject->Check(): object from type SyncMail: parameter ‘from’ contains an invalid email address '", ***"'. Address is removed.
26/07/2024 03:05:24 [183165] [WARN] [
@
.
] /usr/local/lib/z-push/lib/utils/utils.php:1284 iconv(): Wrong encoding, conversion from "unicode-1-1-utf-7" to "utf-8" is not allowed (2)
26/07/2024 03:05:24 [183165] [WARN] [
@*****.] SyncObject->Check(): object from type SyncMail: parameter ‘from’ contains an invalid email address ‘“Eberle, Wolfgang”’. Address is removed.
26/07/2024 03:05:24 [183165] [WARN] [
@*****.]SyncObject->Check(): object from type SyncMail: parameter ‘from’ contains an invalid email address ‘“Eberle, Wolfgang”’. Address is removed.
26/07/2024 03:05:38 [183171] [WARN] [
@*****.]/usr/local/lib/z-push/lib/utils/utils.php:1284 iconv(): Wrong encoding, conversion from "unicode-1-1-utf-7" to "utf-8" is not allowed (2)
26/07/2024 03:05:38 [183171] [WARN] [
@*****.]/usr/local/lib/z-push/lib/utils/utils.php:1284 iconv(): Wrong encoding, conversion from "unicode-1-1-utf-7" to "utf-8" is not allowed (2)
26/07/2024 03:05:38 [183171] [WARN] [
@*****.]SyncObject->Check(): object from type SyncMail: parameter ‘from’ contains an invalid email address ‘Talkmaster’. Address is removed.
26/07/2024 03:05:54 [183169] [WARN] [
@*****.]SyncObject->Check(): object from type SyncMail: parameter ‘to’ contains an invalid email address ‘Undisclosed recipients:;’. Address is removed.
26/07/2024 03:06:10 [183169] [WARN] [
@*****.]SyncObject->Check(): object from type SyncMail: parameter ‘from’ contains an invalid email address ‘“Eberle, Wolfgang”’. Address is removed.
26/07/2024 03:06:10 [183169] [WARN] [
@*****.] SyncObject->Check(): object from type SyncMail: parameter ‘from’ contains an invalid email address ‘“Eberle, Wolfgang”’. Address is removed.
26/07/2024 03:06:10 [183169] [WARN] [
@*****.*]SyncObject->Check(): object from type SyncMail: parameter ‘from’ contains an invalid email address ‘“Eberle, Wolfgang”’. Address is removed.

And finally, here are a bunch of those “undefined array key warnings” you are interested in…
26/07/2024 03:03:58 [183168] [WARN] [@*****.] /usr/local/lib/z-push/include/mimeDecode.php:347 Undefined array key 1 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.]/usr/local/lib/z-push/backend/imap/imap.php:1453 Undefined array key 0 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.] /usr/local/lib/z-push/backend/imap/imap.php:1453 Undefined array key 1 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.] /usr/local/lib/z-push/backend/imap/imap.php:1453 Undefined array key 2 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.]/usr/local/lib/z-push/include/mimeDecode.php:347 Undefined array key 1 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.]/usr/local/lib/z-push/backend/imap/imap.php:1453 Undefined array key 0 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.]/usr/local/lib/z-push/backend/imap/imap.php:1453 Undefined array key 1 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.]/usr/local/lib/z-push/backend/imap/imap.php:1453 Undefined array key 2 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.] /usr/local/lib/z-push/include/mimeDecode.php:347 Undefined array key 1 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.] /usr/local/lib/z-push/backend/imap/imap.php:1453 Undefined array key 0 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.] /usr/local/lib/z-push/backend/imap/imap.php:1453 Undefined array key 1 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.] /usr/local/lib/z-push/backend/imap/imap.php:1453 Undefined array key 2 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.] /usr/local/lib/z-push/include/mimeDecode.php:347 Undefined array key 1 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.]/usr/local/lib/z-push/backend/imap/imap.php:1453 Undefined array key 0 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.] /usr/local/lib/z-push/backend/imap/imap.php:1453 Undefined array key 1 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.] /usr/local/lib/z-push/backend/imap/imap.php:1453 Undefined array key 2 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.] /usr/local/lib/z-push/include/mimeDecode.php:347 Undefined array key 1 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.]/usr/local/lib/z-push/backend/imap/imap.php:1453 Undefined array key 0 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.]/usr/local/lib/z-push/backend/imap/imap.php:1453 Undefined array key 1 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.]/usr/local/lib/z-push/backend/imap/imap.php:1453 Undefined array key 2 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.]/usr/local/lib/z-push/include/mimeDecode.php:347 Undefined array key 1 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.]/usr/local/lib/z-push/backend/imap/imap.php:1453 Undefined array key 0 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.] /usr/local/lib/z-push/backend/imap/imap.php:1453 Undefined array key 1 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.]/usr/local/lib/z-push/backend/imap/imap.php:1453 Undefined array key 2 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.]/usr/local/lib/z-push/include/mimeDecode.php:347 Undefined array key 1 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.] /usr/local/lib/z-push/backend/imap/imap.php:1453 Undefined array key 0 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.]/usr/local/lib/z-push/backend/imap/imap.php:1453 Undefined array key 1 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.] /usr/local/lib/z-push/backend/imap/imap.php:1453 Undefined array key 2 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.] /usr/local/lib/z-push/include/mimeDecode.php:347 Undefined array key 1 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.]/usr/local/lib/z-push/backend/imap/imap.php:1453 Undefined array key 0 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.] /usr/local/lib/z-push/backend/imap/imap.php:1453 Undefined array key 1 (2)
26/07/2024 03:03:58 [183168] [WARN] [@*****.]/usr/local/lib/z-push/backend/imap/imap.php:1453 Undefined array key 2 (2)

Have you tried deleting the profiles from MIAB
Read here iPad Profile won't log in - #3 by stylnchris

z-push-admin -a remove -d Device ID

Also delete and add all MS Active Sync accounts on your devices.
It seems you are right that after each update push messages stop. I just noticed on my Iphone.

hi vele,
to remove all z-push profiles and switch over to IMAP (as mentioned in the discourse you provieded) - sorry - but this is NOT the solution.
And - removing all z-push profiles doesn’t solve the problem as well…
Re-Adding the Exchange-Accounts is still necesseray to get z-push back working again.
Unfortunately i don’t know what exact happens at the z-push part during MIAB update… so i guess only @JoshData can help to figure out what his install/update script does with the z-push installation on an MIAB update.

I’ll jump in here, will work this out.Working on an older Z-Push issue first.

@matidau THX - sounds very gootd !!
just an “imagination” what could cause the problem…
Maybe every update of MIAB runs a fresh installation of z-push, instead of an update…
I can’t proof this - as i said - because i don’t kow the update-script of MIAB and I don’t know the z-push script that is triggered by the MIAB update-script.

It does run a new installation but with the existing states still there.

I think it is more likely to be the z-push-admin.php -a fixstates line at the end.

More investigation needed. You can follow the issue here: iPhone loses sync between upgrades ¡ Issue #92 ¡ Z-Hub/Z-Push ¡ GitHub

Great !!!
THX for opening this case !!!

Push messages now work on my Iphone. No intervention it just started working.

1 Like

So, can others confirm that z-push finally works? :crossed_fingers:

hi hzink
sure - z-push “it-self” works pretty fine, If you setup your Account on your iPhone as an “Exchange” account, mails, contacts, and calender objects are synced and pushed as expected.
Just after a MIAB Update, z-push fails, so that you have to delete your account on your iPhone and re-setup again.
Matidau already cares about this issue -

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.