gpt4 book ai didi

在 R studio 中成功运行应用程序,但在 Shiny 服务器中运行失败

转载 作者:行者123 更新时间:2023-12-03 16:02:36 26 4
gpt4 key购买 nike

我的操作系统是ubuntu。

我在 rstudio 中成功运行了一个 Shiny 的应用程序。

我已经复制了 Shiny 的服务器文件中的所有文件。但是当我尝试从 Shiny 的服务器运行应用程序时,我在浏览器中看到了这个错误:

ERROR: An error has occurred. Check your logs or contact the app author for clarification.

但是,当我查看日志时,我找不到特定应用程序的日志。

有没有针对此类问题的解决方法?

最佳答案

我无法发表评论,所以我将其作为答案。您的应用程序需要的所有软件包是否都安装在服务器上?

如果 R 进程成功结束,则不会存储日志,如果我没记错的话,包括未安装软件包的时间。

来自 Shiny Server Configuration Guide

A log file will be created for each R process when it is started. However, if a process closes successfully, the error log associated with that process will be automatically deleted. The only error log files that will remain on disk are those associated with R processes that did not exit as expected.

You can override this behavior using the preserve_logs configuration option. If you set preserve_logs true; in your configuration file, Shiny Server will never delete the logs from your R processes, regardless of their exit code. Be aware that this will cause log files to accumulate very quickly on a busy server. This setting is only recommended for debugging purposes; if it were to be enabled on a production server, you would need to pay close attention to the rotation and archiving of logs to prevent your file system becoming overwhelmed with log files.

关于在 R studio 中成功运行应用程序,但在 Shiny 服务器中运行失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42262055/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com