DatastoreFailureException: internal error - google-app-engine

Just started getting this error - having made no code change.
GAE/J on Datastore Datanucleus JDO/JPA version: v1
my app on EU servers don't run.
US unaffected currently.
Suspect Google have broken something internally.
can anyone concur?

Yes, I started seeing a similar problem starting around 40 minutes ago. EU-based servers for my app as well. Refreshing works about 50% of the time.

Related

How to prevent App Engine Build timeout while deploying to asia region

Over the past few weeks my gcloud app deploy has been failing regularly, today it fails even after attempting 10 times so far. According to the google cloud web interface, it is failing after build in the exporting phase:
7: exporter
/cnb/lifecycle/exporter asia.gcr.io/<project>/app-engine-tmp/app/ttl-2h:<uuid>
Is there anything we can do about this at all?
(The build itself takes just a few minutes, then this exporter phase runs until the 10m mark and is killed.)
Perhaps there is a way to make gcloud app deploy do the build in the asia region?
I deleted everything in the Google Cloud Console under the "Container Registry" menu option. Not sure why that helps, but builds now average 2 minutes instead of the historical 9-11 minutes for the past year or so.
(Although this technically doesn't answer why behind the question, this does solve the strange delays in building on appengine (standard). I am going to mark it as solved and leave this question here in case others encounter the error message above.)

GCP App Engine flex (GAE): Error when deploying

When deploying using gcloud app deploy I get the following error:
Timed out waiting for the app infrastructure to become healthy gcp
I contacted GCP Support and they told me the same thing I had read in other threads:
the error you are referring to may be related to the Compute Engine “In-Use IP Addresses” Quota limit. You can view your current quota limit information by accessing from your GCP menu “IAM & Admin > Quotas”.
I checked the "In-Use IP Addresses" and it doesn't seem like I have a problem with quotas:
Looking for the error, I found that in the Activity tab, when deploying, I get an error. Apparently , when App Engine is trying to delete a VM, the process starts to loop trying to delete it. You can see the error:
(I intentionally covered the project ID)
Edit: It seem like the problem is only with southamerica-east1. I created a new project in southamerica-east1 but I kept getting the same error, so then I created a new project with the App Engine in us-west2 and worked like a charm (I used the same application and app.yaml). I wonder if the problem is GCP southamerica-east1 or a unknown bad configuration by my side.
This is probably related to this issue: https://issuetracker.google.com/u/2/issues/73583699. It does mentioned the "in-use IP Address" quota, but many people have posted in recent days (Nov 2018) indicating that they are seeing the error and have verified that they have not hit their quota.
Unfortunately, no solution has been posted and there hasn't been any recent comment from the devs.
First, our apologies that you’ve experienced this issue. Be assured that we are aware of the situation and the team works hard to resolve it.
Our goal is to make sure that there are available resources in all zones. This
type of issue is rare. When a situation like this occurs, or is about to
occur, our team is notified immediately and the issue is investigated.
We recommend deploying and balancing your workload across multiple zones or
regions to reduce the likelihood of an outage. Please review our documentation
which outlines how to build resilient and scalable architectures on Google
Cloud Platform.
For the time being, you can try relaxing your requirements (e.g. requesting a smaller instance or one with fewer resources) or removing the external IP requirement.
If that proves not to be enough, you can try deploying your application to another region
Again, we want to offer our sincerest apologies.
Thanks for understanding.
At the end we didn't find a real solution so we moved all our services from Brazil to US-2. I'm not sure if the Region is the problem, but there in US-2 all works like a charm

Database locked in Google App Engine

I was running two different versions of my app with the same api_version number, and I started receiving Database locked exception. I've closed both apps, removed both from the app engine launcher, and then reloaded the one i'm currently working on; and I'm still getting the same error.
I've been googling it for 30 minutes, and it doesn't seem like there is a lot of information on this topic specifically related to GAE.
I would like to know how to go about fixing the issue, but more than that, I'd like to know what's causing it in the first place.
I gave to 2 api versions different version numbers but the same api number with the hope that I'd be able to run them concurrently and have them share a datastore instance, but if its displaying this behavior locally, I'm sure its not going to work when deployed. I suppose I have less of an understanding of the versioning than I thought. If anyone has a brief explanation of that process, what causes locking and how to fix that would be great. Thanks!
EDIT:
'api_version' refers to google's api for app engine; nothing to do with one's personal application. still trying to figure out how to deal with 'version' and #endpoints.api. What's the diff?

How do I debug when GAE works slow in local development but works fine when uploaded to Google?

I am running under Windows7 locally. I have tried both Python 2.5 and Python 2.7.2. It just seems to stall a lot locally. All I am using is authentication and database. I get very inconsistent results locally. I upload the app to the server and it works. Sometimes when I am on a database page I will hit Refresh 10 times and 3 of the times the browser will just keep spinning.
I am using the latest GAE 1.5.3. (I was having the same issue with older 1.4.x version as well.)
Any ideas on what to try or what to look into?
You might want to switch to SQLLite for your local Datastore, you can do this by using the following option:
dev_appserver.py --use_sqlite
Another good practice would be to use the High Replication datastore simulation flag to give you a good idea how an application configured to use the High replication datastore will do in production, you can achieve the following by suing:
dev_appserver.py --high_replication
For the full documentation please check the following Link
Hope this helps!

App Engine log console severely lagging behind

For a few days now, my App Engine logging console has been behind for a steady 2-5 hours. That is, any logging messages appear in the console over 2 hours after they've been generated.
Sadly, there are parts of the application I can not test locally (OAuth-style callbacks, etc). All apps are written in Python.
Has anyone ever had this kind of problem? Any solutions, workarounds?
This turned out to be an issue with the timezone setting, reported by many.

Resources