Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Proxy after clicking the home page button #458

Open
lfagliano opened this issue Sep 25, 2023 · 1 comment
Open

Release Proxy after clicking the home page button #458

lfagliano opened this issue Sep 25, 2023 · 1 comment
Labels

Comments

@lfagliano
Copy link

Hello!

Thank you for your repo and documentation, it has been very useful on deploying my apps.

However, I am having a problem right now, where an app, which utilizes a SQL connection, has some weird interactions when clicking the home button on the top bar.

What is happening:

  1. A user logs into the server
  2. They go the app
  3. The app loads
  4. They utilize the app.
  5. They disconnect of the app (but not of the shinyproxy server)
  6. They click the home page

IF they click back on the app before 60 seconds:
7. The app loads very fast
8. The app looks like a "catcher" version of the first time they loaded the app
9. The app is unable to connect to SQL, and crashes.

IF they wait for more than 60 seconds:
7. The app launches again (loading the container)
8. Everything looks like it is supposed to be and works normally.

Behind the scenes I have noticed some things:

  • The app breaks if the container is not terminated (if they use the same container on the second attempt, it breaks).
  • The proxy is not being released when they click the home button
  • If they log out (which also means the proxy is released and the container is terminated), the app works perfectly when they are back regardless of time.

What I tried:

  1. I tried adding a force reconnection within my app to the SQL table, but it just doesn't work when in shinyproxy.
  2. I tried adding the heartbeat-timeout option to the app, this manages to terminate the container - BUT when they launch the app again, it is a blank white screen, and a container is not created.
  3. The app works when the proxy is activated and released.

Hence the question, is there anyway of releasing the proxy after the user clicks the home page button?

@LEDfan LEDfan added the question label Jan 2, 2024
@LEDfan
Copy link
Member

LEDfan commented Jan 2, 2024

Hi, there is currently not such an option. I think the best solution would be to try to fix the issue when users re-open the app. You could try running the app as a standalone docker app, open the app in your browser and try to refresh the page in order to see whether you can reproduce the issue and fix it hopefully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants