T
Twenty2mo ago
Raph

Gmail email sync (not calendar sync) intermittently stuck.

Hey All, I'm back again wrestling with the email sync issue that seems to hang or not complete. Does anyone have any verbose methods for watching the command work? The logs are relatively opaque and not very informative. Thus far I've used all of the following commands:
docker exec -it app-worker command:prod cron:messaging:messages-import
docker exec -it app-worker yarn command:prod cron:messaging:message-list-fetch
docker exec -it app-worker yarn command:prod cron:calendar-event-list-fetch
docker exec -it app-worker yarn command:prod cron:messaging:ongoing-stale
docker exec -it app-worker yarn command:prod cron:calendar:ongoing-stale
docker exec -it app-worker command:prod cron:messaging:messages-import
docker exec -it app-worker yarn command:prod cron:messaging:message-list-fetch
docker exec -it app-worker yarn command:prod cron:calendar-event-list-fetch
docker exec -it app-worker yarn command:prod cron:messaging:ongoing-stale
docker exec -it app-worker yarn command:prod cron:calendar:ongoing-stale
I'm not sure if the stale process is killing my imports, but the app has stopped importing emails. I'm running these commands via cron every 30 minutes. Any ideas?
5 Replies
thomast
thomast2mo ago
@Raphaël could you have a look 🙏
Raphaël
Raphaël2mo ago
Hello @Raph, you should only run these commands once, not every 30 minutes, each command will register a cron job. We don't have any verbose method What is your messageChannel and calendarChannel syncStatus and syncStage?
Sebastian
Sebastian3w ago
@Raphaël looks like I have similar issue, or at least one of my users is complaining that contact sync is stuck. Where and how can I check your mentioned "messageChannel and calendarChannel syncStatus and syncStage"?
Raphaël
Raphaël3w ago
Hello @Sebastian ! You can look inside your database, inside your workspace schema, you have a messageChannel and a calendarChannel table. In each there is a syncStatus and a syncStage column.
Sebastian
Sebastian3w ago
for message channel I see syncStatus: [null] syncStage: FULL_MESSAGE_LIST_FETCH_PENDING syncedAt: [null] for calendar channel: syncStatus: [null] syncStage: FULL_CALENDAR_EVENT_LIST_FETCH_PENDING syncedAt: [null] how do I force sync? @Raphaël how can I force the sync manually?

Did you find this page helpful?