fmbiete / Z-Push-contrib

Z-Push fork with changes that I will try to contrib
GNU Affero General Public License v3.0
134 stars 61 forks source link

z-push sync issue #296

Open chrispugmire opened 1 year ago

chrispugmire commented 1 year ago

Hi I have a problem with z-push syncing to a large folder, so I'm trying to figure out why it doesn't 'see' the new messages. Infact it only ever gets the first 512 messages... I think it's some kind of issue with the imap/mail server in question (as changing backend server apparently fixes it), however, I'm seeing this error in the z-push logs...

07/01/2023 05:13:57 [19218] [FATAL] [test1@test.com] UnavailableException: SqlStateMachine->SetState(): Could not write state: MySQL server has gone away - code: 0 - file: /usr/share/z-push/backend/sqlstatemachine/sqlstatemachine.php:271

Is it possible that this error is preventing it from remembering where it's upto... I also see this:

07/01/2023 05:13:57 [19218] [DEBUG] [test@test.com] HandleSync(): Exported maxItems of messages: 512 / 29375 07/01/2023 05:43:14 [ 5831] [DEBUG] [test@test.com] HandleSync(): Exported maxItems of messages: 512 / 29375 07/01/2023 06:00:42 [ 5833] [DEBUG] [test@test.com] HandleSync(): Exported maxItems of messages: 512 / 29391 07/01/2023 06:26:45 [ 5887] [DEBUG] [test@test.com] HandleSync(): Exported maxItems of messages: 512 / 29376

Any suggestions/clues welcome. Sorry if I"m posting this to the wrong place.

ChrisP.