Oauth_consumer_key does not exist error

  • 7019244
  • 01-Feb-2016
  • 07-Aug-2017

Environment


Retain 3.x/4.x
Google Apps Module
 

Situation


My Google apps module was working. I changed the service account we are using to authenticate with Google Apps, now I am getting this error: oauth_consumer_key does not exist

This error may show up on your Worker page as:
oauth_consumer_key does not exist. com.gwava.caapi.process.RetainDredger.processNormalJob

It may also appear in your worker log as:
00:00:02, 808[RTWQuartzScheduler_Archive_Worker-8] [WARN ] GMailConnector: org.apache.http.NoHttpResponseException: The target server failed to respond
00:00:12, 998[RTWQuartzScheduler_Archive_Worker-8] [WARN ] GMailConnector: org.apache.http.NoHttpResponseException: The target server failed to respond
00:00:24, 534[RTWQuartzScheduler_Archive_Worker-8] [WARN ] GMailConnector: com.google.api.client.googleapis.json.GoogleJsonResponseException: 404 Not Found
{
  "code" : 404,
  "errors" : [ {
    "domain" : "global",
    "message" : "Resource Not Found: userKey",
    "reason" : "notFound"
  } ],
  "message" : "Resource Not Found: userKey"
}
00:00:34, 604[RTWQuartzScheduler_Archive_Worker-8] [WARN ] GMailConnector: com.google.api.client.googleapis.json.GoogleJsonResponseException: 404 Not Found
{
  "code" : 404,
  "errors" : [ {
    "domain" : "global",
    "message" : "Resource Not Found: userKey",
    "reason" : "notFound"
  } ],
  "message" : "Resource Not Found: userKey"

Resolution


This error occurs when you have modified the service account and are using archiving jobs that have previously been configured. Retain has not recognized that the module configuration has changed, and is attempting to run the preconfigured job with the old module/service account information.

To resolve the error, you simply need to unselect whichever mailserver, or mailboxes you have configured for the job, save the job, then re-select the users. Depending on you configuration, it may be more simple to delete all of your jobs, then reconfigure them.

Additional Information

This article was originally published in the GWAVA knowledgebase as article ID 2715.

Feedback service temporarily unavailable. For content questions or problems, please contact Support.