OGCS Version: v2.7.6
Installed or Portable: Portable
Problem Description
The following error in the logfile is treated as non-retryable. It results in the dialog: "The synchronisation failed - check the Sync tab for further details. Do you want to try again?" Sync is then paused until the user responds to the dialog.
In my opinion, this should be treated as a retryable error, subject to AutoRetry behavior with no user prompting.
2018-10-10 02:27:56,259 WARN 11 OutlookGoogleCalendarSync.GoogleOgcs.Calendar [0] - Google.Apis.Requests.RequestError
Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/calendar-json.googleapis.com/quotas?project=XXX [403]
Errors [
Message[Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/calendar-json.googleapis.com/quotas?project=XXX] Location[ - ] Reason[dailyLimitExceeded] Domain[usageLimits]
]
2018-10-10 02:27:56,259 WARN 11 OutlookGoogleCalendarSync.GoogleOgcs.Calendar [0] - Google's free Calendar quota has been exhausted! New quota comes into effect 08:00 GMT.
2018-10-10 02:27:56,390 INFO 11 OutlookGoogleCalendarSync.SyncTimer [0] - Next sync scheduled for Wednesday, October 10, 2018 - 4:26:56 AM
2018-10-10 02:27:56,390 ERROR 11 OutlookGoogleCalendarSync.OGCSexception [0] - System.ApplicationException: Google's free daily Calendar quota has been exhausted! New quota comes into effect 08:00 GMT.
2018-10-10 02:27:56,391 ERROR 11 OutlookGoogleCalendarSync.OGCSexception [0] - Code: 0x80131600;-2146232832
2018-10-10 02:27:56,391 ERROR 11 OutlookGoogleCalendarSync.OGCSexception [0] - InnerException:-
2018-10-10 02:27:56,391 ERROR 11 OutlookGoogleCalendarSync.OGCSexception [0] - Google.GoogleApiException: Google.Apis.Requests.RequestError
Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/calendar-json.googleapis.com/quotas?project=XXX [403]
Errors [
Message[Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/calendar-json.googleapis.com/quotas?project=XXX] Location[ - ] Reason[dailyLimitExceeded] Domain[usageLimits]
]
2018-10-10 02:27:56,391 ERROR 11 OutlookGoogleCalendarSync.OGCSexception [0] - Code: 0x80131500;-2146233088
2018-10-10 02:27:56,391 DEBUG 11 OutlookGoogleCalendarSync.Console [0] - The following error was encountered during sync:-
2018-10-10 02:27:56,391 DEBUG 11 OutlookGoogleCalendarSync.Console [0] - ERROR: Unable to connect to the Google calendar.
I also get same / similar google daily quota error. See issue #603 opened 2 weeks ago.
In GoogleOgcs/GoogleCalendar.cs, in handleAPIlimits() near the bottom, when it realizes that you have a quota issue, it figures out when the next sync should be (after 8am GMT) and returns apiException.freeAPIexhausted. Any place this is caught, it's re-thrown as a System.ApplicationException.
But in Sync/Engine.cs, the block starting at line 193, this exception isn't handled. It results in SyncResult.Fail, and that's why you get the dialog that blocks further syncs until you click Yes.
I think there needs to be additional handling for this exception. It's already scheduled the next sync, so it just needs to ignore the error and wait for that to happen.
Also in #603 I added instructions for creating your own API credentials. This will basically guarantee that you never have a quota issue to begin with.
:package: This should now be resolved with v2.7.6.5.zip (see instructions for applying).
Thanks for your help @ronisaacson
Kinda dark there!!!!!!
Kevin
319-382-4461
From: Paul Woolcock notifications@github.com
Sent: Sunday, October 14, 2018 5:37:23 PM
To: phw198/OutlookGoogleCalendarSync
Cc: kwagner115; Comment
Subject: Re: [phw198/OutlookGoogleCalendarSync] Quota failure is treated as non-retryable (#613)
📦 This should now be resolved with v2.7.6.5.ziphttps://github.com/phw198/OutlookGoogleCalendarSync/files/2476923/v2.7.6.5.zip (see instructions for applyinghttps://github.com/phw198/OutlookGoogleCalendarSync/wiki/Reporting-Problems#applying-a-hotfix).
Thanks for your help @ronisaacsonhttps://github.com/ronisaacson
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/phw198/OutlookGoogleCalendarSync/issues/613#issuecomment-429669365, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AgVYssejCsB3Wsq0biBo5GHUYNO64It_ks5uk7yjgaJpZM4XWsvl.
Just installed. Will monitor daily.
Kevin
I am running 2.7.6.5 and got the quota message overnight.
@kwagner115 the question is whether the message was a blocking popup box, or whether it was just a advisory within the sync window along with an automatic reschedule for 8AM GMT when there would be new quota available....?
Here is the log that I believe is related to the message.
2018-10-23 00:01:27,157 DEBUG 1 OutlookGoogleCalendarSync.Sync.PushSyncTimer [0] - Changes found for Push sync.
2018-10-23 00:01:27,173 INFO 1 OutlookGoogleCalendarSync.Sync.Engine [0] - Scheduled sync started (PushTimer).
2018-10-23 00:01:27,314 DEBUG 1 OutlookGoogleCalendarSync.Console [0] - Sync version: 2.7.6.5
2018-10-23 00:01:27,314 DEBUG 1 OutlookGoogleCalendarSync.Console [0] - Sync started at 10/23/18 12:01:27 AM
2018-10-23 00:01:27,314 DEBUG 1 OutlookGoogleCalendarSync.Console [0] - Syncing from 10/18/18 to 10/24/19
2018-10-23 00:01:27,314 DEBUG 1 OutlookGoogleCalendarSync.Console [0] - Outlook ↔ Google
2018-10-23 00:01:27,845 INFO 1 OutlookGoogleCalendarSync.Sync.Engine [0] - Stop monitoring for Outlook appointment changes...
2018-10-23 00:01:27,845 INFO 1 OutlookGoogleCalendarSync.Sync.SyncTimer [0] - Next sync scheduled for October 23, 2018 @ 12:07:20 AM + Push
2018-10-23 00:01:27,845 INFO 26 OutlookGoogleCalendarSync.Console [0] - Finding Calendar Entries
2018-10-23 00:01:27,955 INFO 26 OutlookGoogleCalendarSync.Console [0] - Scanning Outlook calendar...
2018-10-23 00:01:28,189 INFO 26 OutlookGoogleCalendarSync.Console [0] - 69 Outlook calendar entries found.
2018-10-23 00:01:28,298 INFO 26 OutlookGoogleCalendarSync.Console [0] - Scanning Google calendar...
2018-10-23 00:01:28,298 DEBUG 26 OutlookGoogleCalendarSync.GoogleOgcs.Calendar [0] - Retrieving all events from Google: 10/18/18 -> 10/24/19
2018-10-23 00:01:28,376 WARN 26 OutlookGoogleCalendarSync.GoogleOgcs.Calendar [0] - Google.Apis.Requests.RequestError
Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/calendar-json.googleapis.com/quotas?project=653617509806 [403]
Errors [
Message[Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/calendar-json.googleapis.com/quotas?project=653617509806] Location[ - ] Reason[dailyLimitExceeded] Domain[usageLimits]
]
2018-10-23 00:01:28,376 WARN 26 OutlookGoogleCalendarSync.GoogleOgcs.Calendar [0] - Google's free Calendar quota has been exhausted! New quota comes into effect 08:00 GMT.
2018-10-23 00:01:29,956 INFO 26 OutlookGoogleCalendarSync.Sync.SyncTimer [0] - Next sync scheduled for October 23, 2018 @ 3:00:28 AM + Push
2018-10-23 00:01:30,127 DEBUG 26 OutlookGoogleCalendarSync.Console [0] - The following error was encountered during sync:-
2018-10-23 00:01:30,127 DEBUG 26 OutlookGoogleCalendarSync.Console [0] - ERROR: Unable to connect to the Google calendar. OGCS will automatically try again when new API quota is available.
2018-10-23 00:01:30,285 ERROR 1 OutlookGoogleCalendarSync.Console [0] - Sync encountered a problem and did not complete successfully.
2018-10-23 00:01:30,285 ERROR 1 OutlookGoogleCalendarSync.Console [0] - 1 consecutive syncs failed.
2018-10-23 00:01:30,566 DEBUG 1 OutlookGoogleCalendarSync.XMLManager [0] - Setting 'LastSyncDate' updated to '10/23/18 12:01:27 AM'
2018-10-23 00:01:30,800 DEBUG 1 OutlookGoogleCalendarSync.Sync.Engine [0] - Create the timer for the push synchronisation
2018-10-23 02:01:31,121 WARN 1 OutlookGoogleCalendarSync.OutlookOgcs.Calendar [0] - The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
2018-10-23 02:01:31,121 INFO 1 OutlookGoogleCalendarSync.OutlookOgcs.Calendar [0] - Resetting connection to Outlook.
2018-10-23 02:01:31,121 DEBUG 1 OutlookGoogleCalendarSync.OutlookOgcs.OutlookNew [0] - De-referencing all Outlook application objects.
2018-10-23 02:01:31,230 INFO 1 OutlookGoogleCalendarSync.OutlookOgcs.OutlookNew [0] - Disconnecting from Outlook application.
2018-10-23 02:01:31,246 INFO 1 OutlookGoogleCalendarSync.OutlookOgcs.Calendar [0] - Attaching to the already running Outlook process.
Kevin
I think that looks good. Are you in timezone GMT-6 and what is the scheduled sync interval you have configured?
I am in US central time. Updates every 2 hours, outlook pushed immediately.
Kevin
319-382-4461
From: Paul Woolcock notifications@github.com
Sent: Wednesday, October 24, 2018 12:19:43 PM
To: phw198/OutlookGoogleCalendarSync
Cc: kwagner115; Mention
Subject: Re: [phw198/OutlookGoogleCalendarSync] Quota failure is treated as non-retryable (#613)
I think that looks good. Are you in timezone GMT-6 and what is the scheduled sync interval you have configured?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/phw198/OutlookGoogleCalendarSync/issues/613#issuecomment-432749558, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AgVYsrauSlK1sqksDPjeE0EKDxcp8rxmks5uoKEvgaJpZM4XWsvl.