почему на сервере RStudio запущено мое блестящее приложение, но приложение не отображается на блестящем сервере на экземпляре aws ec2?

#amazon-web-services #shiny-server #rstudio-server

Вопрос:

У меня загружено и запущено мое блестящее приложение на сервере RStudio на моем инстансе Amazon EC2, но Блестящий сервер по-прежнему говорит, что приложение не загружено.

введите описание изображения здесь

Я добавил логи сохранения в; аргумент, скопировал и вставил журналы сервера моего блестящего приложения ниже:

 [2021-10-01T21:40:48.734] [INFO] shiny-server - Shiny Server v1.5.16.958 (Node.js v12.20.0)
[2021-10-01T21:40:48.737] [INFO] shiny-server - Using config file "/etc/shiny-server/shiny-server.conf"
[2021-10-01T21:40:48.803] [WARN] shiny-server - Running as root unnecessarily is a security risk! You could be running more securely as non-root.
[2021-10-01T21:40:48.807] [INFO] shiny-server - Starting listener on http://[::]:3838
[2021-10-01T21:41:42.456] [INFO] shiny-server - Created bookmark state directory: /var/lib/shiny-server/bookmarks
[2021-10-01T21:41:42.457] [INFO] shiny-server - Created user bookmark state directory: /var/lib/shiny-server/bookmarks/shiny
[2021-10-01T21:41:43.252] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2021-10-01T21:41:43.271] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2021-10-01T21:46:44.173] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2021-10-01T21:46:44.197] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2021-10-01T22:39:02.890] [INFO] shiny-server - Shiny Server v1.5.16.958 (Node.js v12.20.0)
[2021-10-01T22:39:02.896] [INFO] shiny-server - Using config file "/etc/shiny-server/shiny-server.conf"
[2021-10-01T22:39:02.938] [WARN] shiny-server - Running as root unnecessarily is a security risk! You could be running more securely as non-root.
[2021-10-01T22:39:02.943] [INFO] shiny-server - Starting listener on http://[::]:3838
[2021-10-01T22:56:56.389] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2021-10-01T22:56:56.390] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2021-10-02T00:21:45.959] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2021-10-02T00:21:45.982] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2021-10-02T00:22:51.708] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2021-10-02T00:22:51.715] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2021-10-02T00:33:44.028] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2021-10-02T00:33:44.048] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2021-10-02T00:46:47.422] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2021-10-02T00:46:47.430] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2021-10-02T00:46:58.048] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2021-10-02T00:46:58.092] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2021-10-02T02:15:38.458] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2021-10-02T02:15:38.464] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2021-10-02T02:17:41.391] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2021-10-02T02:17:41.394] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2021-10-02T02:19:43.084] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2021-10-02T02:19:43.090] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2021-10-02T02:25:00.885] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2021-10-02T02:25:00.891] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
 

И вот мой файл shiny-server.conf:

   GNU nano 4.8                                                       /etc/shiny-server/shiny-server.conf                                                                 
# Instruct Shiny Server to run applications as the user "shiny"
run_as shiny;
preserve_logs true;
# Define a server that listens on port 3838
server {
  listen 3838;

  # Define a location at the base URL
  location / {

    # Host the directory of Shiny Apps stored in this directory
    site_dir /srv/shiny-server;

    # Log all Shiny output to files in this directory
    log_dir /var/log/shiny-server;

    # When a user visits the base URL rather than a particular application,
    # an index of the applications available in this directory will be shown.
    directory_index on;
  }
}
 

Я что-то упускаю? Почему приложение работает на сервере RStudio, но неправильно загружается на сервер Shiny?

Комментарии:

1. Согласно аналогичному вопросу на Github ( github.com/rstudio/shiny-server/issues/353 ), это может быть связано с отсутствием некоторых пакетов. Не могли бы вы проверить зависимости ваших пакетов?

2. Спасибо, что проверили это! Я действительно видел это, проверил и убедился, что все необходимые пакеты загружены. Приложение работает на сервере RStudio, я не вижу, чтобы оно отображалось на блестящем сервере.

3. Есть ли блестящая сборка сервера, совместимая с вашим EC2 AMI? И не могли бы вы предоставить более подробную информацию о вашем экземпляре EC2 ? download3.rstudio.org