Thumbor——主管流程退出循环”;退出状态1;“不可预期”Ubuntu 16.04

Thumbor——主管流程退出循环”;退出状态1;“不可预期”Ubuntu 16.04,ubuntu,nginx,amazon-ec2,ubuntu-16.04,thumbor,Ubuntu,Nginx,Amazon Ec2,Ubuntu 16.04,Thumbor,我正在尝试启动拇指或使用主管,并且一直在跟踪 这是在Ubuntu16.04上的EC2实例上(如果这很重要的话) 我已经安装了所有必要的软件包,在检查日志之前,一切似乎都正常工作: sudo服务主管状态 ● supervisor.service - Supervisor process control system for UNIX Loaded: loaded (/lib/systemd/system/supervisor.service; enabled; vendor preset:

我正在尝试启动拇指或使用主管,并且一直在跟踪

这是在Ubuntu16.04上的EC2实例上(如果这很重要的话)

我已经安装了所有必要的软件包,在检查日志之前,一切似乎都正常工作:

sudo服务主管状态

● 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
退出的
信息:thumbor800x(退出状态1;不期望)
继续运行,直到我停止

当我尝试访问IP时,我收到一条
响应时间过长的消息,并且超时

我的
/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;
        }
}
我不得不注释掉原来启用的
站点
服务器端口,以使该部分正常工作

我不确定我做错了什么。我是一个新手,所以希望这是我错过的一些小东西


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

smh在docker容器中运行nginx uwsgi django时偶然发现了类似问题。默认的django页面在容器外部加载正常,但我在日志中看到nginx不断停止并使用新的进程id重新启动。这让我担心,就像我在某个地方弄乱了配置一样。当然,我来到这里,看到了我的问题,一年后没有答案,所以我也遇到了类似的问题,在docker容器中运行。如果能找到解决方案,那就太好了。