首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >重启后无法启动shiny服务器

重启后无法启动shiny服务器
EN

Stack Overflow用户
提问于 2017-11-01 09:52:02
回答 1查看 409关注 0票数 2

我在Ubuntu 16.04机器上安装了Shiny-server。在我第一次重启机器之前,它一直在工作。我不确定发生了什么,因为我仔细检查了配置文件,并调整了一些参数,但我仍然无法让它运行。因此,我决定重新安装它,但仍然没有运气。

shiny-server.service

代码语言:javascript
复制
[Unit]
Description=ShinyServer

[Service]
TimeoutStartSec=10
ExecStart=/bin/bash -c '/opt/shiny-server/bin/shiny-server --pidfile=/var/run/shiny-server.pid >> /var/log/shiny-server.log 2>&1'
# Needed to give SS a chance to write out to the PID file.
ExecStartPost=/bin/sleep 3
PIDFile=/var/run/shiny-server.pid
Type=simple

Environment="LANG=en_US.UTF-8"
ExecReload=/bin/kill -HUP $MAINPID
ExecStopPost=/bin/sleep 5
RestartSec=1


[Install]
WantedBy=multi-user.target

shiny-server.conf

代码语言:javascript
复制
# 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;
}

shiny-server.log

代码语言:javascript
复制
[32m[2017-11-01 01:01:43.874] [INFO] shiny-server - [39mShiny Server v1.5.5.872 (Node.js v6.10.3)
[32m[2017-11-01 01:01:43.878] [INFO] shiny-server - [39mUsing pidfile /var/run/shiny-server.pid
[32m[2017-11-01 01:01:43.879] [INFO] shiny-server - [39mUsing config file "/etc/shiny-server/shiny-server.conf"
[31m[2017-11-01 01:01:43.925] [ERROR] shiny-server - [39mError loading config: Unknown directive "utilization_scheduler" (/etc/shiny-server/shiny-server.conf:15:5)
[32m[2017-11-01 01:01:43.926] [INFO] shiny-server - [39mShutting down worker processes

任何帮助都将不胜感激。

EN

回答 1

Stack Overflow用户

发布于 2020-09-11 15:53:07

该错误消息是由于试图在免费版本中使用R Studio Pro的功能而导致的。如果没有pro版本,只需注释掉所有那些pro-only选项即可。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47047080

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档