Shiny service crashes

R version 3.3.1 (2016-06-21) is installed on my Centos 7 server and can access it via my browser and launch a Shiny app. I also installed a Shiny server (Shiny Server v1.3.0.403, Node.js v0.10.21) on the machine. The Shiny server comes up and many users use different dashboards without any issues. But shiny service crashes randomly leaving below error in the log.

[ERROR] shiny-server - ESC[39mUncaught exception: TypeError: Cannot read property 'readable' of null

[INFO] shiny-server - ESC[39mStopping listener on 0.0.0.0:3838

[INFO] shiny-server - ESC[39mShutting down worker processes (with notification)

/opt/shiny-server/lib/main.js:325

throw err;

    ^

TypeError: Cannot read property 'readable' of null

at ServerResponse.ondrain (/opt/shiny-server/node_modules/http-proxy/lib/node-http-proxy/http-proxy.js:327:19)

at ServerResponse.EventEmitter.emit (events.js:92:17)

at Socket.ondrain (http.js:1854:44)

at Socket.EventEmitter.emit (events.js:117:20)

at onwriteDrain (_stream_writable.js:283:12)

at afterWrite (_stream_writable.js:271:5)

at onwrite (_stream_writable.js:264:7)

at Socket.WritableState.onwrite (_stream_writable.js:97:5)

at Object.afterWrite (net.js:728:12)

I cannot see any error in user logs. I have read a few posts and heard from others to upgrade shiny service but still, want to know why the service is crashing. Can someone help me out here?

It's a bug in Shiny Server that was triggered by certain kinds of requests. The bug was long since fixed, please upgrade to the current version of Shiny Server!

2 Likes

Thanks you Joe for your comment. I will upgrade the shiny server in that case.