Closed TheoRettisch closed 9 years ago
@TheoRettisch I would check the server configuration first; nginx/apache and php. I'm not having those errors with Android.
@fmbiete its apache and php-fpm. Im quite sure the server config is ok because with the zarafa z-push everything works fine. im not aware that your z-push needs some special config.
Look at the timeouts in both apache and php-fpm, they should be big enough. 900 seconds is a good value. In your log, you can see how multiples processes run at the same time. If they are for the same devices it could signal a problem in the server, usually timeout on php execution.
I believe I am also experiencing this problem. I am using iOS 8.3 and every time I delete a message, everything breaks until a full resync is completed.
I note in the above, that the BackendCombined is being used. I have been running BackendIMAP (only) for years successfully, however recently started playing with BackendCombined. I'm using the example configuration in the wiki page, https://github.com/fmbiete/Z-Push-contrib/wiki/Example-Configuration#combined-configuration. BackendCardDAV and BackendCalDAV work well, but when combined with BackendIMAP, the problem occurs.
If I change my main config.php and change the backend to BackendIMAP, the system works correctly, so from this I conclude that my IMAP configuration is working.
With my configuration, if I only enable Calendar, Contacts, Reminders, and Notes on my iPhone, everything works well.
I have also created a configuration where I use BackendCombined, but only enable the BackendIMAP, and I commented out all folders in the folderbackend array that are not using the BackendIMAP (i.e. 'i'). My phone was then configured to sync only email, and the problem occurs.
So to me, it seems that syncing IMAP (even as the only backend enabled), through the BackendCombined is broken.
I have some time available for testing, and am competent in PHP, so I would be happy to look into this further. I just do not know where to start, or if there is anything I should test or try. I would appreciate any comments or suggestions.
@tigs001: I can confirm your findings. After switching from BackendCombined to BackendIMAP E-Mail sync works and i can delete Mails.
@fmbiete: I tried every possible way to increase the PHP-FPM timeouts to 900 sec. but it makes no difference. Regarding to the multiple processes i found the following which indicates that the log output is no error: https://forums.zarafa.com/showthread.php?9670-Z-Push-2-1-0RC-released&p=43420&viewfull=1#post43420
@tigs001 Can you check if the delete operation succeded? Can you check with an Android device?
@tigs001 @TheoRettisch
The referenced commit should fix this bug.
As the commit messages says, this is a temporary workaround. We need to rethink the BackendCombined Importer/Exporter, it's not flexible enough.
@fmblete, I have installed the update and been running the system for several hours now. My specific test that failed previously do not fail any more. So far everything is working well.
For information, I am using an iPhone 5s, iOS 8.3, and am using the BackendCombined with IMAP (to Dovecot), CardDAV and CalDAV (to SOGo) enabled.
Many thanks for your efforts in fixing this issue.
Hi,
as soon as i delete an email on my android the whole sync stops working until i do a complete resync. The last sync time in z-push admin also changes from last sync date to "never". The error can be reproduce.
If i remember right there was a problem with the way android preserves mails for undoing the remove action. Seems there are still some issues.