闪亮服务器 - 活动:不活动(死机)

时间:2016-06-29 03:36:46

标签: r amazon-web-services amazon-ec2 shiny shiny-server

几天前我在AWS中使用CentOS创建了一个实例--MySQL - R - Shiny-Server。闪亮的服务器是免费版本。我将我的应用程序数据加载到MySQL中。我的应用程序在没有任何故障的情况下运行了两天。从昨天下午开始,我收到了一条"连接失败:消息"来自Safari。当我探索我弄清楚为什么闪亮的服务器停止时,我收到以下消息:

systemctl status shiny-server -l
● shiny-server.service - ShinyServer
   Loaded: loaded (/etc/systemd/system/shiny-server.service; enabled; vendor preset: disabled)
   Active: inactive (dead) since Wed 2016-06-29 02:51:11 UTC; 35s ago
  Process: 3567 ExecStopPost=/usr/bin/sleep 5 (code=exited, status=0/SUCCESS)
  Process: 3565 ExecStartPost=/usr/bin/sleep 3 (code=exited, status=0/SUCCESS)
  Process: 3557 ExecStart=/usr/bin/bash -c /opt/shiny-server/bin/shiny-server --pidfile=/var/run/shiny-server.pid >> /var/log/shiny-server.log 2>&1 (code=exited, status=0/SUCCESS)
 Main PID: 3276 (code=exited, status=0/SUCCESS)

Jun 29 02:51:03 ip-172-31-8-158.ap-southeast-1.compute.internal systemd[1]: Starting ShinyServer...
Jun 29 02:51:11 ip-172-31-8-158.ap-southeast-1.compute.internal systemd[1]: Started ShinyServer.

当我检查/var/log/shiny-server.log时,我收到以下错误。

^[[32m[2016-06-29 02:51:03.902] [INFO] shiny-server - ^[[39mShiny Server v1.4.2.786 (Node.js v0.10.40)
^[[32m[2016-06-29 02:51:03.903] [INFO] shiny-server - ^[[39mUsing pidfile /var/run/shiny-server.pid
^[[32m[2016-06-29 02:51:03.904] [INFO] shiny-server - ^[[39mUsing config file "/etc/shiny-server/shiny-server.conf"
^[[31m[2016-06-29 02:51:03.940] [ERROR] shiny-server - ^[[39mError loading config: run_as directive appears too many times (/etc/shin$
^[[32m[2016-06-29 02:51:03.941] [INFO] shiny-server - ^[[39mShutting down worker processes

当我删除PIDfile行上的注释时出现以下错误:

Job for shiny-server.service failed because a configured resource limit was exceeded. 

在这里举例来说,我尝试了以下几点:

注释掉了PIDfile=/var/run/shiny-server.pid行,并在/etc/systemd/system/shiny-server.service文件中更改了Type=forking simple。停止,启动,重新启动发光服务器并注释掉,在pid文件中注释似乎无法正常工作。

尝试添加链接ln -s shiny-server.service /systemd/system/multi-user.target.wants但已退出消息文件。不知道如何再次启动服务器。

0 个答案:

没有答案