Cannot deploy new version to App Engine Flexible - google-app-engine

I tried to deploy new version to app engine. But it keeps saying
vm_check_disk_space.sh and health check logs.
and on web browser it gives me 502 error saying
Error: Server Error
The server encountered a temporary error and could not complete your
request.
Please try again in 30 seconds.
I have tried 4 times trying to deploy but never worked.
I think you can reproduce this by deploying any project to app engine.
I am using Google Cloud SDK 157.0.0
and
tried to deploy service with java and nodejs environment

I received many weird errors like this while deploying months ago with both maven and gradle. Various strange things with app.yaml can cause this as well. Even the example projects provided from google contained strange bugs like this when deployed.
Try one of the test projects that google provides: Google NodeJS bookshelf app
(Hopefully this project has been fixed by now and will deploy correctly!!)
Also, it's possible that an old version can prevent your new code from deploying. Go to your console, and delete/stop all running versions of the service. (I have had issues with old versions becoming stuck, which causes issues with the new deployment becoming the default service).

Related

Deployment to GAE failing after project has been restored

I had a project deployment to GAE using cloud build which was working fine, But I deleted the project by mistake. But after the restore, the deployment is failing with
ERROR: (gcloud.app.deploy) Error Response: [4] Timed out waiting for the app infrastructure to become healthy.
I see this in the cloud build logs: even when the Cloud build service account has the App Engine Admin Permissions
WARNING: Unable to verify that the Appengine Flexible API is enabled for project []. You may not have permission to list enabled services on this project. If it is not enabled, this may cause problems in running your deployment. Please ask the project owner to ensure that the Appengine Flexible API has been enabled and that this account has permission to list enabled APIs.
Also, the permissions for the account owner has changed from : 1350/1578 to 1266/1578. How can I fix that?
I have tried to replicate the issue you're experiencing by creating a new project and deploying a simple HelloWorld app in GAE Flexible environment.
I have deleted my project and then restored it, and, after that, I was unable to deploy the app again. The issue was solved once I made sure my Google App Engine Flexible Environment API is enabled and linked my Billing Account again (as it gets removed when you delete the project).
EDIT:
After further research, I found this page in the GCP issue tracker.
Based on the information from that page, the error you are experiencing can occur for various reasons. It can be related to quotas (e.g. CPU cores, memory, public IP addresses) or, sometimes, the region where you are trying to deploy.
As it was confirmed by the engineer, trying to re-deploy, or to deploy in a different region often resolves the issue. However, if the issue persists and you have a support package, I'd recommend you to contact GCP support as the issue is too broad to troubleshoot it here and may require a project inspection.

Why is Google App Engine not showing new deployments?

We have been deploying using $ gcloud preview app deploy --no-promote --version production for some time now and everything worked nicely until a couple of days ago.
Not sure what changed, but now our deployments, even though they are executed and gcloud gives no errors, are not showing up in the control panel for Google App Engine.
There's an issue reported regarding this behavior.
Two questions:
Why is Google App Engine not showing new deployments?
How can I deploy my application again successfully?
I'm answering my own question to make it available for other people who are currently having problems with this and save you the time of finding out how to fix it.
Revert to gcloud version 112.0.0 with $ gcloud components update --version 112.0.0.
It seems that gcloud version 113.0.0 or 114.0.0 has some kind of bug (haven't verified this) that is preventing the deployment to actually be registered and shown in the control panel for Google App Engine. After going back to version 112.0.0 everything is back to normal. I hope this helps.

Cannot downgrade App Engine release

Recently I've found out App Engine 1.9.1 has a bug which however does not occur in version 1.8.9 and below. I am developing my applications with Eclipse and the Google Plugin for Eclipse. In the Google properties of the project I switched back to 1.8.9. If I work locally I can see that it is using version 1.8.9 (the bug does not occur) however when I deploy to App Engine no matter what I do it will still run on 1.9.1. I even tryed to create a new project/application from scratch, still 1.9.1. I even deleted SDKs 1.9.1 and 1.9.0 from my system but nothing seems to help. What can I do? Thanks.
You don't control the version in production. It runs on Google servers and isn't deployed as part of your app.
Welcome to the cloud world where some parameters slip from your hand no matter how hard you try...
Indeed, you have no control over the AppEngine version that will be used to run your application in production. In fact, if you look carefully in the list of instance on your cloud console, you will see sometimes that some instances use an AppEngine version that is not even publicly available at the moment.

Running Joomla on Google App Engine

I have joomla running locally on the development environment of Google App Engine, but once I deploy it to GAE I just get this error:
Error displaying the error page: Application Instantiation Error
Since google claims that the development server is the identical copy of the production environment, how come joomla is not working on GAE?
I've used a couple of days trying to figure out how to debug this, in order to make joomla work, but I could really use some tips for debugging.
How do you guys debug in the production environment?
Any of you got joomla 3.2 running on GAE yet?
cheers!
I figured it out. Read the instructions here: http://forum.joomla.org/viewtopic.php?f=706&t=828565&p=3114492

Different behaviour in Eclipse with Google Eclipse Plugin than Google App Engine

I have a Google App Engine project created in Eclipse with the Google Eclipse Plugin.
When I run some of its services locally with the GAE SDK they work fine, but when I deploy the app on "the real" Google App Engine and try to access any of these services, chrome throws the following error:
Error: Server Error
The server encountered an error and could not complete your request.
If the problem persists, please report your problem and mention this error message and the query that caused it.
On the other hand, I also get THIS error locally when trying to call an upload method.
All of this is someone else's project and it's meant to work, besides I don't think the error is related to the code, hence, I don't think it's worth it posting it here.

Resources