# Proxy Error - The proxy server received an invalid response from an upstream server

**URL:** <https://discourse.openondemand.org/t/proxy-error-the-proxy-server-received-an-invalid-response-from-an-upstream-server/4111>\
**Category:** Get Help\
**Created:** [March 12, 2025, 2:07pm UTC](https://discourse.openondemand.org/t/proxy-error-the-proxy-server-received-an-invalid-response-from-an-upstream-server/4111 "2025-03-12T14:07:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![maestro7879](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/maestro7879/32/1865_2.png) [@maestro7879](https://discourse.openondemand.org/u/maestro7879)\
**Post date:** [March 12, 2025, 2:07pm UTC](https://discourse.openondemand.org/t/proxy-error-the-proxy-server-received-an-invalid-response-from-an-upstream-server/4111/1 "2025-03-12T14:07:25Z")

</div>

Receiving the above error for just one user. Any ideas ?  
This is after logging in and being sent to /pun/sys/dashboard.

Users error.log is empty, access.log contains some HTTP 499 responses, not sure what to make of that.

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [March 12, 2025, 2:50pm UTC](https://discourse.openondemand.org/t/proxy-error-the-proxy-server-received-an-invalid-response-from-an-upstream-server/4111/2 "2025-03-12T14:50:44Z")

</div>

Are you running OOD behind an HA proxy or similar?

---

<div class="post-metadata">

**Author:** ![maestro7879](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/maestro7879/32/1865_2.png) [@maestro7879](https://discourse.openondemand.org/u/maestro7879)\
**Post date:** [March 12, 2025, 3:05pm UTC](https://discourse.openondemand.org/t/proxy-error-the-proxy-server-received-an-invalid-response-from-an-upstream-server/4111/3 "2025-03-12T15:05:48Z")

</div>

It is running behind an AWS Load Balancer.

---

<div class="post-metadata">

**Author:** ![maestro7879](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/maestro7879/32/1865_2.png) [@maestro7879](https://discourse.openondemand.org/u/maestro7879)\
**Post date:** [March 12, 2025, 3:59pm UTC](https://discourse.openondemand.org/t/proxy-error-the-proxy-server-received-an-invalid-response-from-an-upstream-server/4111/4 "2025-03-12T15:59:33Z")

</div>

Is it possible that the user is timing out somewhere ? They are running about 7 different jobs, do they need to load each time they log in for some reason ?

time\_proxy="60060.406 - This is the shortest time I see in the logs, some are way longer, in the six digits.

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [March 12, 2025, 4:01pm UTC](https://discourse.openondemand.org/t/proxy-error-the-proxy-server-received-an-invalid-response-from-an-upstream-server/4111/5 "2025-03-12T16:01:58Z")

</div>

Something is timing out. 499 is the http code for the client disconnecting. I’m guessing in this case the ‘client’ is OnDemand.

Not sure what the issue could be, but googling `499 aws load balancer` has a lot of hits.

---

<div class="post-metadata">

**Author:** ![maestro7879](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/maestro7879/32/1865_2.png) [@maestro7879](https://discourse.openondemand.org/u/maestro7879)\
**Post date:** [March 12, 2025, 4:38pm UTC](https://discourse.openondemand.org/t/proxy-error-the-proxy-server-received-an-invalid-response-from-an-upstream-server/4111/6 "2025-03-12T16:38:13Z")

</div>

This seemed to work but I’m not sure why.

cd /var/run/ondemand-nginx/username/  
mv passenger.pid /tmp  
mv passenger.sock /tmp  
/opt/ood/nginx\_stage/sbin/nginx\_stage nginx\_clean --user username

We also received " Website is under heavy load (queue full)" for that user, no one else experienced that.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [September 8, 2025, 4:39pm UTC](https://discourse.openondemand.org/t/proxy-error-the-proxy-server-received-an-invalid-response-from-an-upstream-server/4111/7 "2025-09-08T16:39:00Z")

</div>

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