AppEngine nodejs, random: The server encountered a temporary error and could not complete your request - google-app-engine

I just deployed the helloworld app on Google App Engine Flexible Environment.
Randomly, let's say, one each 3-4 requests, I get this:
The only change I've made from the original helloworld code provided in google cloud docs was that I changed the automatic scaling to manual and set it to 1 instance.
Anyways, I deployed the same docker image in Container Engine, and it works perfect.
There is nothing on the app logs, the request does not reach the app.
Something is not working with GAE Flexible Env. load balancer, any ideas?

I destroyed all the instances and deleted the service. After 24hs tried to create it again and now it is working good.

Related

How to correctly map godaddy domain to gcloud app engine project?

I've deployed a nuxtjs app to gcloud app engine as described in nuxtjs docs using gcloud cli - gcloud app deploy [app-project-id] after that I browse the app with gcloud app browse -s nuxt and it works fine, but after I added my custom domain dns records to godaddy, the domain shows nothing and I got the screenshot below when I visit the live domain.
However it was working very well when it was deployed on heroku, It's been an hour since I added app engine dns record to godaddy, and the result still the same, does it takes this much time?, and how can I fix this ?
According to the App Engine Custom domains docs, in some cases, it takes several hours for the DNS configuration changes to take effect.
In most cases, it takes only a few minutes for these changes to take effect, but in some cases it can take up to several hours,
Then I checked this DNS lookup tool and I saw that your domain name vetution.com has an A record of 15.197.142.173 and 3.33.152.147 which is not related to App Engine ip address. I suggest removing the said IP addresses in your domain provider (Go daddy)
Also, Another A record is pointed to www.vetution.com.
If the issue still persists. You should contact the Google Cloud App Engine Support team since we don't have visibility on your project.

Local or development Google Cloud Firestore database with App Engine

In my previous App Engine projects I used the Cloud Datastore, and during development I could debug my app on the local server and it would use a local database, stored in a file I could wipe out if I wanted to start from scratch.
With Cloud Firestore, even when I'm running locally it's talking to my real cloud database. Is there still a local option? Note that I'm not talking about client-side persistence, I'm talking about a mock development DB.
Google recommends setting up multiple projects if you want dev/staging/production, and I'm guessing that's the answer, but I'd like to know before adjusting my workflow.
I think (now only a few months later) that this is supported. When I run my app, using dev_appserver.py, I see a message
INFO 2019-02-14 00:08:56,030 admin_server.py:150] Starting admin server at: http://localhost:8000
Going to that URL shows me all the instances I have been seeing. These seem to persist even when the dev_appserver is restarted. Reading this and other posts I was convinced that my development was using my actual cloud database, but going to https://console.firebase.google.com/project/myproject was showing completely different content.
Just to be sure (because google is google and everything is named the same) I'm using an appengine app and a gcloud project, storing things to Firestore using ndb.Models...
Oh, but careful. My app I was also using the cloudstorage (blobstore?) and even though the localhost:8000 showed these, THESE WERE THE REMOTE INSTANCES.
There is a local emulator for Firestore when using the Firebase CLI:
https://firebase.google.com/docs/rules/emulator-setup

Google Cloud Storage Client not working on dev appserver

I 'm building an AppEngine application that stores data in Google Cloud Storage. I use the Google Cloud Storage Client (GCS) library as suggested.
My app is working when deployed on AppEngine (reading/writing/listing objects) but I cannot make it work on the development server. The development server keeps returning error 404 and GCS raises NotFoundError. The dev-appserver is supposed to emulate the cloud storage functionality without any specific configurations etc. I see in the log files that the dev server is accepting requests at "/_ah/gcs" yet it seems that there is no handler for that url. I 've tried with version 1.8.5 and 1.8.6. Apart from my app, not even the demo app provided by Google works.
Is there something that I 'm missing here, e.g. a special configuration for the dev-appserver?
Sorry the following change was pushed out too early by mistake. It only works with 1.8.8 SDK. We are streamlining the release process of gcs client to align with SDK. Sorry
https://code.google.com/p/appengine-gcs-client/source/detail?r=125
Without this change, it works on 1.8.7 SDK.

Console - created new project; auto-created app engine app; can't set billing

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

Is there a local Google App Engine data viewer?

I want to use google's online GAE data viewer offline...
Is there some bunch of python code to display all my local data and even schema?
Yes, go to http://localhost:8000/_ah/admin (supposing you're running your local instance with dev_appserver.py).
NOTE: when the app is being deployed locally, it logs to which port the admin page is being binded

Resources