Unable to re-enable Google Cloud AppEngine Application - google-app-engine

I used to run a NodeJS Flexible Environment AppEngine application on my project and later disabled it.
Now i am trying to deploy a Java based Standard Environment AppEngine application to the same project.
When i tried to deploy i got following error
[INFO] GCLOUD: ERROR: (gcloud.app.deploy) Unable to deploy to application [project_name] with status [USER_DISABLED]: Deploying to stopped apps is not allowed.
Then realised i disabled the AppEngine in past. Now when i goto AppEngine > Settings and click on 'Enable Application' its saying enabling application and after some time its going back to the same state. I am getting the same issue while deploying.
Am i missing something here? Is anything else i need to do first to re-enable the disabled AppEngine Application?

Related

Set goproxy in cloud build on deploying to appengine

We are deploying our Go app to Google app engine with the command: gcloud app deploy
This creates a cloud build, which normally works fine. However, sometimes there are some dependencies which are flaky (sometimes unavailable or down) or gone (revision no longer existing).
These issues break our complete deploy and build and we can only get rid of the dependency or wait until it is fixed on that side.
Solution for this is using a proxy for the go dependencies (like https://proxy.golang.org/), but I don't have any way of setting this setting for our app engine deployments.
Does anyone know how I can use a proxy for google app engine deploys to make our builds more stable?

can't run or deploy Google App Engine from IntelliJ

I'd like to deploy an app on GAE, but I think I must be missing something.
I've downloaded the google cloud code plugin for IntelliJ.
I've installed the gcloud SDK
I've authenticated with my google account
I've created a new project of type GAE project, which in the project structure window shows the GAE facet, and has an appengine-web.xml file.
Yet when I try and run my new project the log shows an error:
21:51 Error running 'Google App Engine Deployment': Deployment is not selected
I presume it's referring to this window:
As you can see there are no deployments. When I try to edit the Run configuration, there's not much there:
What am I doing wrong?
what happens if you try adding AppEngine support explicitly, i.e. using Tools -> Cloud Code -> App Engine -> Add App Engine Support -> App Engine Standard menu? Will the deployment target appear or anything changes?

Google App Engine: Build Timed Out during Deployment

Edit: Google Cloud at its finest. Made absolutely no changes but deployed fine this morning.
Error after ~10m of deployment (10+ deploy attempts).
I've changed the app to add a simply function with less than 10 lines of code. It has no affect on libraries and uses native python only and hence I'm not sure how it can affect the deployment.
I've tested the app and it runs fine locally.
Here is the error that I get:
ERROR: (gcloud.app.deploy) Cloud build failed. Check logs at
https://console.cloud.google.com/xxxxxxxx/ Failure status: UNKNOWN:
Error Response: [4] DEADLINE_EXCEEDED
Previously to that, logs don't show any errors, in fact everything is going as expected.
Newest entries first:
9302e2430a0e: Pushed
4f56eb74b6bf: Pushed
21df82f90a72: Layer already exists
f0e2b3558b28: Layer already exists
99c71ba2c817: Layer already exists
2483da9621d1: Layer already exists
af09d2110abe: Layer already exists
d968669f4b42: Pushed
4b1e707066a6: Layer already exists
55530b72c8c8: Layer already exists
62c169a7d462: Layer already exists
According to this you can change the build timeout setting with:
gcloud config set app/cloud_build_timeout 1000
Setting it to 1000 seconds in this example.
I have this problem too when deploying my custom image to AppEngine flex. My image requires a few ML models and takes around 2 hours to build and GAE does not seem to like it.
To build your container images outside of Google Cloud Platform, you must first upload your images to a container image repository before you can deploy your images to App Engine with the gcloud app deploy command.
In short, push your image to Google Container Registry or container image repository of your choice, then deploy with this command
gcloud app deploy --image-url gcr.io/YOUR_PROJECT_ID/YOUR_CONTAINER_IMAGE
More info here and here
For my case, I've found out the problem was that I have the same version for all gcloud app deploy command.
When there's traffic, the deployment will timeout.

Google Managed VMs error while deploying

We just moved to VMs and while deploying we are having issues in Java Environment. The error is
Error Create Config Bucket failed. during VmCreateConfigBucket.
Then tried all the steps in the Google Page - deploying to Production. Nothing seems to work. (https://cloud.google.com/appengine/docs/managed-vms/sdk)
Then We manually tried to create the buckets in Google Console. Retried our deployement but got the same error.
DETAILED Error message in the LOG :: Unable to update:
java.lang.RuntimeException: Fatal problem encountered during deployment. Please refer to the logs for more information.
at com.google.appengine.tools.admin.AppVersionUpload.isServing(AppVersionUpload.java:900)
at com.google.appengine.tools.admin.AppVersionUpload.access$100(AppVersionUpload.java:41)
at com.google.appengine.tools.admin.AppVersionUpload$2.call(AppVersionUpload.java:779)
at com.google.appengine.tools.admin.AppVersionUpload$2.call(AppVersionUpload.java:776)
at com.google.appengine.tools.admin.AppVersionUpload.retryWithBackoff(AppVersionUpload.java:1029)
at com.google.appengine.tools.admin.AppVersionUpload.commit(AppVersionUpload.java:776)
Removing the image did the trick for me.
docker rmi <image>
Then:
gcloud preview app deploy --version=my_version my_dir/app.yaml

No instances in app engine admin console

I just deployed an app on Google App Engine and everything went fine. The app runs smoothly at < project-id >.appspot.com. I deployed it a few more times and one time there was an error:
05:56 PM Unknown error TEMPORARY_ERROR: . Deployed Version: 5.379937995233868117
ERROR: Unknown error TEMPORARY_ERROR: . Deployed Version: 5.379937995233868117
05:56 PM Rolling back the update. This can sometimes take a while since a VM version is being rolled back.
Could not start serving the given version.
ERROR: (gcloud.preview.app.deploy) Command failed with error code [1]
The app was still running and I could manage it to successfully deploy it again. But since then when I go to the admin console there is not a single instance listed. Only a small grey icon is shown with a flash. The path to the icon is '//ssl.gstatic.com/ui/v1/activityindicator/offline.png' (I looked it up in the CSS).
The app runs on a managed VM with a custom runtime.
Can anybody help me?
I was planning to deploy a managed VM with custom runtime and was watching this Google I/O bytes video and it seems it's expected. The manged vms with custom runtimes will show under Compute Engine on your developer console (4:35 in this video). You will be able to manage your App through App Engine on developer console.

Resources