I tried running gcloud app deploy and got this error in my mac terminal: ERROR: (gcloud.app.deploy) Error Response: [13] CPU Quota Exceeded: in use: 8, requested: 1, limit: 8
This post (link below) said to remove instances in my compute engine instances section, but when I go here I do not see any instances listed. I only see an option to "create an instance." I am using a trial version, can this be the issue? How can I solve this?
Google App Engine : Quota Error
Take look at Compute -> App Engine -> Versions https://console.cloud.google.com/appengine/versions and remove any existing versions. You might be looking at Compute -> Compute Engine instead right now.
Compute engine allows you to create VPS servers, whereas App Engine (that you are deploying to with gcloud app deploy sets your code up on App Engine server.
Related
Following this instruction, I try to deploy a front end app to Google Cloud. On the last step, I get the following error for the command "gcloud app deploy"
(gcloud.app.deploy) Unable to deploy to application [my-app] with status [USER_DISABLED]: Deploying to stopped apps is not allowed.
I take a look at my Google Cloud account and can't find the disabled status.
Where shall I look to solve this problem?
You should be able to re-enable your application by going to App Engine -> Settings when managing your project in the Google Cloud Platform Console.
yeah you need to enable your application here
If the app is enabled in the App Engine Settings, you might not have selected the correct project:
gcloud config set project <app-engine-project-id>
You can see the ID in the right column after clicking on the project name in the Google Cloud Platform header on the website.
I am trying to deploy my node application on Google App Engine Flexible Environment. Previously it was working well but yesterday it starts refusing giving this error:
Error: INVALID_ARGUMENT: The following quotas were
exceeded:BACKEND_SERVICES (quota: 5, used: 5 + needed 1)
How can I sort that problem? I am still using the free trial credit that google gives.
By default, the quota on number of GAE Flex versions you have is 5. A few options to be able to deploy once you hit this limit:
Stop GAE Flex versions: if you have running versions that you don't need, you can stop them to free up the backend services being used by them. That can be accomplished by using gcloud or using Cloud Console (go to App Engine => Versions):
https://console.cloud.google.com/appengine/versions
Delete Backend Services: if you're using backend services directly and don't need them, you could delete them. That can also be done via gcloud or Cloud Console (go to Networking => Load Balancing):
https://console.cloud.google.com/networking/loadbalancing/advanced/backendServices/list
Quota Increase: Alternatively, you can request a backend service quota increase:
https://support.google.com/cloud/answer/6075746?hl=en
My team and I are working on the Trendy Lights Tutorial.
We have set up all the files and also have converted the .p12 key to .pem key but failed to run the app on the Google Cloud Platform and constantly got the error message saying:
You do not have permission to access project [...] and service
"cloudbuilt.googleapis.com" is not for consumer..."
We have already whitelisted our service account for the use of Earth Engine. Does anyone know what the problem might be?
Thank you so much!
I see that you are attempting to deploy your application to the App Engine Flexible Environment.
The Flexible environment differs from the Standard environment in that it gives you more control over the individual instances that are running your deployed application. It does this by hosting your application within Docker on Compute Engine virtual machines.
Therefore, you will need to enable the Compute Engine API for your project so that the GCloud tool can start new Compute Engine virtual machines when you deploy your application.
Note: Since the Flexible environment uses Compute Engine resources, you will also need to enable billing for your project.
If after performing the above you still experience the 'cloudbuild.googleapis.com' error, I ask that you run gcloud components update, then ensure that the value of account seen in the output of the command gcloud info has Owner or Editor permissions in your project.
If it still persists after all of the above, you should then open a Public Issue Tracker to inform our backend team of the issue.
I consider starting a PHP project in App Engine and would like to use Cloud 2SQL in the second generation.
Now I am confused if this is possible or not, since I have found different information on the google sites.
https://cloud.google.com/appengine/docs/php/cloud-sql/
Note: Access to Google Cloud SQL Second Generation instances can be granted only for apps running in the flexible environment. Learn more.
https://cloud.google.com/sql/docs/dev-access
App Engine standard environment to a Second Generation instance
You connect from Google App Engine standard environment) to Second Generation instances by completing the following steps:
Granting the application access (if required)
Updating your application to provide the appropriate connection string.
Is it now possible or not?
It is possible to use Cloud SQL v2 on App Engine standard.
Check out Terrance Ryan's (Developer Advocate for GCP) blog post on this topic [0], more specifically:
"If you are an App Engine customer and looked at v2 before, it did not support App Engine. However, that appears to have changed: you can now access Cloud SQL v2 from App Engine standard environment, or App Engine flexible environment."
[0] http://terrenceryan.com/blog/index.php/cloud-sql-v1-vs-v2/
I am getting very confused with the whole cloud console api console thing.
I just created a new Cloud Console project in order to setup some GCE instances. It seems to have auto-created an App Engine app. That is fine, but when I go to enable billing, it tells me that it cannot enable billing for app engine apps and that I need to do that in App Engine Console.
Earlier this week, I tried to setup a project to include both an existing App Engine app and Compute Engine. I was asked to got through the request access process like before GCE was available.
I created a project in the Cloud Console by starting in the App Engine console and choosing Cloud Integration. I said there was an error creating the project, but it seems like it created it. However, when I go to that project in Cloud Console, there is no option to even add Compute Engine.
Two questions:
(1) Is there something outlining the differences between Cloud Console and API Console and when it is most appropriate to use one over the other?
(2) How do I get a project (in either one I suppose) that includes an existing App Engine app and Compute Engine resources that I want to create in this project?
Thanks for your help.
-- Jay
Cloud Console is essentially a planned replacement for the API console,
however it may not have all functionality yet
Try going to appengine admin console application settings, and at the bottom of
the page cloud integration. Click on create project. Once it succeeds go to the cloud
console and enable billing for Compute Engine