502 Bad Gateway Please try again in 30 seconds... :(

903 views
Skip to first unread message

Piotr Zerynger

unread,
Dec 16, 2019, 8:23:25 AM12/16/19
to Google App Engine
The project I have troubles is a swagger genarated spring boot java project (more than 160 java files).
Locally on intellij works well and fast.

After executing
 mvn clean spring-boot:run

on gclod console the project starts and I see the default generated page on the browser.

After executing
 mvn  appengine:deploy

on gclod console I always see this message on the browser:
Error: Server Error
The server encountered a temporary error and could not complete your request.
Please try again in 30 seconds.

Or This error:
502 Bad Gateway
nginx

This are the last messages from gcloud console (afterbmvn  appengine:deploy):

[INFO] GCLOUD: latest: digest: sha256:b079025401c659a2fcf1e5505d2998e6e215bab89f13a47979612db68d7b4a23 size: 2209
[INFO] GCLOUD: DONE
[INFO] GCLOUD:
[INFO] GCLOUD: Updating service [default] (this may take several minutes)...
[INFO] GCLOUD: Setting traffic split for service [default]...
[INFO] GCLOUD: ...................................done.
[INFO] GCLOUD: Deployed service [default] to [https://polishapi-psd2.appspot.com]
[INFO] GCLOUD:
[INFO] GCLOUD: You can stream logs from the command line by running:
[INFO] GCLOUD:   $ gcloud app logs tail -s default
[INFO] GCLOUD:
[INFO] GCLOUD: To view your application in the web browser run:
[INFO] GCLOUD:   $ gcloud app browse
[INFO] BUILD SUCCESS
[INFO] Total time:  05:03 min
[INFO] Finished at: 2019-12-15T17:33:22+01:00
p_zerynger@cloudshell:~/PolishAPI_sample (polishapi-psd2)$

In logs there are no errors.
A basic super simple spring boot hello world project works but not that swagger generated big one.

Please Help me. Thank you.

Piotr Zerynger

unread,
Dec 17, 2019, 8:16:11 AM12/17/19
to Google App Engine
google support know nothing?? The 502 error is all and nothing .

Deploying my project with google app engine flexible facet using Google App Engine Deployment plugin from intellij ide ends without problems but 
ON GOOGLE CLOUD I RECEIVE ONLY 502 ERROR.

Google support, please give me an useful advice.

Elliott (Cloud Platform Support)

unread,
Dec 17, 2019, 4:30:32 PM12/17/19
to Google App Engine

Hello Piotr,


I don’t think this is the correct forum to get the help you need. Google Groups is intended for general discussions about Google Cloud products and to share opinions.


To report an issue and to have it addressed, please use an Issue Tracker.


Message has been deleted

Alex Martelli

unread,
Dec 18, 2019, 6:45:31 PM12/18/19
to google-a...@googlegroups.com
On Wed, Dec 18, 2019 at 6:05 AM Piotr Zerynger <p.zer...@gmail.com> wrote:
I dont mind what do you think, so this forum is about what? about weather or kitties photos??

This group is for discussions about Google App Engine that are not suitable for other, more specific channels. These "other channels", in addition to billing support and several kinds of paid support, include:
1. the Issue Tracker, suitable to report problems you encounter and think are due to some issue on Google's side of things, and also suitable to request new features for future versions of Google products;
2. StackOverflow, suitable for specific kinds of questions and answers about programming
3. ServerFault, the less-known "sibling site" of StackOverflow, focused on professional system and network administration rather than on programming

Channels 2 and 3 (and many others differently-specialized sites, that we, Google Cloud Support, don't monitor nor post to) are known collectively as "StackExchange".
To check what kinds of questions are appropriate for StackOverflow, see for example https://stackoverflow.com/help/on-topic and all the links from that page; Google does not own or control StackOverflow so we cannot decide which questions are appropriate and which ones are not. For example, on that page you'll see listed among the not-welcome topics for questions on StackOverflow "4. Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource".

For example, it would be off-topic to ask on StackOverflow about which books can best help you learn to use App Engine, or which web framework works best on App Engine for a certain language, or to check which pluses and minuses you have in choosing to use the Standard versus the Flexible edition of App Engine.

Google welcomes all such on-topics questions, general discussions about App Engine as opposed to specific issues or feature requests (which go to the Issue Tracker) or specific programming problems (for StackOverflow) and sysadm/networking difficulties (for ServerFault); and, for that reason, we have created, and monitor, Google Groups like this one.

Since your post appeared to indicate a specific issue which you suspect may be due to problems on Google's side, it is, as Elliott said, best suited for the Issue Tracker. The Tracker is also the tool internally used for issue tracking within Google, so smooth exchanges among Support and Engineering are easier on that channel, making diagnosis and resolution of problems more effective.

"General discussion"??? means nothing. This is "Google App Engine" group not 'lovely kitties group'.

What Elliott wrote was specifically "general discussions about Google Cloud products", and your quoting him selectively and out of context uselessly distorts and impedes conversation. Of course, general discussions on this specific group must include Google App Engine to be in-topic, but it would be perfectly acceptable to ask on the group under which conditions, for example, might Google App Engine work better than Google Cloud Run, or vice versa; so there's no limitation to discuss only App Engine to the exclusion of other Google Cloud Products -- hence the sentence Elliott used is perfectly appropriate.

My opinion is that any project larger than "Hello world" doesnt work.

Considering the large number of successful customers Google Cloud Platform has, I find this opinion unreasonable.
 
and you are only capable to send http 502 instead of any useful message.

Actually it looks to me like the error message comes from nginx, an open-source web server with many possible uses, which by default gets integrated into your serving path in the Flexible version of App Engine. It could be due, for example, to your application running out of memory, see  https://stackoverflow.com/questions/50178524/google-java-flex-insufficient-memory-issue-with-502-bad-gateway-as-response -- if so, it can be fixed with a `resources:` stanza in your app.yaml (impossible to diagnose, of course, since you only say "app logs show no error" rather than the detail of what `gcloud app logs` shows, exact versions of the various components and tools you're using, etc, etc).
 

Elliot, change your actitude or job OR send any useful information.

Elliott already sent you the key piece of useful information: post your problem in Issue Tracker, NOT on Google Groups. Also, as Elliott does not mention, include much more pertinent details about which GCP product(s) you're using, which versions of the various tools you mention (which versions of gcloud and components thereof, Java, Maven, etc etc), and any other relevant tidbit about your configuration; if you miss such details, indispensable as they are to troubleshoot your issue, they'll all have to be asked about, potentially with multiple "round trips", increasing the toil and the elapsed time needed to reach a diagnosis and then to find a fix or workaround.

As an aside, and as a personal suggestion, I would recommend studying and following Eric Raymond's "How to ask questions the smart way", http://www.catb.org/~esr/faqs/smart-questions.html . I've found that I get much prompter, more complete, and more useful answers to my questions/problems when I remember to follow Eric's useful advice in expressing them.

Alex

Reply all
Reply to author
Forward
0 new messages