[stderr] master无法启动,请查看stderr日志以获取详细信息。 AWS | EC2 | Ubuntu |负载均衡器

时间:2017-02-22 15:35:29

标签: amazon-web-services ubuntu amazon-ec2 unicorn elastic-load-balancer

当部署时请求来到我的服务器时,它失败了。 我在AWS EC2中使用Ubuntu。由于我使用的是Elastic Load Balancer,我已尝试取消注册并再次向Load Balancer注册,以便同时我可以启动unicorn服务器。在开始独角兽之前我还要删除 unicorn.pid

inst=$(ec2metadata --instance-id)`
aws elb deregister-instances-from-load-balancer --load-balancer-name my_load_balancer_name --instances $inst

echo "Server deregistered from Load Balancer"

sleep 10s

file="/home/ubuntu/pids/unicorn.pid"
if [ -f $file ];
 then
  echo "File found:"
  ls /home/ubuntu/pids/ 
  rm ~/pids/unicorn.pid 
  echo "unicorn.pid removed"
  ls /home/ubuntu/pids/ #cross-checking the removal of the unicorn.pid
  echo "if you see \"unicorn.pid removed\" message just above this line, it means unicorn.pid removed successfully"
else
  echo "$file not found"
fi

RAILS_ENV=qa bundle exec unicorn -c config/unicorn.rb -D #this command is giving error "[stderr]master failed to start, check stderr log for details" `

非常感谢任何帮助。

stderr记录

我,[2017-02-22T14:44:12.773724#12531]信息 - :刷新宝石列表

E,[2017-02-22T14:44:21.233361#12531]错误 - :添加监听器失败addr = / home / ubuntu / unicorn.sock(正在使用中)

E,[2017-02-22T14:44:21.233422#12531]错误 - :在0.5秒内重试(剩下4次尝试)

E,[2017-02-22T14:44:21.733925#12531]错误 - :添加监听器失败addr = / home / ubuntu / unicorn.sock(正在使用中) E,[2017-02-22T14:44:21.734008#12531]错误 - :在0.5秒内重试(3次尝试)

E,[2017-02-22T14:44:22.234528#12531]错误 - :添加监听器失败addr = / home / ubuntu / unicorn.sock(正在使用中)

E,[2017-02-22T14:44:22.234626#12531]错误 - :在0.5秒内重试(剩下2次尝试)

E,[2017-02-22T14:44:22.735121#12531]错误 - :添加监听器失败addr = / home / ubuntu / unicorn.sock(正在使用中)

E,[2017-02-22T14:44:22.738710#12531]错误 - :在0.5秒内重试(1次尝试) E,[2017-02-22T14:44:23.239213#12531]错误 - :添加监听器失败addr = / home / ubuntu / unicorn.sock(正在使用中) E,[2017-02-22T14:44:23.239293#12531]错误 - :在0.5秒内重试(0次尝试)

E,[2017-02-22T14:44:23.739818#12531]错误 - :添加监听器失败addr = / home / ubuntu / unicorn.sock(正在使用中)

Errno :: EADDRINUSE:地址已在使用 - connect(2)for /home/ubuntu/unicorn.sock"

/home/ubuntu/ZenSol/curr/vendor/bundle/ruby/2.1.0/gems/unicorn-4.9.0/lib/unicorn/socket_helper.rb:158:in`initialize'

/home/ubuntu/ZenSol/curr/vendor/bundle/ruby/2.1.0/gems/unicorn-4.9.0/lib/unicorn/socket_helper.rb:158:in"new'

/home/ubuntu/ZenSol/curr/vendor/bundle/ruby/2.1.0/gems/unicorn-4.9.0/lib/unicorn/socket_helper.rb:158:in`bind_listen'

/home/ubuntu/ZenSol/curr/vendor/bundle/ruby/2.1.0/gems/unicorn-4.9.0/lib/unicorn/http_server.rb:242:in“listen'

/home/ubuntu/ZenSol/curr/vendor/bundle/ruby/2.1.0/gems/unicorn-4.9.0/lib/unicorn/http_server.rb:813:in在block_new_listeners中的块!'

/home/ubuntu/ZenSol/curr/vendor/bundle/ruby/2.1.0/gems/unicorn-4.9.0/lib/unicorn/http_server.rb:813:in`每个'

/home/ubuntu/ZenSol/curr/vendor/bundle/ruby/2.1.0/gems/unicorn-4.9.0/lib/unicorn/http_server.rb:813:in`bind_new_listeners!'

/home/ubuntu/ZenSol/curr/vendor/bundle/ruby/2.1.0/gems/unicorn-4.9.0/lib/unicorn/http_server.rb:138:in'start&& 39;

/home/ubuntu/ZenSol/curr/vendor/bundle/ruby/2.1.0/gems/unicorn-4.9.0/bin/unicorn:126:in`'

/home/ubuntu/ZenSol/curr/vendor/bundle/ruby/2.1.0/bin/unicorn:22:in'load'

/home/ubuntu/ZenSol/curr/vendor/bundle/ruby/2.1.0/bin/unicorn:22:in`' ubuntu @ ip-10-0-0-193:〜/ log $

0 个答案:

没有答案
相关问题