Issues accessing backend API deployed in App Engine

1,368 views
Skip to first unread message

ks songs

unread,
Jan 11, 2021, 9:16:40 AM1/11/21
to Google App Engine
Hi All,

I have a set of Backend springboot application deployed successfully deployed in the APP engine. However, when i tried to access the one of the backend API in the postman, the request does not return, the postman remains in "sending request" for a long time.

As you can see from the GCP logs below, my backed service is running.

May i know if anyone encounter the same issue before whereby the service is deployed successfully in the APP engine, but request cannot be made and no timeout is thrown either. 

Thanks in advance!

Regards

Capture.PNG

Elliott (Cloud Platform Support)

unread,
Jan 11, 2021, 11:07:42 AM1/11/21
to Google App Engine
Hello,

I understand that when you are placing a request using postman, it remains in “sending request” for a long time.

I am unable to find a common issue at this time that would cause the behavior you are describing. Also, Google Groups is meant for general discussions.

To move this along and narrow down the focus, I would suggest while sending your request, open Postman Console (View > Show Postman Console), resend the request and check for any error logs in the console. 

This way, we will be able to get extra information that may help isolate the problem.

ks songs

unread,
Jan 25, 2021, 5:05:40 AM1/25/21
to Google App Engine
Hi,

After further investigation, i saw the following error in the logs

"Start program failed: failed to detect app after start: ForAppStart(): [aborted, context canceled. subject:\"app/valid\" Timeout:30m0s, attempts:119980 aborted, context canceled. subject:\"app/invalid\" Timeout:30m0s, attempts:119997]",

Greatly appreciate if anyone could give insights on this error. THanks!

Daniel (Google Cloud Support)

unread,
Jan 25, 2021, 10:57:51 AM1/25/21
to Google App Engine
That error message usually points out that your application starting a webserver and handling requests correctly [1]. There is an example on how to deploy a Springboot application for Google App Engine Java 11 runtime here [2] (the repository is here [3]). I'd strongly advise you to check [2] and [3] and most importantly make sure that your application is running locally without any issues [4] prior to deploying to App Engine.

behavin behavin

unread,
Jan 28, 2021, 12:35:10 PM1/28/21
to google-a...@googlegroups.com, song...@gmail.com
Hi,
I have already tried to deploy my springboot app (Just only public REST API) and I had some "start" issues too.
I don't know how much do you know about app engine instance settings, scaling,.. in app.yaml file. A lot of issues could be resolved by the correct instance settings. Choose right instance class, start timeouts etc. 
I have problems with restarting my app during starting (several times). After I change instance class, set timeouts for liveness and readines check requests is my app stable now.
I would like to get to know more information about this environment and settings. I think it could be a good idea to share knowledge together.
If you want , write me.

I would like to know:
- In which log did you find the error message? "Start program failed: failed to detect app after start:....  
  in group of logs :  gcloud app logs tail -s default   ???
- how big is your app? (mine 100MB) and how long will it take to run (on localhost and on gcp)??
- could you send me app.yaml?

Bye
Jaromír


po 25. 1. 2021 v 11:05 odesílatel ks songs <song...@gmail.com> napsal:
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/d3d40cbd-48d6-4e9f-9aa0-ee353cc37318n%40googlegroups.com.

ks songs

unread,
Jan 29, 2021, 3:40:02 AM1/29/21
to Google App Engine
Hi Jaromir,

Thanks for your reply.

1) I found the error via the Logs Explorer in the GCP logging page
2) My app is less than 50MB, it is just a set of backend REST API. Though it started (as mentioned in my original post), i am unable to make requests to it and subsequently i saw the "start" error in the logs. On local host, startup takes around 5-10 seconds.
3) Attached is my app.yaml file.  Did not know that there are other settings i need to take care in the yaml file.

Appreciate if you can send me your yaml file for reference too.

Thank you so much.

Regards
DD

gonzalezwalter

unread,
Feb 1, 2021, 1:19:31 PM2/1/21
to Google App Engine
Hello,

I would recommend following the documentation [1] mentioned above to create a test spring boot application and then compare to your own.  This will help in making sure everything is being deployed correctly.  

behavin behavin

unread,
Feb 4, 2021, 5:22:34 AM2/4/21
to Google App Engine
Hi,
did you get my email? I wrote you directly on email:  songsk....

How is going, anything new?
J.
Dne pátek 29. ledna 2021 v 9:40:02 UTC+1 uživatel song...@gmail.com napsal:
Reply all
Reply to author
Forward
0 new messages