I have a shiny app deployed on a virtual machine with the free version of shiny server. It works without any issues locally, and when accessed through the localhost (same intranet).
However, after adding Apache and an SSL certificate to be able to access to the app from anywhere is when some issues with disconnecting have appeared.
The app disconnects when it needs to do longer calculation (~ 1 minute long). However, before disconnecting it shows the result of that calculation, (in this case a plot with plotly).
I get these errors:
Firefox can’t establish a connection to the server at https://*****/websocket
Connection closed. Info: {"type":"close","code":4704,
"reason":"Protocol error handling message: Error: Discard position id too big","wasClean":true}
The log file on /var/log/shiny-service/.log does not show any errors:
This is the last line: Please specify in ggplotly() or plot_ly(). A message that doesn't cause any error.
I have already tried everything I could find like:
Apache Configuration:
keepAlive OnMaxKeepAliveRequests 0
Shiny Server Configuration:
app_init_timeout 300;app_idle_timeout 300;
I have no idea what else to try to solve this, and any help would be highly appreciated.
Edit
This is how the app looks after it disconnects, the plot has been generated, after a minute, however it still disconnects automatically.
