We use the grommunio appliance and have several users retrieving the data over Exchange ActiveSync. Mail client on user side can be anything from Mobile with Android or iOS, Outlook, Windows Live Mail, Thunderbird etc.
We get many complaints that the data on client side is not synchronized anymore. In such cases the log shows a StateNotFoundException like the one below. A service reload or even server restart as mentioned in another bug doesn't solve this issue. The only workaround so far is:
- Remove the device from "Mobile devices" in the backend
- Delete the account on the users mail client and add it again
05/10/2022 07:57:05 [73447] [ INFO] [user@domain.com] StateNotFoundException: Grommunio->getStateMessage(): Could not locate the state message 'devicedata' (counter: false) - code: 0 - file: /usr/share/grommunio-sync/lib/grommunio/grommunio.php:1937
05/10/2022 07:57:05 [73447] [ INFO] [user@domain.com] Announcing latest AS version to device: 12.0,12.1,14.0,14.1
05/10/2022 07:57:05 [73447] [ INFO] [user@domain.com] StateNotFoundException: Grommunio->getStateMessage(): Could not locate the state message '23101e68-ece6-4c31-8663-a49a259fa8a6-hc' (counter: 1) - code: 0 - file: /usr/share/grommunio-sync/lib/grommunio/grommunio.php:1937
05/10/2022 07:57:05 [73447] [ INFO] [user@domain.com] StateNotFoundException: Grommunio->getStateMessage(): Could not locate the state message '23101e68-ece6-4c31-8663-a49a259fa8a6' (counter: 1) - code: 0 - file: /usr/share/grommunio-sync/lib/grommunio/grommunio.php:1937
05/10/2022 07:57:05 [73447] [ INFO] [user@domain.com] StateNotFoundException: Grommunio->getStateMessage(): Could not locate the state message '23101e68-ece6-4c31-8663-a49a259fa8a6-fd' (counter: false) - code: 0 - file: /usr/share/grommunio-sync/lib/grommunio/grommunio.php:1937
05/10/2022 07:57:05 [73447] [ INFO] [user@domain.com] Linking device ID 'typeapp262542783' to user 'user@domain.com'
05/10/2022 07:57:05 [73447] [ INFO] [user@domain.com] StateNotFoundException: Grommunio->getStateMessage(): Could not locate the state message 'devicedata' (counter: false) - code: 0 - file: /usr/share/grommunio-sync/lib/grommunio/grommunio.php:1937