ministryofjustice / analytical-platform

Analytical Platform • This repository is defined and managed in Terraform
https://docs.analytical-platform.service.justice.gov.uk
MIT License
12 stars 4 forks source link

🐛 App disconnects when AUTH_REQUIRED is set to false #3283

Closed michaeljcollinsuk closed 6 months ago

michaeljcollinsuk commented 8 months ago

Describe the bug.

Testing the AP Rshiny Notebook app with AUTH_REQUIRED disabled causes the websocket connection to disconnect almost immediately

To Reproduce

  1. Disable the AUTHENTICATION_REQUIRED setting for the app. Can be done via Control Panel
  2. Redeploy the app
  3. Access the app at the url https://ap-rshiny-notesbook-dev.apps.live.cloud-platform.service.justice.gov.uk/

To debug: Check errors in the pod logs Check errors in the dev console

Expected Behaviour

The app should function the same as it does when AUTH_REQUIRED is enabled

Additional context

Could be an error within the R code of the app. When loading the app, there are errors in the dev console that suggest that the shiny server dies: Mon Feb 12 2024 12:01:57 GMT+0000 (Greenwich Mean Time) [INF]: Connection closed. Info: {"type":"close","bubbles":false,"cancelable":false,"timeStamp":1707739317886,"wasClean":true,"code":4503,"reason":"The application unexpectedly exited"} See also https://stackoverflow.com/questions/42265329/shiny-server-connection-closed-info-typeclose-code4503-reasonthe

May also point to an issue with either the auth proxy, or the base image. App currently uses the open source image, could see if the behaviour is replicated in the other rshiny image (see app docs in user guidance).

github-actions[bot] commented 6 months ago

This issue is being marked as stale because it has been open for 60 days with no activity. Remove stale label or comment to keep the issue open.

github-actions[bot] commented 6 months ago

This issue is being closed because it has been open for a further 7 days with no activity. If this is still a valid issue, please reopen it, Thank you!