JV-conseil/ucloud

Bug Report 🐞 (disposable) Public Links work only once 1️⃣

Opened this issue Β· 0 comments

  • I have activated the browser Private mode to evaluate if the error still happens.
  • I have turn-off any extension on my browser like adblock that may interfere with the app behaviour.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I execute it again in debug mode (DEBUF = True in settings).

Describe the bug πŸ›

503 Service Unavailable β€’ upstream connect error or disconnect reset before headers  reset reason connection failure
Status 503 Service Unavailable

Public Links run only once when connected to a Django job, then fail when launch a second time displaying the error message πŸ‘‰ upstream connect error or disconnect reset before headers reset reason connection failure

To Reproduce πŸ”‚

  1. Create a Public Links.
  2. Waiting for Ingress status to be Ingress is now ready.
  3. Connect the newly created Public Link to a Django job.
  4. Click on Submit to launch the Django job.
  5. Click on Open interface does open a browser window displaying the newly created Public Link in the navigation bar.
  6. Click on Stop application to terminate the running Django job.
  7. Click on Run application again to launch the Django job with the same parameters.
  8. Click on Submit to launch the Django job.
  9. Click on Open interface does open a browser window displaying the same Public Link as first run in the navigation bar, this time displaying the error message: upstream connect error or disconnect/reset before headers. reset reason: connection termination.

Configuration βš™οΈ

  • Python 3.11.0
  • PostgreSQL Server 14.5
  • Django version 4.1.2

Expected behavior πŸš€

app-mission-ocean cloud sdu dk DEBUG=False collectstatic cacheapp-mission-ocean.cloud.sdu.dk running in DEBUG=False with cache and collectstatic.

Additional context 🌍

When conducting searches on "kubernetes" "ingress" "upstream connect error or disconnect/reset before headers. reset reason: connection failure" on google.com, we note a lot of chatters around that issue, notably that one πŸ‘‡

For some time, our users reported seeing upstream connect errors and 503s like ”upstream connect error or disconnect/reset before headers. reset reason: connection terminationβ€œ. This issue goes away if we refresh our browser page. However, it was very difficult to reproduce this error. -- Puzzling 503s and Istio

Notes πŸ“

Public Links  πŸ”—

Public Links Created Worked Last Status
app-9a7f8023b8b09392140f3ff9f12c91f2.cloud.sdu.dk 19/03/2023 19/03/2023 🚫
app-githubbing.cloud.sdu.dk (deleted and created again) 18/03/2023 🚫
app-health-check.cloud.sdu.dk 18/03/2023 18/03/2023 βœ…
app-health-status.cloud.sdu.dk 18/03/2023 23/03/2023 βœ…
app-mission-ocean.cloud.sdu.dk 19/02/2023 🚫
app-research-funding.cloud.sdu.dk 11/03/2023 🚫
app-thalassa.cloud.sdu.dk 11/03/2023 23/03/2023 βœ…
app-yerun.cloud.sdu.dk 17/03/2023 🚫