简体   繁体   English

闪亮的应用程序无法在闪亮的服务器上启动

[英]Shiny App unable to start on shiny server

I want to deploy a Shiny app on the Shiny server but not able to access the app from the local server URL.我想在Shiny server上部署一个Shiny应用程序,但无法从本地服务器 URL 访问该应用程序。

在此处输入图片说明

This is the output of /var/log/shiny-server.log :这是/var/log/shiny-server.log的输出:

[2016-04-11 21:39:24.302] [INFO] shiny-server - Starting listener on 0.0.0.0:3838
[2016-04-11 21:42:29.564] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2016-04-11 21:42:29.570] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2016-04-11 21:43:15.156] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2016-04-11 21:43:15.163] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2016-04-11 21:43:28.593] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2016-04-11 21:43:28.604] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2016-04-11 21:43:54.549] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2016-04-11 21:51:52.528] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2016-04-11 21:52:20.004] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2016-04-11 21:52:20.020] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2016-04-11 21:52:26.843] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2016-04-11 21:56:10.938] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2016-04-11 21:56:10.946] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.

What is the problem?有什么问题?

I have run into this situation before when my R code was failing.在我的 R 代码失败之前,我遇到过这种情况。 Since I write my R code on a windows machine and run my shiny server on ubuntu, some packages work fine in on windows but fail in ubuntu or if I forget to install the package on the ubuntu machine.由于我在 Windows 机器上编写我的 R 代码并在 ubuntu 上运行我的闪亮服务器,因此某些软件包在 Windows 上运行良好,但在 ubuntu 中失败,或者如果我忘记在 ubuntu 机器上安装该软件包。 To find out when that's happening you have to go to the apps log not the servers log.要了解何时发生这种情况,您必须转到应用程序日志而不是服务器日志。

There should be a log specific to your app in:应该有一个特定于您的应用程序的日志:

\\var\\log\\shiny-server\\YourAppName-20191112-170851-44977.log

The numbers after App Name have to do with the timestamp of when the app tried to run. App Name 后面的数字与应用程序尝试运行时的时间戳有关。 This log file will contain the R output if there are any errors with specific packages or your R code causing the app to fail.如果特定包或您的 R 代码有任何错误导致应用程序失败,则此日志文件将包含 R 输出。

Maybe you can have a look here .也许你可以看看这里
I would focus on this error我会关注这个错误

[2016-04-11 21:39:24.302] [INFO] shiny-server - Starting listener on 0.0.0.0:3838 [2016-04-11 21:39:24.302] [INFO] 闪亮服务器 - 在 0.0.0.0:3838 上启动侦听器

On the provided link you'll find that a couple of user double checked permissions: on port 3838 and on the shiny server.在提供的链接上,您会发现有几个用户仔细检查了权限:在端口 3838 和闪亮的服务器上。

Furthermore I recommend to have a look at this guide .此外,我建议您查看本指南
I was able to run my shiny app on an Ubuntu RStudio server by following it.通过遵循它,我能够在 Ubuntu RStudio 服务器上运行我的闪亮应用程序。

I ran into this problem and all of my logs were empty / unopenable.我遇到了这个问题,我的所有日​​志都是空的/无法打开。 After much banging my head against the wall I was able to fix this by changing the shiny user in the conf file (/etc/shiny-server/shiny-server.conf).在我的头撞墙之后,我能够通过更改 conf 文件(/etc/shiny-server/shiny-server.conf)中的闪亮用户来解决这个问题。

I changed "run_as shiny;"我改变了“run_as闪亮;” to "run_as :HOME_USER: shiny;".到“run_as:HOME_USER:闪亮;”。

Also, this:还有这个:

https://docs.rstudio.com/shiny-server/ https://docs.rstudio.com/shiny-server/

was more helpful than anything I could find on stackoverflow, github, or google groups.比我在 stackoverflow、github 或 google 群组上找到的任何东西都更有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM