Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gcloud preview app deploy throws

I am not sure what I am doing wrong? I can run the app locally in cloud9. gcloud info doesn't show me anything out of the ordinary... any help

xxxxx:~/workspace (master) $ gcloud preview app deploy --version v1
You are about to deploy the following modules:
 - valued-vault-xxxxx/default (from [/home/ubuntu/workspace/app.yaml])
     Deployed URL: [https://valued-vault-xxxxx.appspot.com]

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

Beginning deployment...
Copying files to Google Cloud Storage...
Synchronizing files to [<googlecloudsdk.api_lib.app.cloud_storage.BucketReference object at 0x7f506914f790>].
File upload done.
Updating module [default]...failed.
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": "Conflicting SHA1 sum for file. Expected \"d4fc6996_1e0f9444_1f1f82b3_f1v2eef4_9d5d12345\" but received \"f7f38209_fa22bdf0_9e73e6ec_7f60a936_9efc1f1e\".",
      "resourceName": "https://storage.googleapis.com/staging.valued-vault-xxxxx.appspot.com/f7f3d209fa25bcf09e73efec7f60a9369efc1f1e",
      "resourceType": "file"
    }
  ]
]
like image 404
wailer Avatar asked Mar 21 '16 03:03

wailer


People also ask

How long does gcloud app deploy take?

When firing of gcloud preview app deploy the whole process takes ~8 minutes, most of which is "updating service".

How does gcloud app deploy work?

The deployment command automatically builds a container image by using the Cloud Build service and then deploys that image to the App Engine flexible environment. The container will include any local modifications that you've made to the runtime image. To programmatically deploy your apps, use the Admin API.

What is Gcloudignore?

gcloudignore file to tell gcloud which files should be not be uploaded for Cloud Build, without it, it defaults to .

What are the options for deploying your application?

Should you choose to deploy your application in the cloud, there are generally speaking three options: infrastructure as a service (IaaS), platform as a service (PaaS), or software as a service (SaaS). Your choice depends on the specific needs for the application.


1 Answers

Follow following steps:

  1. Copy the file part of resource name. Here in your case it will be: f7f3d209fa25bcf09e73efec7f60a9369efc1f1e
  2. Go to google cloud storage and select the bucket: staging.valued-vault-xxxxx.appspot.com.appspot.com. "valued-vault-xxxxx.appspot.com" is the project name.
  3. Then search for "f7f3d209fa25bcf09e73efec7f60a9369efc1f1e" and delete it
  4. Do the deployment again and it should work
like image 94
npd Avatar answered Sep 21 '22 08:09

npd