hi. sorry So to make thing a little clearer I hope:
I follow the standard procedure using appcfg.py using an oauth 2 token. that's when I got that error message 2016-07-01 17:55:25,147 INFO client.py:981 Timeout attempting to reach GCE > metadata service. > Traceback (most recent call last): > File "/home/solstice/Applications/google_appengine/appcfg.py", line 133, > in <module> > run_file(__file__, globals()) > File "/home/solstice/Applications/google_appengine/appcfg.py", line 129, > in run_file > execfile(_PATHS.script_file(script_name), globals_) > File > "/home/solstice/Applications/google_appengine/google/appengine/tools/appcfg.py", > line 5495, in <module> > main(sys.argv) > File > "/home/solstice/Applications/google_appengine/google/appengine/tools/appcfg.py", > line 5486, in main > result = AppCfgApp(argv).Run() > File > "/home/solstice/Applications/google_appengine/google/appengine/tools/appcfg.py", > line 2964, in Run > self.action(self) > File > "/home/solstice/Applications/google_appengine/google/appengine/tools/appcfg.py", > line 5142, in __call__ > return method() > File > "/home/solstice/Applications/google_appengine/google/appengine/tools/appcfg.py", > line 4924, in PerformDownload > run_fn(args) > File > "/home/solstice/Applications/google_appengine/google/appengine/tools/appcfg.py", > line 4829, in RunBulkloader > sys.exit(bulkloader.Run(arg_dict, self._GetOAuth2Parameters())) > File > "/home/solstice/Applications/google_appengine/google/appengine/tools/bulkloader.py", > line 4349, in Run > return _PerformBulkload(arg_dict, oauth2_parameters) > File > "/home/solstice/Applications/google_appengine/google/appengine/tools/bulkloader.py", > line 4242, in _PerformBulkload > return_code = app.Run() > File > "/home/solstice/Applications/google_appengine/google/appengine/tools/bulkloader.py", > line 3408, in Run > oauth2_parameters=self.oauth2_parameters) > File > "/home/solstice/Applications/google_appengine/google/appengine/tools/bulkloader.py", > line 1280, in __init__ > rpc_server_factory=throttled_rpc_server_factory) > File > "/home/solstice/Applications/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py", > line 747, in ConfigureRemoteApiForOAuth > credentials = client.GoogleCredentials.get_application_default() > File > "/home/solstice/Applications/google_appengine/lib/oauth2client/oauth2client/client.py", > line 1211, in get_application_default > return GoogleCredentials._get_implicit_credentials() > File > "/home/solstice/Applications/google_appengine/lib/oauth2client/oauth2client/client.py", > line 1201, in _get_implicit_credentials > raise ApplicationDefaultCredentialsError(ADC_HELP_MSG) > oauth2client.client.ApplicationDefaultCredentialsError: The Application > Default Credentials are not available. They are available if running in > Google Compute Engine. Otherwise, the environment variable > GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining > the credentials. See > https://developers.google.com/accounts/docs/application-default-credentials > for more information. So I don't understand why the oauth token does not work and why I am asked to use another method aka the GOOGLE_APPLICATION_CREDENTIALS file. Anyway... As prompted, I go to https://developers.google.com/accounts/docs/application-default-credentials and follow the procedure from the "How the Application Default Credentials work" paragraph. Then, I use the .json as second auth method as asked as the first oauth does not work. Therefore, I don't get the exception but get a 401 auth error from the site. and finally, I have tried without the s~ and it's still the same 401 error. 2016-04-19 16:40 GMT+02:00 'Nick (Cloud Platform Support)' via Google App Engine <[email protected]>: > Hey solsTiCe, > > Unfortunately it's not quite clear to me which instructions you're > following. Also, it seems strange that you'd need both credentials and a > token. Could you be a little more specific about exactly what steps you're > following to build "myapp.json"? > > Additionally, I can see in your bash script that you use "application=s~ > $appid", could you attempt a test without the '~s'? > > Thanks for clarifying, > > Nick > Cloud Platform Community Support > > On Tuesday, April 19, 2016 at 6:31:54 AM UTC-4, solsTiCe d'Hiver wrote: >> >> hi nick, >> >> - the oauth2 token is associated with an account which is owner of the >> app. >> - to generate the credentials file I followed the instructions in the url >> I gave. It seems both the oath2 token and the credentials is needed ? or >> the oath2 is ignored ? >> -I have not s~ in my bash script. >> >> I am trying to do that on the real server not the local dev server. >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "Google App Engine" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/google-appengine/p9Jx-b5ckx0/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/google-appengine. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-appengine/a17043c9-1219-4274-9db4-b77938e6e9a2%40googlegroups.com > <https://groups.google.com/d/msgid/google-appengine/a17043c9-1219-4274-9db4-b77938e6e9a2%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/CAE4vF2dRF4i5E6uS9fYjUxd_5uN5VUyK%3DV73BKextJBZr2O-Sg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
