[JIRA] [google-play-android-publisher-plugin] (JENKINS-33518) Invalid JWT: Token must be a short-lived token and in a reasonable timeframe

46 views
Skip to first unread message

dmp@softick.com (JIRA)

unread,
Mar 14, 2016, 6:42:02 AM3/14/16
to jenkinsc...@googlegroups.com
Dmytro Pohromskyy created an issue
 
Jenkins / Bug JENKINS-33518
Invalid JWT: Token must be a short-lived token and in a reasonable timeframe
Issue Type: Bug Bug
Assignee: Christopher Orr
Components: google-play-android-publisher-plugin
Created: 14/Mar/16 10:41 AM
Environment: Linux jenkins 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u2 x86_64 GNU/Linux
Jenkins 1.652
Google Play Android Publisher Plugin 1.4.1
Priority: Blocker Blocker
Reporter: Dmytro Pohromskyy

First of all thank you for the excellent plugin and your hard work.

Unfortunately I'm started to receive the following error, I have tried to upload a newer key from the Google, but no luck.

Upload failed: org.jenkinsci.plugins.googleplayandroidpublisher.UploadException: java.security.GeneralSecurityException: Unable to retrieve an access token with the provided credentials
at org.jenkinsci.plugins.googleplayandroidpublisher.CredentialsHandler.getServiceAccountCredentials(CredentialsHandler.java:60)
at org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.perform(ApkPublisher.java:301)
at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
at hudson.model.Build$BuildExecution.post2(Build.java:185)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
at hudson.model.Run.execute(Run.java:1766)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Caused by: java.security.GeneralSecurityException: Unable to retrieve an access token with the provided credentials
at com.google.jenkins.plugins.credentials.oauth.RemotableGoogleCredentials.<init>(RemotableGoogleCredentials.java:70)
at com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials.forRemote(GoogleRobotCredentials.java:204)
at org.jenkinsci.plugins.googleplayandroidpublisher.CredentialsHandler.getServiceAccountCredentials(CredentialsHandler.java:36)
... 10 more
Caused by: com.google.api.client.auth.oauth2.TokenResponseException: 400 Bad Request

{ "error" : "invalid_grant", "error_description" : "Invalid JWT: Token must be a short-lived token and in a reasonable timeframe" }

at com.google.api.client.auth.oauth2.TokenResponseException.from(TokenResponseException.java:105)
at com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:287)
at com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307)
at com.google.api.client.googleapis.auth.oauth2.GoogleCredential.executeRefreshToken(GoogleCredential.java:269)
at com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489)
at com.google.jenkins.plugins.credentials.oauth.RemotableGoogleCredentials.<init>(RemotableGoogleCredentials.java:64)
... 12 more

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

chris@orr.me.uk (JIRA)

unread,
Mar 15, 2016, 6:29:01 PM3/15/16
to jenkinsc...@googlegroups.com
Christopher Orr commented on Bug JENKINS-33518
 
Re: Invalid JWT: Token must be a short-lived token and in a reasonable timeframe

I've heard of another report of this — doesn't sound good.

I would try getting in touch with Google Play Developer Support, asking them about this error, as it seems to be a problem on their end, and the API certainly isn't always very stable.

When I get a chance, I will check whether there is a newer version of the Google Play Java library available, as that's what this plugin uses.

wataru.oguchi.0to1@gmail.com (JIRA)

unread,
Mar 24, 2016, 12:33:01 PM3/24/16
to jenkinsc...@googlegroups.com

dmp@softick.com (JIRA)

unread,
Apr 22, 2016, 7:56:02 AM4/22/16
to jenkinsc...@googlegroups.com

I can confirm that I've resolved the original problem by synchronizing Jenkins' server time. Thank you wataru oguchi for pointing out to the relevant StackOverflow thread. I'm closing the issue.

dmp@softick.com (JIRA)

unread,
Apr 22, 2016, 7:56:02 AM4/22/16
to jenkinsc...@googlegroups.com
Dmytro Pohromskyy closed an issue as Not A Defect
 
Change By: Dmytro Pohromskyy
Status: Open Closed
Resolution: Not A Defect

chris@orr.me.uk (JIRA)

unread,
Apr 22, 2016, 8:02:01 AM4/22/16
to jenkinsc...@googlegroups.com
Christopher Orr commented on Bug JENKINS-33518
 
Re: Invalid JWT: Token must be a short-lived token and in a reasonable timeframe

Thanks for the update!

I've added a troubleshooting note for this issue to this plugin's wiki page.

Reply all
Reply to author
Forward
0 new messages