This question already has an answer here:
Error: Discard position id too big

(1 个回答)


2年前关闭。




我在网络服务器上有一个正在运行的 Shiny 应用程序,它运行良好,直到我上周说。现在,有时(我猜是每两天)该应用程序会因“应用程序无法启动”消息而停止工作。当我重新启动 Shiny 的服务器时,就像我刚才所做的那样,一切都再次正常运行。

r - 几天后,应用程序无法在 Shiny 的 Web 服务器上启动-LMLPHP

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.

每当有人访问服务器时,都会重复最后一条消息。

最佳答案

所以最后,这个页面似乎解决了我的问题 Error: Discard position id too big

我将 app_init_timeoutapp_idle_timeout 都设置为 1800,从那时起我就没有其他问题了。
restart.txt 文件的注释也可能很有趣。如果页面仍在工作,我想用 shell 脚本进行测试,否则触摸 txt。
http://docs.rstudio.com/shiny-server/#restarting-an-application

但正如我所说,最终它通过调整 app_init_timeoutapp_idle_timeout 起作用。

关于r - 几天后,应用程序无法在 Shiny 的 Web 服务器上启动,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/50810579/

10-12 18:07
查看更多