Shiny Server is Running but my App won't run and theres no App Log

The only log i access is the shiny server log. I'm not sure why my application isn't running. My app page says: ERROR: An error has occurred. Check your logs or contact the app author for clarification. I'v downloaded all the libraries I need.

The shiny-server log says:

^[[32m[2018-12-17 21:28:43.581] [INFO] shiny-server - ^[[39mShiny Server v1.4.2.786 (Node.js v0.10.40)
^[[32m[2018-12-17 21:28:43.582] [INFO] shiny-server - ^[[39mUsing pidfile /var/run/shiny-server.pid
^[[32m[2018-12-17 21:28:43.582] [INFO] shiny-server - ^[[39mUsing config file "/etc/shiny-server/shiny-server.conf"
^[[33m[2018-12-17 21:28:43.606] [WARN] shiny-server - ^[[39mRunning as root unnecessarily is a security risk! You could be running more $
^[[32m[2018-12-17 21:28:43.607] [INFO] shiny-server - ^[[39mStarting listener on 0.0.0.0:3838
^[[31m[2018-12-17 21:37:54.434] [ERROR] shiny-server - ^[[39mUncaught exception: TypeError: Cannot read property 'readable' of null
^[[31m[2018-12-17 21:37:54.435] [ERROR] shiny-server - ^[[39mTypeError: 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.emit (events.js:92:17)
    at Socket.ondrain (http.js:1855:44)
    at Socket.emit (events.js:117:20)
    at onwriteDrain (_stream_writable.js:289:12)
    at afterWrite (_stream_writable.js:277:5)
    at onwrite (_stream_writable.js:270:7)
    at Socket.WritableState.onwrite (_stream_writable.js:97:5)
    at Object.afterWrite (net.js:731:12)
^[[32m[2018-12-17 21:37:54.435] [INFO] shiny-server - ^[[39mStopping listener on 0.0.0.0:3838
^[[32m[2018-12-17 21:37:54.435] [INFO] shiny-server - ^[[39mShutting down worker processes (with notification)

/opt/shiny-server/lib/main.js:367
  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.emit (events.js:92:17)
    at Socket.ondrain (http.js:1855:44)
    at Socket.emit (events.js:117:20)
    at onwriteDrain (_stream_writable.js:289:12)
    at afterWrite (_stream_writable.js:277:5)
    at onwrite (_stream_writable.js:270:7)
    at Socket.WritableState.onwrite (_stream_writable.js:97:5)
    at Object.afterWrite (net.js:731:12)
0[2018-12-17T21:51:17.456] [INFO] shiny-server - Shiny Server v1.5.9.923 (Node.js v8.11.3)
[2018-12-17T21:51:17.458] [INFO] shiny-server - Using config file "/etc/shiny-server/shiny-server.conf"
[2018-12-17T21:51:17.488] [WARN] shiny-server - Running as root unnecessarily is a security risk! You could be running more securely as $
[2018-12-17T21:51:17.491] [INFO] shiny-server - Starting listener on http://[::]:3838
[2018-12-17T21:51:41.062] [INFO] shiny-server - Created bookmark state directory: /var/lib/shiny-server/bookmarks
[2018-12-17T21:51:41.063] [INFO] shiny-server - Created user bookmark state directory: /var/lib/shiny-server/bookmarks/shiny
[2018-12-17T22:52:09.436] [INFO] shiny-server - Stopping listener on http://[::]:3838
[2018-12-17T22:52:09.436] [INFO] shiny-server - Shutting down worker processes (with notification)
[2018-12-17T22:52:19.070] [INFO] shiny-server - Shiny Server v1.5.9.923 (Node.js v8.11.3)
[2018-12-17T22:52:19.072] [INFO] shiny-server - Using config file "/etc/shiny-server/shiny-server.conf"
[2018-12-17T22:52:19.103] [WARN] shiny-server - Running as root unnecessarily is a security risk! You could be running more securely as $
[2018-12-17T22:52:19.106] [INFO] shiny-server - Starting listener on http://[::]:3838

I am getting a very similar issue.
I can see from your log that you were using
Server v1.4.2.786 (Node.js v0.10.40)
and then later
Shiny Server v1.5.9.923 (Node.js v8.11.3)
Im thinking there is something that happens when updating to new Shiny version, but I haven't found what I missed yet.

Have you looked at your app logs? It looks like the application died somehow, and the app log would shed some light on why.

Normally app logs are deleted when the worker process stops, but you can change that behavior with the preserve_logs settings: https://docs.rstudio.com/shiny-server/#application-error-logs

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