【问题标题】:shinyapps.io- Failed to load resource: the server responded with a status of 500 (Internal Server Error)shinyapps.io - 加载资源失败:服务器响应状态为 500(内部服务器错误)
【发布时间】:2014-11-24 11:14:37
【问题描述】:

我有一个已上传到 shinyapps.io 的应用程序,但我注意到一些我无法追踪的不稳定因素。该应用程序有一堆不同的响应式输入,它们调用代码来过滤、计算和绘制一些数据。有时,选择这些输入的特定顺序会导致站点冻结并触发 500 内部服务器错误。

奇怪的是,当我在本地托管 (thru R) 版本的应用程序上执行相同的命令时,我没有收到错误。

这是一个真正的鼻屎追踪:关于什么可能导致问题和/或如何更好地调试它的任何建议?我是 javascript 新手,因此我们将不胜感激。

完整的代表性错误日志:

/opt/shiny-server/scripts/shiny-run: line 3:    32 Killed    
/bin/bash --login -c   "$SHINY_EXEC_COMMAND $SHINY_R_PATH $*"

Failed to load resource: the server responded with a status of 500 (Internal Server Error) 
<<site@shinyapps.io>>/shared/bootstrap/css/bootstrap-responsive.min.css

Failed to load resource: the server responded with a status of 500 (Internal Server Error) 
<<site@shinyapps.io>>/shared/bootstrap/css/bootstrap.min.css

Failed to load resource: the server responded with a status of 500 (Internal Server Error) 
<<site@shinyapps.io>>/shared/font-awesome/css/font-awesome.min.css

Failed to load resource: the server responded with a status of 500 (Internal Server Error) 
<<site@shinyapps.io>>/shared/datatables/css/DT_bootstrap.css

【问题讨论】:

    标签: r shiny shiny-server


    【解决方案1】:

    好吧——事实证明问题其实很简单。该应用程序只是内存不足。

    在错误日志中,有一行关于进程被杀死,这表明内存不足。您可以访问错误日志 ShinyApps::showLogs()

    要解决此问题,您可以通过以下方式增加应用的可用内存: shinyapps::configureApp("APPNAME", size="xlarge")

    其中“APPNAME”是应用程序的名称。更多关于内存的信息在这里:http://shiny.rstudio.com/articles/shinyapps.html

    感谢 RStudio 的人们帮助诊断。

    【讨论】:

      猜你喜欢
      • 2013-04-16
      • 1970-01-01
      • 2018-01-22
      • 2021-07-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多