9

背景:我在 RHEL 5 机器上运行闪亮的服务器,它一直以不可重现的方式崩溃。似乎node.js与错误有关..

错误如下:

 Error: write EIO
    at errnoException (net.js:901:11)
    at Object.afterWrite (net.js:718:19)

来自 /var/log/shiny-server.log 的日志

[2015-07-15 17:28:20.982] [INFO] shiny-server - ^[[39mShiny Server v1.4.0.718 (Node.js v0.10.21)
            ^[[32m[2015-07-15 17:28:20.984] [INFO] shiny-server - ^[[39mUsing pidfile /foplocal/app/shiny-server/shiny-server.pid
            ^[[32m[2015-07-15 17:28:20.985] [INFO] shiny-server - ^[[39mUsing config file "/etc/shiny-server/shiny-server.conf"
            ^[[32m[2015-07-15 17:28:21.039] [INFO] shiny-server - ^[[39mStarting listener on 0.0.0.0:3838
            ^[[31m[2015-07-15 20:17:50.196] [ERROR] shiny-server - ^[[39mUncaught exception: Error: write EIO
            ^[[31m[2015-07-15 20:17:50.197] [ERROR] shiny-server - ^[[39mError: write EIO
                at errnoException (net.js:901:11)
                at Object.afterWrite (net.js:718:19)
            ^[[32m[2015-07-15 20:17:50.198] [INFO] shiny-server - ^[[39mStopping listener on 0.0.0.0:3838
            ^[[32m[2015-07-15 20:17:50.198] [INFO] shiny-server - ^[[39mShutting down worker processes (with notification)

会话信息

R version 3.2.1 (2015-06-18)
Platform: x86_64-redhat-linux-gnu (64-bit)

locale:
[1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8       LC_MESSAGES=en_US.UTF-8   
[7] LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

类似问题:https ://groups.google.com/forum/#!topic/shiny-discuss/V5cv0f7Gmtk

任何帮助将不胜感激!在最坏的情况下,我将放置一个 cron 作业来监视服务并在失败时启动它。

4

1 回答 1

5

看起来我在这个问题上悬赏有点仓促。

答案在彼得发布的链接中。

闪亮服务器的 1.3.0.403 版本有一个错误,它不能很好地与 DT 等软件包配合使用。升级到至少版本 1.4.0.721 应该足以解决这个问题。

于 2017-01-31T17:34:27.933 回答