The Shiny application works fine when I run it from RStudio server, but crashes if it runs on the shiny server

The Shiny application works fine when I run it from RStudio server, but crashes and disconnects if it runs on the shiny server.
More specifically, when I generate big plotly charts (or excel, pdf...) Shiny generate a socket error during chart transmission to the browser.
The app crashes immediately after that.
Time to render chart (or excel, pdf) is not causing the error. The problem is related to the size of the chart.
I have changed app_init_timeout, app_idle_timeout, app_session_timeout params but it does not affect the result.
Does anyone have idea of how can I fix it?
Thanks in advance for your support.

Diego

This is a copy of the log:

[2023-02-02T07:29:48.095] [TRACE] shiny-server - Accepted SockJS connection for /s2/sockjs/n=FsTPBvY45s6mMhwN39/573/qzrvjr34/websocket
[2023-02-02T07:29:48.097] [TRACE] shiny-server - Reusing existing instance
[2023-02-02T07:29:48.097] [TRACE] shiny-server - Worker #08809cb97d186309 releasing pending port. 0 HTTP, 0 WebSocket, 0 pending.
[2023-02-02T07:29:48.097] [TRACE] shiny-server - No clients connected to worker #08809cb97d186309. Starting timer
[2023-02-02T07:29:48.097] [TRACE] shiny-server - Worker #08809cb97d186309 acquiring sock port. 0 HTTP, 1 WebSocket, 0 pending.
[2023-02-02T07:30:03.709] [TRACE] shiny-server - Reusing existing instance
[2023-02-02T07:30:03.709] [TRACE] shiny-server - Worker #08809cb97d186309 acquiring http port. 1 HTTP, 1 WebSocket, 0 pending.
[2023-02-02T07:30:03.709] [TRACE] shiny-server - Proxying request: /session/c135442e9d76ae2d107228b06ef91349/dataobj/datatable?w=&nonce=baf907774a898f87
[2023-02-02T07:30:03.709] [TRACE] shiny-server - http_proxy event: start
[2023-02-02T07:30:03.710] [TRACE] shiny-server - http_proxy event: proxyReq
[2023-02-02T07:30:03.745] [TRACE] shiny-server - http_proxy event: proxyRes
[2023-02-02T07:30:03.753] [TRACE] shiny-server - http_proxy event: end
[2023-02-02T07:30:03.753] [TRACE] shiny-server - Worker #08809cb97d186309 releasing http port. 0 HTTP, 1 WebSocket, 0 pending.
[2023-02-02T07:30:17.066] [TRACE] shiny-server - Worker #08809cb97d186309 releasing sock port. 0 HTTP, 0 WebSocket, 0 pending.
[2023-02-02T07:30:17.066] [TRACE] shiny-server - No clients connected to worker #08809cb97d186309. Starting timer
[2023-02-02T07:30:17.192] [TRACE] shiny-server - Withholding event 'end' from robust connection FsTPBvY45s6mMhwN39
[2023-02-02T07:30:17.192] [TRACE] shiny-server - Withholding event 'close' from robust connection FsTPBvY45s6mMhwN39
[2023-02-02T07:30:22.070] [TRACE] shiny-server - Timeout expired. Killing process.
[2023-02-02T07:30:22.070] [TRACE] shiny-server - Interrupting process on socket port 45305
[2023-02-02T07:30:22.070] [TRACE] shiny-server - Sending SIGINT to 7190
[2023-02-02T07:30:22.288] [TRACE] shiny-server - Port 45305 returned
[2023-02-02T07:30:22.289] [TRACE] shiny-server - Port 45305 proxy closed
[2023-02-02T07:30:22.289] [TRACE] shiny-server - Normal exit, deleting log file /var/log/shiny-server/s2-peroni-20230202-072945-45305.log
[2023-02-02T07:30:32.195] [DEBUG] shiny-server - Closing robust connection FsTPBvY45s6mMhwN39 deleting log file /var/log/shiny-server/s2-peroni-20230202-071548-36089.

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.