运行演示应用程序时闪亮的服务器失败

时间:2018-05-08 12:56:36

标签: r shiny

我在Centos 7服务器上安装了R,可以通过我的浏览器访问它并启动一个Shiny应用程序。我还在机器上安装了Shiny服务器。 Shiny服务器出现了,我可以连接到它并看到欢迎屏幕。

Shiny Server Welcome Screen

但是,当我输入一些垃圾箱来测试演示应用程序时 - 服务器失败(Firefox无法联系服务器......)。

Shiny Server Failure

这些是/var/log/shiny-server.log中出现的错误消息:

[2018-05-07 12:00:12.415] [INFO] shiny-server - Starting listener on 0.0.0.0:3838
[2018-05-07 12:03:55.701] [ERROR] shiny-server - Uncaught exception: 
TypeError: Cannot read property 'readable' of null
[2018-05-07 12:03:55.702] [ERROR] shiny-server - 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)
[2018-05-07 12:03:55.702] [INFO] shiny-server - Stopping listener on 
    0.0.0.0:3838
[2018-05-07 12:03:55.702] [INFO] shiny-server - Shutting 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)

我做错了什么?谢谢。

1 个答案:

答案 0 :(得分:2)

遵循这些说明 - Shiny Installation 我已将Shiny版本更新为1.5.7.907版本

$ wget https://download3.rstudio.org/centos6.3/x86_64/shiny-server-1.5.7.907-rh6-x86_64.rpm
$ sudo yum install --nogpgcheck shiny-server-1.5.7.907-rh6-x86_64.rpm

这解决了这个问题。

相关问题