shiny server The application fai

作者: JeremyL | 来源:发表于2020-10-15 21:49 被阅读0次

#问题:

An error has occurred\
The application failed to start.

The application exited during initialization.

#1. 检查R包的安装

  • 是否调用的所有R包都已安装

使用root安装,在个人用户下安装是不行的。

$ sudo su - -c "R -e \"install.packages('WGCNA', repos='http://cran.rstudio.com/', dependencies = TRUE)\""

或,下载到本地:

$ su
$ R CMD INSTALL WGCNA_1.69-81.tar.gz

注:检查所有安装的包

#2.修改配置文件

  • shiny-server配置
  • shiny-server 配置文件
$ vi  /etc/shiny-server/shiny-server.conf
# Define the user we should use when spawning R Shiny processes
run_as shiny;

# Define a top-level server which will listen on a port
server {
  # Instruct this server to listen on port 3838
  listen 3838;

  # Define the location available at the base URL
  location / {
    #### PRO ONLY ####
    # Only up tp 20 connections per Shiny process and at most 3 Shiny processes
    # per application. Proactively spawn a new process when our processes reach 
    # 90% capacity.
    utilization_scheduler 20 .9 3;
    #### END PRO ONLY ####

    # Run this location in 'site_dir' mode, which hosts the entire directory
    # tree at '/srv/shiny-server'
    site_dir /srv/shiny-server;
    
    # Define where we should put the log files for this location
    log_dir /var/log/shiny-server;
    
    # Should we list the contents of a (non-Shiny-App) directory when the user 
    # visits the corresponding URL?
    directory_index on;
  }
}

# Setup a flat-file authentication system. {.pro}
auth_passwd_file /etc/shiny-server/passwd;

# Define a default admin interface to be run on port 4151. {.pro}
admin 4151 {
  # Only permit the user named `admin` to access the admin interface.
  required_user admin;
}
  • run_as shiny: shiny改为linux用户名
  • 检查app路径,一般是:/srv/shiny-server;不是这个路径,就检查权限,可用chmod修改。

相关文章

  • shiny server The application fai

    #问题: #1. 检查R包的安装 是否调用的所有R包都已安装 使用root安装,在个人用户下安装是不行的。 或,下...

  • Shiny Server安装

    #为什么要使用Shiny Server Shiny Server使用户可以在网络上托管和管理Shiny应用程序。S...

  • shiny部署

    有几种方式: 1. Shinyapps.io 2. Shiny server 3. Shiny Server Pr...

  • Shiny-Server Second

    继上一次 shiny-server在docker上完成部署,shiny-server在使用依然出在着一些问题。 经...

  • 「R shiny 基础」如何进行网页布局

    在第一篇「R shiny 基础」初识Shiny ,我们了解了Shiny应用主要分为两个部分,UI对象和server...

  • adb.exe start-server' failed启动失败

    error: cannot connect to daemon(adb.exe start-server' fai...

  • Flyway版本化管理数据库脚本

    假如我们有一个叫shiny的项目,它是由一个程序Shiny-Server 和一个数据库 Shiny-DB组成的; ...

  • Eureka&集群

    Eureka Server pom依赖 application.properties配置 Application添...

  • 2018-01-23

    run on server 和 run as java application run on server是用来运...

  • shiny-初识

    shiny 初识 shiny是一个R包,能够以网页交互式显示图表。需要两个文件ui.R,server.R。其中ui...

网友评论

    本文标题:shiny server The application fai

    本文链接:https://www.haomeiwen.com/subject/elfapktx.html