故障排除Shiny server Pro

时间:2018-06-07 13:32:05

标签: shiny shiny-server

我正在尝试在Server Pro上部署一个Shiny应用程序,并在添加用户身份验证(平面文件)时遇到问题。

问题描述:

我们按照以下步骤启用身份验证:

Step 1: Adding user to password file (Query: We are updating the passwd file at ‘/etc/shiny-server/’ location with ‘sudo /opt/shiny-server/bin/sspasswd /etc/shiny-server/passwd John’. And we can see an entry in the passwd file)
Step 2: Updating the config file (Query: Then, we are updating server-config file at ‘/etc/shiny-server/’ location by adding ‘required_user John;’. Please refer to the attached server-config file)
Step 3: Restarting the server (Query: Then, we use ‘sudo restart shiny-server’ to restart the shiny server. However, upon firing the command the server does not restart and shows a message ‘502 Bad Gateway’ on the browser)

问题:在第3步之后,服务器崩溃。

请参阅server-config以供参考。

run_as shiny;
auth_passwd_file /etc/shiny-server/passwd;

# Define a server that listens on port 3838
server {
  listen 3838;

  # Define a location at the base URL
  location / {

   site_dir /srv/shiny-server;

   required_user abhinavC;

   log_dir /var/log/shiny-server;

    directory_index on;
  }
}

0 个答案:

没有答案