Changing nginx proxy values proxy_connect_timeout_seconds, read, send has no effect

https://console.qovery.com/organization/2119cfce-8e17-474a-9a13-d0e6f0c2794b/project/e5894769-84d5-46af-a9d0-1fd3727737c9/environment/2d8da6ba-e29d-4f6b-8d7c-8784a796b4ff/application/85b48a33-69db-48a4-84a6-48d493816335/settings/advanced-settings

we have a Preview Environment and we changed the proxy_connect_timeout_seconds, proxy_read_timeout_seconds, proxy_send_timeout_seconds from 60 to 120
redeployed and sent a long running request to the service
it still produces a 504 response after 60seconds with the nginx timeout html.
What could be the issue here?

Hello @PmegaOcalc ,

Usually a 504 indicates that it is caused by a dependent server request failure. Is your request depending on another app / server ?

hi,
we check in the database to see that the end service completes the request successfully so we don’t think the problem is with the service, also it works perfectly locally. hence we don’t think it is a problem on the service end but rather with nginx itself.

seems like the ingress proxy is returning this message, yes?

Ok, yes indeed it seems so.

By looking at your nginx logs, I see some 504 but only from your “bc” service (the link of your application in your previous post points to the agent-api app, are you sure of it ?).

The nginx logs also indicate that it’s the underlying service that answers those 504 (the status at the end of the logs correspond to the upstream service status)

thank you, we forgot about the other nginx config

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.