Thumbor - Supervisor进程退出循环"退出状态1;不期望" - Ubuntu 16.04

时间:2017-08-07 16:42:31

标签: ubuntu nginx amazon-ec2 ubuntu-16.04 thumbor

我正在尝试使用主管启动拇指,并一直关注this guide

这是在EC2实例上的Ubuntu 16.04上(如果这很重要)。

我已经安装了所有必需的软件包,所有内容似乎都运行正常,直到我检查了日志:

sudo service supervisor status

● supervisor.service - Supervisor process control system for UNIX
   Loaded: loaded (/lib/systemd/system/supervisor.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2017-08-07 16:17:24 UTC; 16min ago
     Docs: http://supervisord.org
  Process: 7774 ExecStop=/usr/bin/supervisorctl $OPTIONS shutdown (code=exited, status=0/SUCCESS)
 Main PID: 7851 (supervisord)
    Tasks: 9
   Memory: 103.2M
      CPU: 11min 20.403s
   CGroup: /system.slice/supervisor.service
           ├─ 7851 /usr/bin/python /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf
           ├─17956 /usr/bin/python /usr/local/bin/thumbor --ip=127.0.0.1 --port=8000 --conf=/etc/thumbor8000.conf
           ├─17957 /usr/bin/python /usr/local/bin/thumbor --ip=127.0.0.1 --port=8001 --conf=/etc/thumbor8001.conf
           ├─17958 /usr/bin/python /usr/local/bin/thumbor --ip=127.0.0.1 --port=8002 --conf=/etc/thumbor8002.conf
           └─17959 /usr/bin/python /usr/local/bin/thumbor --ip=127.0.0.1 --port=8003 --conf=/etc/thumbor8003.conf

2017-08-07 17:02:12,741 INFO spawned: 'thumbor8000' with pid 2551
2017-08-07 17:02:12,743 INFO spawned: 'thumbor8001' with pid 2552
2017-08-07 17:02:12,745 INFO spawned: 'thumbor8002' with pid 2553
2017-08-07 17:02:12,751 INFO spawned: 'thumbor8003' with pid 2554
2017-08-07 17:02:13,742 INFO success: thumbor8000 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2017-08-07 17:02:13,742 INFO success: thumbor8001 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2017-08-07 17:02:13,746 INFO success: thumbor8002 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2017-08-07 17:02:13,754 INFO success: thumbor8003 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2017-08-07 17:02:13,842 INFO exited: thumbor8001 (exit status 1; not expected)
2017-08-07 17:02:13,843 INFO spawned: 'thumbor8001' with pid 2567
2017-08-07 17:02:13,845 INFO exited: thumbor8002 (exit status 1; not expected)
2017-08-07 17:02:13,847 INFO spawned: 'thumbor8002' with pid 2568
2017-08-07 17:02:13,848 INFO exited: thumbor8003 (exit status 1; not expected)
2017-08-07 17:02:13,850 INFO exited: thumbor8000 (exit status 1; not expected)
2017-08-07 17:02:14,331 INFO spawned: 'thumbor8000' with pid 2575
2017-08-07 17:02:14,333 INFO spawned: 'thumbor8003' with pid 2576
2017-08-07 17:02:14,457 INFO exited: thumbor8002 (exit status 1; not expected)
2017-08-07 17:02:14,466 INFO exited: thumbor8001 (exit status 1; not expected)
2017-08-07 17:02:14,941 INFO exited: thumbor8003 (exit status 1; not expected)
2017-08-07 17:02:14,943 INFO exited: thumbor8000 (exit status 1; not expected)

我的/etc/supervisor/conf.d/thumbor.conf如下:

command=thumbor --ip=127.0.0.1 --port=800%(process_num)s --conf=/etc/thumbor800%(process_num)s.conf
process_name=thumbor800%(process_num)s
numprocs=4
autostart=true
autorestart=true
startretries=3
stopsignal=TERM
stdout_logfile=/home/ubuntu/logs/thumbor800%(process_num)s.stdout.log
stdout_logfile_maxbytes=1MB
stdout_logfile_backups=10
stderr_logfile=/home/ubuntu/logs/thumbor800%(process_num)s.stderr.log
stderr_logfile_maxbytes=1MB
stderr_logfile_backups=10

INFO exited: thumbor800x (exit status 1; not expected)继续并一直运行直到我停止。

当我尝试访问IP时,我收到took too long to respond消息并且超时。

我的/etc/nginx/nginx.conf带有拇指部分,如下http {}块内:

        upstream thumbor {
        server 127.0.0.1:8000;
        server 127.0.0.1:8001;
        server 127.0.0.1:8002;
        server 127.0.0.1:8003;
}
server {
        listen 80;
        server_name my_ec2_ip.compute.amazonaws.com;
        location / {
            proxy_pass http://thumbor;
        }
}

我必须注释掉原来的sites-enabled服务器端口才能使这部分工作。

我不确定我做错了什么。我对此很新,所以希望这是我错过的小事。

如果我遗漏任何其他诊断信息,请告诉我。

0 个答案:

没有答案