You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
A user logs into the server
They go the app
The app loads
They utilize the app.
They disconnect of the app (but not of the shinyproxy server)
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:
I tried adding a force reconnection within my app to the SQL table, but it just doesn't work when in shinyproxy.
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.
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?
The text was updated successfully, but these errors were encountered:
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.
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:
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:
What I tried:
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.Hence the question, is there anyway of releasing the proxy after the user clicks the home page button?
The text was updated successfully, but these errors were encountered: