-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
504 Gateway time out (if the backed takes more than 60 seconds) #3976
Comments
That is not how nginx works. You need to set a timeout using the annotation |
After adding
it throws a 502 Proxy Error Reason: Error reading from remote server Using a reverse proxy to connect to api on a apache server image hosted on K8s cluster. |
I know this thread is closed, but for folks who has the same issue we used the following to resolve. The timeout added was in seconds. Nginx - Ingress for K8S
Once this was added the Apache had its own timeout of 60s by default NOTE: The below ProxyPass was used in The issue got resolved. |
@m-dinesh-kumar thanks, can you specify if the time unit is in seconds or other? |
None of suggestions work correctly. FYI |
Hi, just for benefit of folks working with Openshift : Instead of ingress, I created an openshift Route. No YAML needed, they had a straightforward wizard in the openshift console. After creating, in its settings there are "Annotations". I added: key: This may not be applicable for non-openshift users but might help others like me who strayed here. We moved to Openshift recently so even our architects didn't know we could do this. |
Running into the same issue - the timeout seemed to completely bork a wordpress install which takes a while when you submit the setup wizard. I would like to raise the timeout globally, but the nginx-ingress docs linked above seem to omit which configmap the parameters go in. I have 4 nginx-ingress configmaps:
|
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see https://kubernetes.io/docs/tasks/debug-application-cluster/troubleshooting/.):
What keywords did you search in NGINX Ingress controller issues before filing this one? (If you have found any duplicates, you should instead reply there.):**
I searched for the exact error (
error: 504 Gateway Time-out
) that I got but didnt see any issue related to that.Is this a BUG REPORT or FEATURE REQUEST? (choose one):
Bug Report
NGINX Ingress controller version:
0.24.0
Kubernetes version (use
kubectl version
):Environment:
uname -a
):Linux ilcepoc504 3.10.0-862.20.2.el7.x86_64 #1 SMP Thu Oct 11 08:14:38 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
What happened:
I created a fission HT that is being served through the ingress controller, if I test that fission function using command
fission fn test --name <fn-name>
that worked as expected and I get the response. The function is taking 100seconds. But if I curl to the fission HTTP trigger that I have created I get below errorcurl: (22) The requested URL returned error: 504 Gateway Time-out
What you expected to happen:
I am expecting to get a response no matter how much time my function takes.
How to reproduce it (as minimally and precisely as possible):
Create a fission function that takes more than 60 seconds to be completed expose that function using HTTP trigger and ingress, curl to the HTTP trigger that you have created.
The text was updated successfully, but these errors were encountered: