# Timeouts in reverse proxy?

**URL:** <https://discourse.openondemand.org/t/timeouts-in-reverse-proxy/1194>\
**Category:** Get Help\
**Created:** [November 3, 2020, 4:47pm UTC](https://discourse.openondemand.org/t/timeouts-in-reverse-proxy/1194 "2020-11-03T16:47:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![holtgrewe](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/holtgrewe/32/474_2.png) [@holtgrewe](https://discourse.openondemand.org/u/holtgrewe)\
**Post date:** [November 3, 2020, 4:47pm UTC](https://discourse.openondemand.org/t/timeouts-in-reverse-proxy/1194/1 "2020-11-03T16:47:30Z")

</div>

I’m running rstudio server. I’m occasionally getting reverse proxy timeouts (HTTP 400/502) errors and this correlates with the file system being loaded. I thus assume that for some reason the rstudio web server takes too long to responds an this leads to the Apache or PUN web server giving me an error.

Where would be the right place to increment the timeout for the involved reverse proxies?

Thanks!

---

<div class="post-metadata">

**Author:** ![mario](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/mario/32/662_2.png) [@mario](https://discourse.openondemand.org/u/mario)\
**Post date:** [November 3, 2020, 4:57pm UTC](https://discourse.openondemand.org/t/timeouts-in-reverse-proxy/1194/2 "2020-11-03T16:57:00Z")

</div>

Hey there @holtgrewe! Try and increase the `pun_max_retries` config var in your `ood-portal.yml`: [https://osc.github.io/ood-documentation/latest/reference/files/ood-portal-yml.html#configure-per-user-nginx](https://osc.github.io/ood-documentation/latest/reference/files/ood-portal-yml.html#configure-per-user-nginx)

---

<div class="post-metadata">

**Author:** ![holtgrewe](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/holtgrewe/32/474_2.png) [@holtgrewe](https://discourse.openondemand.org/u/holtgrewe)\
**Post date:** [November 5, 2020, 1:09pm UTC](https://discourse.openondemand.org/t/timeouts-in-reverse-proxy/1194/3 "2020-11-05T13:09:30Z")

</div>

Thanks @mario. That apparently fixed my problem. Cheers!

---

<div class="post-metadata">

**Author:** ![westburg.2](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@westburg.2](https://discourse.openondemand.org/u/westburg.2)\
**Post date:** [May 26, 2022, 3:43pm UTC](https://discourse.openondemand.org/t/timeouts-in-reverse-proxy/1194/4 "2022-05-26T15:43:04Z")

</div>

Closed on May 26, 2022, 3:43pm UTC


