shinyapps.io-加载资源失败:服务器响应状态为500(内部服务器错误)
问题描述:
我有一个应用程序,我已经上传到shinyapps.io,并且我一直在注意到一些不稳定因素,我可以没有痕迹。该应用程序有一堆不同的无功输入,它们调用代码来过滤,计算和绘制一些数据。偶尔,选择这些输入的一定顺序会导致站点冻结并触发500内部服务器错误。shinyapps.io-加载资源失败:服务器响应状态为500(内部服务器错误)
奇怪的是,当我在应用程序的本地托管(通过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)
<<[email protected]>>/shared/bootstrap/css/bootstrap-responsive.min.css
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
<<[email protected]>>/shared/bootstrap/css/bootstrap.min.css
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
<<[email protected]>>/shared/font-awesome/css/font-awesome.min.css
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
<<[email protected]>>/shared/datatables/css/DT_bootstrap.css
答
Alright--事实证明,这个问题其实很简单。该应用程序只是内存不足。
在错误日志中,有一行关于进程正在被终止,这表示没有足够的内存。你可以用 ShinyApps ::执行showlogs()
访问错误日志要解决此问题,您可以撞了可与应用程序的内存: shinyapps :: configureApp(“APPNAME”,大小=“XLARGE” )
其中“APPNAME”是应用程序的名称。有关内存的更多信息,请访问:http://shiny.rstudio.com/articles/shinyapps.html
感谢RStudio的帮助诊断人员。