在AWS实例上部署的闪亮服务器中访问错误日志 [英] Accessing Error log in shiny-server deployed on AWS instance
问题描述
我有一个闪亮的应用程序,可以在RStudio的本地计算机上正常运行.我启动了一个AWS EC2 Ubuntu实例,并在其上安装了R和Shiny-server.当我通过浏览器访问该应用程序时,该应用程序在(看似)任意点崩溃.
I have a shiny app that runs fine on my local machine in RStudio. I have launched an AWS EC2 Ubuntu instance and installed R and shiny-server on it. When I access the app via browser, the app crashes at a (seemingly) arbitrary point.
在哪里可以访问R控制台日志以便调试代码?/var/log/shiny-server中没有文件.此外,浏览器中的控制台仅声明:
Where can I access the R console log in order to be able to debug the code? There is no file in /var/log/shiny-server. Furthermore, the console in the browser simply states:
应用程序意外退出.
The application unexpectedly exited.
诊断信息是私有的.如果需要检查R日志,请询问系统管理员.
Diagnostic information is private. Please ask your system admin for permission if you need to check the R logs.
我尝试与options(shiny.sanitize.errors = FALSE)
一起工作无济于事.
I have tried working with options(shiny.sanitize.errors = FALSE)
to no avail.
推荐答案
我找到了解决方案.不得不添加sanitize_errors false;到shiny-server.conf,然后重新启动shiny-server.然后,错误日志将显示在浏览器控制台中.
I found the solution. One hast to add sanitize_errors false; to the shiny-server.conf and then restart shiny-server. Then the error log is displayed in the browsers console.
这篇关于在AWS实例上部署的闪亮服务器中访问错误日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!