matidau / Z-Push

PHP8 support and other bug fixes for Z-Push in mailinabox
http://z-push.org
GNU Affero General Public License v3.0
5 stars 0 forks source link

iOS 16.4 no longer syncs #9

Closed derritter88 closed 1 year ago

derritter88 commented 1 year ago

Hello there,

after the upgrade to the latest iOS 16.4 version my phone is no longer synchronizing. I can see following exception at the z-push log:


02/04/2023 10:33:21 [407232] [WARN] [email@hks-projekt.at] Zimbra->GetUserInfo():   Overriding ZIMBRA_URL [https://mail.hks-projekt.at] from config.php with ZIMBRA publicURL [https://mail.hks-projekt.at:8443]
02/04/2023 10:33:21 [407232] [WARN] [email@hks-projekt.at] Zimbra->GetUserInfo():   Overriding  Logon URL [https://mail.hks-projekt.at/service/soap/] with ZIMBRA soapURL [https://mail.hks-projekt.at:8443/service/soap/]
02/04/2023 10:33:21 [428386] [WARN] [email@hks-projekt.at] Zimbra->GetUserInfo():   Overriding ZIMBRA_URL [https://mail.hks-projekt.at] from config.php with ZIMBRA publicURL [https://mail.hks-projekt.at:8443]
02/04/2023 10:33:21 [428386] [WARN] [email@hks-projekt.at] Zimbra->GetUserInfo():   Overriding  Logon URL [https://mail.hks-projekt.at/service/soap/] with ZIMBRA soapURL [https://mail.hks-projekt.at:8443/service/soap/]
02/04/2023 10:33:21 [428386] [WARN] [email@hks-projekt.at] SyncObject->Check(): Unmet condition in object from type SyncProvisioning: parameter 'maxattsize' is LOWER than '-1'. Check failed!
02/04/2023 10:33:21 [428386] [FATAL] [email@hks-projekt.at] FatalException: Invalid policies! - code: 0 - file: /usr/share/z-push/lib/request/provisioning.php:220
02/04/2023 10:33:21 [428386] [FATAL] [email@hks-projekt.at] WBXML 10K debug data: AwFqAAAORQASVkhXA2lQaG9uZTE0QzcAAVoDaU9TIDE2LjQgMjBFMjQ3AAFgA2lPUy8xNi40ICgyMEUyNDcpIGV4Y2hhbmdlc3luY2QvMS4wAAFZA2lQaG9uZSAxNAABWwNkZS1BVAABAQEADkZHSANNUy1FQVMtUHJ
vdmlzaW9uaW5nLVdCWE1MAAEBAQE=
02/04/2023 10:33:21 [428386] [FATAL] [email@hks-projekt.at] Exception: (FatalException) - Invalid policies!
derritter88 commented 1 year ago

Android devices are still syncing.

matidau commented 1 year ago

Hi derritter88,

Can you check what the value of maxattsize is in src/policies.ini?

derritter88 commented 1 year ago

Hello @matidau ,

the values would be: maxattsize = ''

So it's empty.

derritter88 commented 1 year ago

Not sure if this is relevant or not but I have replaced the last official repo installation with yours to be compatible for PHP8.x - so I softlinked the config files from /etc/z-push/ to the /usr/share/z-push folder as it was previously with the Z-Push PHP 7.4 version.

But I don't think that this should be the origin of the error.

matidau commented 1 year ago

In this case it is likely the cause. That value should be maxattsize = '-1' As per https://github.com/matidau/Z-Push/blob/php8.x/src/policies.ini

The empty string was the default value in the previous kopano version, but setting this to empty is not supported in the current version.

There are no other changes to this file so updating it to -1 should fix your problem.

Cheers, Mat

derritter88 commented 1 year ago

Thanks a lot - that fixed it :-)

matidau commented 1 year ago

No problems :)

cvhoangpt commented 9 months ago

No problems :)

hi matidau, zpush 2.7.0, I cannot sync from ios 16 or 17, some log are retry to provisioning command, what can I do

matidau commented 9 months ago

Hi @cvhoangpt

I've created an issue in the main repo https://github.com/Z-Hub/Z-Push/issues/43

Cheers, Mat