G App Engine Java App goes down unexpectedly often, very often. [Help]

34 views
Skip to first unread message

Andres Pirela

unread,
Mar 2, 2020, 11:47:23 AM3/2/20
to Google App Engine
Hello. I have a google app engine application for java, currently using spring boot. 
We have several endpoints that are requested by Cloud Scheduler
One of the endpoints, every time is requested, it starts working properly (doing all the processes it has to do), but then, after a couple of minutes the process stops suddenly and gives our customers a 500 error.

The logs are: 
  • Start program failed: terminated process with error signal: terminated
  • Start program failed: terminated process with error exit status 1
  • Container called exit(1)



When the app fails, this happens:

download.png


It's a pattern, every time we request that endpoint (as well as some other endpoints), it starts processing what it has to process, and after a while the process goes down and takes the server down with it forcing the instances to be reset.


I have been looking all over the internet for this information, but we have found nothing.


The following pictures show all the app.yaml we have used:

config2.png

config3.png

Config1.png


Please, I need help.



Jad El Houssami

unread,
Mar 4, 2020, 12:12:40 PM3/4/20
to Google App Engine
Hello Andres, 

I can definitely understand why this can be tricky to narrow down. From my research, it seems that this problem can be caused by several different factors that are unrelated, which makes it harder to troubleshoot. With that in mind, I did find that two possibilities seem to occur more frequently than the rest.

The first is that your app may be trying to write to the local disk, which isn’t supported in GAE Standard, only writing to the /tmp directory is allowed. Another option is that App Engine is timing out while waiting for a response, possibly related to the communication between App Engine and Cloud Scheduler.

We would need more detailed logs to better narrow down the issue, however based on the logs shared in the other group posting, if you are also observing “Waiting for network connection” messages, then it may be more of a timeout issue in this case.

I hope this information helps point you in the right direction and please feel free to reply with any follow-up questions. Do keep in mind that Google Groups are generally reserved for discussions and opinions about Google products, so you may want to refer to Stack Exchange for how-to and technical questions since the answer-question format on those sites will give your question greater visibility.
Reply all
Reply to author
Forward
0 new messages