我在网络服务器上有一个正在运行的闪亮应用程序,直到我上周才说它运行良好。现在,有时(我猜每两天)应用程序会停止工作并显示“应用程序无法启动”消息。当我重新启动闪亮的服务器时,就像我刚才所做的那样,一切又恢复正常了。
https://butterlab.imb-mainz.de/flydev/
有趣的是,我在该服务器上还有其他应用程序,即使该应用程序失败,它们也不会受到影响并且并行运行良好。
我在日志文件中找不到任何错误消息。我想知道:既然应用程序现在运行良好,我该如何调试它?
期待任何建议。
编辑:
发生错误后
我检查了shiny-server.log文件,发现以下消息:
[2018-06-14 14:29:20.080] [WARN] shiny-server - RobustSockJS collision: MqU4rgur76RPgjJIPr
[2018-06-15 01:28:18.398] [WARN] shiny-server - Error handling message: Error: Discard position id too big
[2018-06-15 02:00:10.358] [INFO] shiny-server - Error getting worker: Error: The application took too long to respond.
[2018-06-15 02:00:10.364] [INFO] shiny-server - Error getting worker: Error: The application took too long to respond.
Run Code Online (Sandbox Code Playgroud)
每当有人访问服务器时,最后一条消息就会重复。
所以最后,这个页面似乎解决了我的问题Error: Discardposition id too big
我设置app_init_timeout了app_idle_timeout两者1800,从那时起我就没有再遇到任何问题。
该文件的评论也restart.txt可能很有趣。我考虑过使用 shell 脚本测试页面是否仍在工作,否则触摸 txt。
http://docs.rstudio.com/shiny-server/#restarting-an-application
但正如我所说,最终它是通过调整app_init_timeout和来发挥作用的app_idle_timeout。
| 归档时间: |
|
| 查看次数: |
1538 次 |
| 最近记录: |