if you want to remove an article from website contact us from top.

    the server encountered a temporary error and could not complete your request.

    Mohammed

    Guys, does anyone know the answer?

    get the server encountered a temporary error and could not complete your request. from screen.

    google cloud platform

    I've configured a HTTP(S) Load balancer as per the documentation on https://cloud.google.com/compute/docs/load-balancing/http/ When I try to access the site via the Public IP address associated wit...

    Error: Server Error The server encountered a temporary error and could not complete your request. Please try again in 30 seconds.(GCP)

    Ask Question

    Asked 2 years, 2 months ago

    Modified 10 months ago

    Viewed 40k times

    Part of Google Cloud Collective

    11

    I've configured a HTTP(S) Load balancer as per the documentation on https://cloud.google.com/compute/docs/load-balancing/http/

    When I try to access the site via the Public IP address associated with the Load balancer. I'm getting a 502 response with the message:

    Error: Server Error

    The server encountered a temporary error and could not complete your request.

    Please try again in 30 seconds.

    I believe this is coming from the load balancer.

    Anyone have any insight into what might be going on, what more I should be looking at?

    google-cloud-platformgoogle-cloud-load-balancer

    Share

    Improve this question

    asked Jul 5, 2020 at 18:38

    Sunil kumar 1751 1 gold badge 1 1 silver badge 7 7 bronze badges Add a comment

    3 Answers

    3

    Have a look at the documentation Troubleshooting HTTP(S) Load Balancing section Unexplained 502 errors:

    If 502 errors persist longer than a few minutes after you complete the load balancer configuration, it's likely that either:

    There's no firewall rule configured to allow health checks.

    The software on the backends isn't running.

    To verify that health check traffic reaches your backend VMs, enable health check logging and search for successful log entries.

    To create an ingress rule that allows traffic from the Google Cloud health checking systems (130.211.0.0/22 and 35.191.0.0/16) you can use Cloud Console or this command:

    gcloud compute firewall-rules create fw-allow-health-check \

    --network=default \ --action=allow \

    --direction=ingress \

    --source-ranges=130.211.0.0/22,35.191.0.0/16 \

    --target-tags=allow-health-check \

    --rules=tcp

    In this command target tag allow-health-check used to identify VMs.

    Share Improve this answer

    answered Jul 6, 2020 at 9:29

    Serhii Rohoza 3,9172 2 gold badges 12 12 silver badges 27 27 bronze badges Add a comment 3

    I had the same problem. After a day of searching, it was a health checker problem. The health test was on TCP, I changed it to HTTP, the problem was solved.

    Share Improve this answer

    edited Nov 5, 2021 at 21:39

    Dharman♦ 27.9k21 21 gold badges 75 75 silver badges 127 127 bronze badges

    answered Nov 5, 2021 at 21:33

    Mehrdad 511 1 silver badge 4 4 bronze badges Add a comment 0

    Could it be that the load balancer depends on you using the URL and not an IP address?

    There are a couple of reasons that might be the case.

    The URL points to the load balancer and the load balancer has a list of server IP addresses that service that URL; then it picks a server and forwards the request. To do that, it must receive the oritinal URL because the load balancer may be serving multiple sets of servers.

    If the IP address points to the load balancer, it won't know which set of servers to choose from. If the IP address points to a server, the load balancer will be bypassed.

    That's as much as I can think of... Jam

    Share Improve this answer

    answered Jul 5, 2020 at 18:55

    Jim Kay 916 6 bronze badges Add a comment

    Not the answer you're looking for? Browse other questions tagged google-cloud-platformgoogle-cloud-load-balancer or ask your own question.

    Google Cloud Collective See more

    This question is in a collective: a subcommunity defined by tags with relevant content and experts.

    The Overflow Blog

    Five nines uptime without developer burnout (Ep. 488)

    We hate Scrum and Agile…when it’s done wrong (Ep. 489)

    Featured on Meta

    Recent Color Contrast Changes and Accessibility Updates

    Reviewer overboard! Or a request to improve the onboarding guidance for new...

    Should I explain other people's code-only answers?

    12 people chatting

    Linked

    6

    (GCP) : Server Error The server encountered a temporary error and could not complete your request. Please try again in 30 seconds

    0

    How to debug a 502 error in GCP LoadBalancer

    0

    502 - The server encountered a temporary error and could not complete your request

    Related

    1

    Is it possible to load balance several services using the same HTTP load balancer in GCE?

    1

    GCP load balancer 502 server error and "backend_connection_closed_before_data_sent_to_client" IIS 10

    5

    Google Cloud HTTP Load Balancer Health Check Fails Without An External IP

    14

    Kubernetes Ingress Error: The server encountered a temporary error and could not complete your request

    0

    How to make my Google Cloud Load Balancer work?

    3

    502 Bad Gateway and "Please try again in 30 seconds" messages

    6

    (GCP) : Server Error The server encountered a temporary error and could not complete your request. Please try again in 30 seconds

    Hot Network Questions

    Use and function of slash chord

    Why do we need the “Program Files” folder in Windows?

    स्रोत : stackoverflow.com

    Error: Server Error hatası nedir?

    Bir siteye girmek istediğimde karşıma Error: Server Error The server encountered a temporary error and could not complete your request.Please try agai

    Error: Server Error hatası nedir?

    0

    Bir siteye girmek istediğimde karşıma Error: Server Error The server encountered a temporary error and could not complete your request.

    Please try again in 30 second hatası geliyor. Sayfanın başlığında 502 server error yazıyor. Error: Server Error  hatası nedir, Error: Server Error  hatası veren bir siteye girebilir miyim?

    error server-error 502 server error the server encountered a temporary error and could not complete your request

    murat (12002) 2 yıl önce sordu

    Toplam 1 Cevap

    0

    Aşağıdaki bilgiler son kullanıcı içindir, geliştirici veya sunucu yöneticileri için değildir.

    Error: Server Error The server encountered a temporary error and could not complete your request.hatası sunucu taraflı bir hatadır. Sunucu taraflı hata demek web sitesinin çöktüğü ve artık işlevini yerine getiremez durumda olduğu anlamına gelir.

    Error: Server Error  hatası çoğu zaman aşırı trafik yüzünden kaynaklanır. Örneğin bir web sitesinin anlık olarak kaldırabileceği yük 1000 kişisiyse ve o siteye anlık 10.000 kullanıcı girerse web sitesi size Error: Server Error The server encountered a temporary error and could not complete your request. hatası döndürebilir.

    Bazen de bu hata sunucunun yanlış yapılandırılmasından kaynaklanır.

    Her iki durumdada normal bir internet kullanıcısı siteye erişemez. Sitenin açılması mümkün değildir. Site yöneticisinin sunucuyu duruma göre yeniden yapılandırması gerekir.

    Error: Server Error The server encountered a temporary error and could not complete your request. hatası veren siteye girmek mümkün değildir. Daha sonra tekrar denemeniz gerekir. Ta ki sunucu sahibi, web sitesi sahibi sorunu giderene kadar siteye erişim mümkün olmaz.

    murat (12002)

    2 yıl önce cevaplandı

    ÜYELİK GEREKTİRİR

    Cevap yazabilmek için üye girişi yapmalısınız.

    Eğer uzmanim.net üyesiyseniz giriş yapabilirsiniz: üye girişi yap

    uzmanim.net'e üye olmak çok kolaydır: hemen kayıt ol

    स्रोत : uzmanim.net

    Getting a 502: The server encountered a temporary ...

    Hello, I am just learning to use ApiGee (evaluation) and I lauched my first instance with a DNS and I try to use the "hello-world" via

    Reply posted on 06-14-2022 01:19 PM

    Share this topic LinkedIn

    Twitter Ardilom Explorer Post Options

    Reply posted on 06-14-2022 01:19 PM

    Post Options

    Sorry but I had a really bad experience using your apigee platform, I wont use it anymore

    0 Likes Reply

    Reply posted on 06-15-2022 07:27 PM

    Share this topic LinkedIn

    Twitter dknezic Staff Post Options

    Reply posted on 06-15-2022 07:27 PM

    Post Options

    I'm assuming the requests are not reaching Apigee in the first place.

    1. You have mentioned DNS, how was this setup?

    2. In the Google Cloud Console, under Network > Load Balancers, what is the state of the load balancer backends (ie based on the health checks)

    0 Likes Reply

    Reply posted on 08-10-2022 12:52 PM

    Share this topic LinkedIn

    Twitter gaurav6628 Explorer

    In response to dknezic

    Post Options

    Reply posted on 08-10-2022 12:52 PM

    Post Options

    We are facing a similar problem where we are able to access the app via ?apikey= appended in the URL referencing Load Balancer DNS Name but when we are trying to generate accesstoken using OAUTH 2.0 then getting below error

    502 Server Error

    Error: Server Error

    The server encountered a temporary error and could not complete your request.

    Please try again in 30 seconds.

    0 Likes Reply

    Reply posted on 08-10-2022 12:53 PM

    Share this topic LinkedIn

    Twitter gaurav6628 Explorer

    In response to gaurav6628

    Post Options

    Reply posted on 08-10-2022 12:53 PM

    Post Options

    DNS resolution is working fine, Please find output as mentioned below

    Server: 169.254.169.254

    Address: 169.254.169.254#53

    Non-authoritative answer:

    Name: a2k2.in

    Address: 34.160.154.133

    0 Likes Reply

    Reply posted on 08-10-2022 01:56 PM

    Share this topic LinkedIn

    Twitter dchiesa1 Staff

    In response to gaurav6628

    Post Options

    Reply posted on 08-10-2022 01:56 PM

    Post Options

    when we are trying to generate accesstoken using OAUTH 2.0 then getting below error

    Let me clarify some details. Are you seeing that error consistently - every request of a particular type?  Are you observing it only when trying to generate an access token? And can you confirm that you see this error when invoking a specific Apigee proxy, and not when invoking other API proxies? And that the token-generation proxy is available at the same endpoint, the same DNS name as the other proxies?

    The server encountered a temporary error and could not complete your request.

    This error

    Please try again in 30 seconds.

    ...seems to indicate a load balancer error. The load balancer is part of the Google Cloud networking setup, and is "in front of" Apigee in the data path.  If it is a load balancer error as I suspect, it likely means the request is not reaching Apigee. Another less likely possibility is that your Apigee proxy IS receiving the request, but is invoking something else within GCP, and is experiencing a load balancer error there, and the proxy is then relaying that error back to the requesting client. To determine which case it is, you can use the Apigee debugger/trace to understand whether your Apigee proxy has received and handled the request.

    If your request is not reaching Apigee then you need to solve it at the load balancer.

    I'm assuming this is Apigee X. In that case you may want to stop & restart your router VMs.  This is the "managed instance group" that you have provisioned when you first set up Apigee X.

    0 Likes Reply

    Reply posted on 08-12-2022 01:39 AM

    Share this topic LinkedIn

    Twitter gaurav6628 Explorer

    In response to dchiesa1

    Post Options

    Reply posted on 08-12-2022 01:39 AM

    Post Options

    Hi, We are facing problem only when we are trying to generate access token so that we can use OAUTH.

    Requests are routed through load balancer to APIGEE when we use APIKEYS

    https://a2k2.in/demoauth-a2k2?apikey=<>

    0 Likes Reply

    Reply posted on 08-16-2022 09:21 AM

    स्रोत : www.googlecloudcommunity.com

    Do you want to see answer or more ?
    Mohammed 10 day ago
    4

    Guys, does anyone know the answer?

    Click For Answer