[google-appengine] Re: deploy error - token exchange failed

2019-10-17 Thread 'George (Cloud Platform Support)' via Google App Engine
You should rather run gcloud auth application-default login 
, 
if your intention is to acquire new user credentials to use for Application 
Default Credentials. 

How did you grant roles to your user account, exactly? 

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a2ceff6d-1ab3-4dd9-a216-281de5075c46%40googlegroups.com.


[google-appengine] Re: deploy error - token exchange failed

2019-10-08 Thread Laurent Parodi
Hello,

Thanks for the reply, I'm really lost. 

Granted roles to my user account are:

App Engine Admin

Cloud Build Editor

Owner

Storage Admin


Then, I log on : 

@nuc:~/nodejs-docs-samples/appengine/hello-world/standard$ gcloud auth login

Go to the following link in your browser:



https://accounts.google.com/o/oauth2/auth?code_challenge=rg4Kgf6ucDNPqHSyi3QyicMNO623iRBt4v0wMAMaLM0=select_account_challenge_method=S256_type=offline_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob_type=code_id=32555940559.apps.googleusercontent.com=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fappengine.admin+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcompute+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Faccounts.reauth



Enter verification code: 
4/rwFIdCe_S7C63_y0P0tvGV8zK4zJRplLKFXhb0VX9XTVz24KqZsBADg

WARNING: `gcloud auth login` no longer writes application default 
credentials.

If you need to use ADC, see:

  gcloud auth application-default --help


You are now logged in as [xx....@zz.com].

Your current project is [lp-sandbox-254814].  You can change this setting 
by running:

  $ gcloud config set project PROJECT_ID


Then, I run the deploy:


l@nuc:~/nodejs-docs-samples/appengine/hello-world/standard$ gcloud app 
deploy

Services to deploy:


descriptor:  
[/home/l/nodejs-docs-samples/appengine/hello-world/standard/app.yaml]

source:  
[/home/l/nodejs-docs-samples/appengine/hello-world/standard]

target project:  [lp-sandbox-254814]

target service:  [default]

target version:  [20191007t222332]

target url:  [https://lp-sandbox-254814.appspot.com]



Do you want to continue (Y/n)?  y


Beginning deployment of service [default]...

╔╗

╠═ Uploading 0 files to Google Cloud Storage═╣

╚╝

File upload done.

Updating service [default]...failed.

ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build 
bc837367-c520-48f4-a734-a5e86f33aa30 status: FAILURE.

Build error details: 
{"error":{"errorType":"BuildError","canonicalCode":"INVALID_ARGUMENT","errorId":"A815B8B7","errorMessage":"INFO
 
FTL version node-v0.17.0\nINFO Beginning FTL build for node\nINFO   
  FTL arg passed: exposed_ports None\nINFO FTL arg passed: 
cache_repository 
eu.gcr.io/lp-sandbox-254814/app-engine-tmp/build-cache/ttl-7d\nINFO FTL 
arg passed: tar_base_image_path None\nINFO FTL arg passed: 
export_cache_stats False\nINFO FTL arg passed: builder_output_path 
\"\"\nINFO FTL arg passed: name 
eu.gcr.io/lp-sandbox-254814/app-engine-tmp/app/ttl-2h:77c7b674-1333-4cdc-9a6d-5631eca997be\nINFO
 
FTL arg passed: ttl 168\nINFO FTL arg passed: global_cache 
False\nINFO FTL arg passed: cache True\nINFO FTL arg passed: upload 
True\nINFO FTL arg passed: sh_c_prefix False\nINFO FTL arg passed: 
fail_on_error True\nINFO FTL arg passed: base 
eu.gcr.io/gae-runtimes/nodejs10:nodejs10_20190827_10_16_2_RC00\nINFO FTL 
arg passed: output_path None\nINFO FTL arg passed: cache_key_version 
v0.17.0\nINFO FTL arg passed: cache_salt \nINFO FTL arg passed: 
directory /workspace\nINFO FTL arg passed: entrypoint None\nINFO FTL 
arg passed: additional_directory /.gaeconfig\nINFO FTL arg passed: 
destination_path /srv\nINFO FTL arg passed: verbosity NOTSET\nINFO 
starting: 
full build\nINFO starting: builder initialization\nINFO Loading 
Docker credentials for repository 
'eu.gcr.io/gae-runtimes/nodejs10:nodejs10_20190827_10_16_2_RC00'\nINFO 
Loading 
Docker credentials for repository 
'eu.gcr.io/lp-sandbox-254814/app-engine-tmp/app/ttl-2h:77c7b674-1333-4cdc-9a6d-5631eca997be'\nINFO
 
builder initialization took 0 seconds\nINFO starting: build process 
for FTL image\nINFO starting: rm_node_modules\nINFO rm_node_modules 
rm -rf /workspace/node_modules\nINFO `rm_node_modules` stdout:\n\nINFO   
  rm_node_modules took 0 seconds\nINFO using 
descriptor:package-lock.json\nINFO using descriptor:package.json\nINFO   
  starting: checking_cached_packages_json_layer\nDEBUGChecking cache 
for cache_key 
3b92fb27b83299cc2b8917f2ca0220beaabd42233b14dd6f9083dce71babb387\nINFO No 
cached base image found for entry: 
eu.gcr.io/lp-sandbox-254814/app-engine-tmp/build-cache/ttl-7d/node-cache:3b92fb27b83299cc2b8917f2ca0220beaabd42233b14dd6f9083dce71babb387.\nINFO
 
Cache miss on local cache for 
eu.gcr.io/lp-sandbox-254814/app-engine-tmp/build-cache/ttl-7d/node-cache:3b92fb27b83299cc2b8917f2ca0220beaabd42233b14dd6f9083dce71babb387\nINFO
 
No cached dependency layer for 
3b92fb27b83299cc2b8917f2ca0220beaabd42233b14dd6f9083dce71babb387\nINFO 
[CACHE][MISS] 
v0.17.0:NODE-\u003e3b92fb27b83299cc2b8917f2ca0220beaabd42233b14dd6f9083dce71babb387\nINFO
 

[google-appengine] Re: deploy error - token exchange failed

2019-10-07 Thread 'George (Cloud Platform Support)' via Google App Engine
Hello Laurent, 

This seems to be an authentication issue. When installing Cloud SDK, have 
your run gcloud auth login 
 to authorize 
gcloud to access the Cloud Platform with Google user credentials? What is 
the exact command you have run to get this output? You mention you employ 
your own user account for Cloud configuration. Does your user account enjoy 
all needed permissions? You may check Setting Up Access Control 

 
to make sure you have granted all needed permissions to your user account. 

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d36dd0ff-114d-46ef-b7d0-dcb3a5d4010e%40googlegroups.com.