Cloud Build API - google-app-engine

We received mail from google about activating cloud build api before April 2020
We follow , easy instructions to activate the service, select our project then go continue.
We receive a strange, I think server side, error:
is anyone getting same problem ?

You can try from cloud shell. Try below command:
gcloud services enable cloudbuild.googleapis.com

Related

Java 11 app running on Google Cloud App Engine fails with 401 error for registering debuggee

I deployed Java 11 app on Google Cloud App Engine, and app is running fine, I can see the home page in the browser, but when the app tries to call Microsoft Graph API (the HTTP call is executed by using Microsoft Graph SDK), I am getting runtime failure.
The failure relates to Google debugger, but I didn't even enable debugger. I found information that debugger is enabled by default when Google builds the container image. I have two options - either to figure out why I am getting 401 error for the debugger, and configure debugger properly, or disable debugger completely.
I tried to find information how to disable Google debugger for container image generation, but didn't find anything helpful. I also tried to find information how to configure debugger properly for app engine, and also was not able to find complete working instructions. Does someone know what I need to configure on App Engine to bypass this error:
java.io.IOException: Server returned HTTP response code: 401 for URL: https://clouddebugger.googleapis.com/v2/controller/debuggees/register
at com.google.devtools.cdbg.debuglets.java.GcpHubClient.registerDebuggee
Assuming your Java app is in an App Engine Standard environment and using the bundled services, then you are still using appengine-web.xml file for app configuration. As stated in GAE standard Issuing HTTP(S) Request documentation:
URL Fetch will handle all outbound requests and cause requests that you send to your VPC network or the client libraries to fail. If any of these scenarios apply to you, make sure that the url-stream-handler field in your configuration is not set to urlfetch.
This scenario includes Google Cloud Debugger Client for Java hence the HTTP error. As a workaround, you can omit the following line in the appengine-web.xml file:
<url-stream-handler>urlfetch</url-stream-handler>

Unable to delete a GCP Project. It prompts "Project Service Unknown error"

I created a test project using Google Cloud Platform and i want to shutdown it, But when i tried to do so it gives me the following error.
"Project Service
Unknown error
Tracking number: 4304144073534280568"
Try to delete all services under the project, then delete the project.
Go to endpoints -> services, and see the link for deleting the service: https://cloud.google.com/sdk/gcloud/reference/endpoints/services/delete
Delete "developer portals" for you API, this can be done thru web UI
Then, delete the service itself "gcloud endpoints services delete [your-app-services-name].appspot.com --project [your-project-id]"
If after having followed Shutting down (delete) projects guide, you are still unsuccessful to shut down or delete your project, I would recommend you do the following:
Please refer to this form to open a case with the Google Cloud Platform Billing Support team. They will respond to any questions about your billing account or project settings.
Hope this helps.

Google Cloud Debugger for Python App Engine module says "Deployment revision unknown"

I'm trying to get the Google Cloud Debugger to work on my Python App Engine module. I've followed the instructions and:
Connected to my Bitbucket hosted repository.
Generated the source-context.json and source-contexts.json using gcloud preview app gen-repo-info-file
Uploaded using appcfg.py update
However when I try to set a snapshot using the console, there is message saying:
The selected debug target does not have source revision information. The source shown here may not match the deployed source.
And when I try to set the snapshot point, I get the error:
Failed to update the snapshot
It looks like you did everything correctly.
The "Failed to update the snapshot" error shows up when there is some problem on the Cloud Debugger backend. Please contact the Cloud Debugger team through cdbg-feedback#google.com or submit feedback report in Google Developer Console.

Insufficient authentication scopes from Jenkins build via Google Compute Engine

I searched the web for a while, but can't seem to find the right answer.
I have created a VM Instance on Google Compute Engine and I am running Jenkins on it. This instance checks a code repository I have and when a change occurs, I want to run the following command
gcloud --project=test preview app deploy -q app.yaml --version=dev
When I want to trigger a build, or it triggers it by himself, I get the following error:
Beginning deployment...
ERROR: Error Response: [403] Request had insufficient authentication scopes.
ERROR: (gcloud.preview.app.deploy) Could not retrieve the default Google Cloud Storage bucket for [test].
Please try again or use the [bucket] argument.
The VM instance does have acces to the storage as you can see in the following image, so I don't understand why this error pops up.
Go to the App Engine developer console https://appengine.google.com/ and in
Application Settings > Cloud integration > and turn ON the Google Cloud Storage
so this will set up the default bucket for you. This something that the new Google Developer Console will do automatically.If the project is created on the old console you have to do it manually.

Can't deploy Google App Engine application on local server

I am trying to follow the instructions for running a simple new Google App Engine web application locally (without Google Web Toolkit, just the Web App) named "tunes".
I am following these instructions. Step one is to make a run configuration. I made one using all the defaults; I checked that under the Server tab the "Run built-in Server" box is checked. However, when I Run the app, I get the Console; right below the console tab it says
&ltterminated> tunes [Web Application] C:\Program Files (x86)\Java\jre7\bin\javaw.exe (Feb 26, 2014, 5:35:44 PM)
then below the line is what looks like a classic Unix "Usage" error message in the console, in red type, whose first line is
Usage: &ltdev-appserver> [options] &ltapp directory>
followed by a list of options, and then nothing else happens that I can see.
I tried pointing a browser at http://localhost:8888/tunes as suggested by the documentation, but Firefox could not find a server active at that port.
Under the Arguments tab in the Run Configuration is the following:
"-codeServerPort 9997 --port=8888 org.tunes.gaeproject.Tunes C:\Users\cdf\java\eclipse4.3.1workspace\tunes\war"
I can successfully deploy the web application to the Google App Engine site and run it there.
What do I have misconfigured?
Google AppEngine application is not meant to run on local server, and neither you could create its docker image etc to deploy it anywhere you wish.
Instead I suggest you to port your application to Google Compute Engine (GCE) first within your deployment setup, which might require minor code refactorings, and Kubernetes kinda auto-scaling deployment will functional equivalent to what you have now. But with approach you may port the application easily to local server setup, or a docker image to run from any virtualization environment

Resources