I've encountered two issues trrying to deploy apps via the gcloud command
line.
The first is that certain apps just don't want to deploy. They consistently
fail with the same errors:
ERROR: (gcloud.preview.app.deploy) Error Response: [13] Errors were
encountered while copying files to App Engine.
Details: [
[
{
"@type": "type.googleapis.com/google.rpc.ResourceInfo",
"description": "Failed to save static file.",
"resourceName":
"https://storage.googleapis.com/staging.vs-webapps.appspot.com/91bba942464b7d2bf95cc2e88d4b073bb30a640e",
"resourceType": "file"
},
{
"@type": "type.googleapis.com/google.rpc.ResourceInfo",
"description": "Failed to save static file.",
"resourceName":
"https://storage.googleapis.com/staging.vs-webapps.appspot.com/9d30035028551cb4b01f83acf54da1b0b98cf390",
"resourceType": "file"
}
]
]
The files it lists seem (consistently) to be the (compiled) js files I'm
uploading. Though it says 13 errors were encountered, so perhaps I'm only
seeing the first two? --verbosity debug isn't very helpful with additional
details, so hard to know. It occasionally will go through without an error
(maybe 2 out of the last 20 times). Other modules in the same project (and
same basic structure) seem to deploy with no problems... so no idea what
might be the problem here.
HOWEVER, all my newly deployed apps are suffering from the same problem
once deployed...
The content-type of the response that serves the HTML for my app is
application/octet-stream, which forces the browser to just download my
index.html page. So attempting to visit the application's main HTML page
just results in a browser download of the raw html file. That stinks!
I was pulling my hair out until I realized that I was able to deploy these
apps correctly using the old appcfg.py script.
Appengine -- you're really frustrating lately! For those of us in the
gcloud world (and not using just stand-alone appengine), it's really
difficult to figure out the "right" way of doing things. It seems like
there's recently been a push to get people using the old scripts again
(which is slightly annoying after trying to get my team to adopt the gcloud
CLI for the last several months) and things have felt really broken lately.
Sorry to say -- we've loved GAE a long time, but we'll definitely be
looking at alternatives asap.
Would love any insight you have for understanding what has gone wrong with
our gcloud-based deployments.
--
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 http://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/3931fc0d-5220-46c2-ba87-14724ae47056%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.