Unable to upload app after recent SDK update

115 views
Skip to first unread message

Ian Rose

unread,
Apr 6, 2016, 3:14:59 PM4/6/16
to google-appengine-go
I recently updated our Go SDK from 1.9.31 to 1.9.35 and now I am getting the following error whenever our deployer (which is a GCE instance) tries to deploy a new version of our App Engine app.  Here is some output:

$ appcfg.py --authenticate_service_account -A mn-load update test/
07:10 PM Application: mn-load (was: None); version: 1
07:10 PM Host: appengine.google.com
07:10 PM Starting update of app: mn-load, version: 1
07:10 PM Getting current resource limits.
2016-04-06 19:10:47,562 ERROR appcfg.py:2396 An error occurred processing file '': HTTP Error 401: Invalid response 403. Too many auth attempts.. Aborting.
Error 401: --- begin server output ---


--- end server output ---


Note that if I remove the " --authenticate_service_account" flag it kicks me over to a google login page so I suspect that the error is somewhere involved in obtaining an oauth token from the service account.

thanks,
- Ian

s.z...@beaconinside.com

unread,
May 23, 2016, 10:09:46 PM5/23/16
to google-appengine-go
DId you find a solution for the problem? I have the same issue when using --authenticate_service_account. With 1.9.36 and 1.9.37 I get the following error:

Traceback (most recent call last):
  File "/go_appengine/appcfg.py", line 133, in <module>
    run_file(__file__, globals())
  File "/go_appengine/appcfg.py", line 129, in run_file
    execfile(_PATHS.script_file(script_name), globals_)
  File "/go_appengine/google/appengine/tools/appcfg.py", line 5403, in <module>
    main(sys.argv)
  File "/go_appengine/google/appengine/tools/appcfg.py", line 5394, in main
    result = AppCfgApp(argv).Run()
  File "/go_appengine/google/appengine/tools/appcfg.py", line 2957, in Run
    self.action(self)
  File "/go_appengine/google/appengine/tools/appcfg.py", line 5050, in __call__
    return method()
  File "/go_appengine/google/appengine/tools/appcfg.py", line 3759, in Update
    self.UpdateUsingSpecificFiles()
  File "/go_appengine/google/appengine/tools/appcfg.py", line 3731, in UpdateUsingSpecificFiles
    rpcserver = self._GetRpcServer()
  File "/go_appengine/google/appengine/tools/appcfg.py", line 3216, in _GetRpcServer
    oauth2_parameters = self._GetOAuth2Parameters()
  File "/go_appengine/google/appengine/tools/appcfg.py", line 3248, in _GetOAuth2Parameters
    credentials=self._GetCredentials()))
  File "/go_appengine/google/appengine/tools/appcfg.py", line 3278, in _GetCredentials
    return oauth2client_gce.AppAssertionCredentials()
  File "/go_appengine/lib/oauth2client/oauth2client/util.py", line 137, in positional_wrapper
    return wrapped(*args, **kwargs)
TypeError: __init__() takes exactly 2 arguments (1 given)

ian...@fullstory.com

unread,
May 24, 2016, 10:56:14 AM5/24/16
to google-appengine-go, s.z...@beaconinside.com
Ugh.  I just upgraded to 1.9.37 to work around this issue, and now I am getting the same error as you...

Ian Rose

unread,
May 24, 2016, 11:57:37 AM5/24/16
to google-appengine-go, s.z...@beaconinside.com, ian...@fullstory.com
FYI it appears in my testing that changing

return oauth2client_gce.AppAssertionCredentials()

on line 3278 of appcfg.py to 

return oauth2client_gce.AppAssertionCredentials(['https://www.googleapis.com/auth/cloud-platform'])

will make things work again.
Reply all
Reply to author
Forward
0 new messages