我刚刚在ubuntu 64位服务器上推送了我的app(rails),并使用了thin和nginx。
启动瘦服务器两分钟后,我遇到了问题: -
>> Thin web server (v1.5.1 codename Straight Razor)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop
>> Exiting!
/usr/local/rvm/gems/ruby-1.9.3-p484@rails-3.2.8/gems/eventmachine-1.0.3/lib/em/pure_ruby.rb:578:in `write_nonblock': Broken pipe (Errno::EPIPE)
from /usr/local/rvm/gems/ruby-1.9.3-p484@rails-3.2.8/gems/eventmachine-1.0.3/lib/em/pure_ruby.rb:578:in `eventable_write'
from /usr/local/rvm/gems/ruby-1.9.3-p484@rails-3.2.8/gems/eventmachine-1.0.3/lib/em/pure_ruby.rb:368:in `block in crank_selectables'
from /usr/local/rvm/gems/ruby-1.9.3-p484@rails-3.2.8/gems/eventmachine-1.0.3/lib/em/pure_ruby.rb:368:in `each'
from /usr/local/rvm/gems/ruby-1.9.3-p484@rails-3.2.8/gems/eventmachine-1.0.3/lib/em/pure_ruby.rb:368:in `crank_selectables'
from /usr/local/rvm/gems/ruby-1.9.3-p484@rails-3.2.8/gems/eventmachine-1.0.3/lib/em/pure_ruby.rb:324:in `block in run'
from /usr/local/rvm/gems/ruby-1.9.3-p484@rails-3.2.8/gems/eventmachine-1.0.3/lib/em/pure_ruby.rb:318:in `loop'
from /usr/local/rvm/gems/ruby-1.9.3-p484@rails-3.2.8/gems/eventmachine-1.0.3/lib/em/pure_ruby.rb:318:in `run'
from /usr/local/rvm/gems/ruby-1.9.3-p484@rails-3.2.8/gems/eventmachine-1.0.3/lib/em/pure_ruby.rb:62:in `run_machine'
from /usr/local/rvm/gems/ruby-1.9.3-p484@rails-3.2.8/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
from /usr/local/rvm/gems/ruby-1.9.3-p484@rails-3.2.8/gems/thin-1.5.1/lib/thin/backends/base.rb:63:in `start'
from /usr/local/rvm/gems/ruby-1.9.3-p484@rails-3.2.8/gems/thin-1.5.1/lib/thin/server.rb:159:in `start'
from /usr/local/rvm/gems/ruby-1.9.3-p484@rails-3.2.8/gems/thin-1.5.1/lib/thin/controllers/controller.rb:86:in `start'
from /usr/local/rvm/gems/ruby-1.9.3-p484@rails-3.2.8/gems/thin-1.5.1/lib/thin/runner.rb:187:in `run_command'
from /usr/local/rvm/gems/ruby-1.9.3-p484@rails-3.2.8/gems/thin-1.5.1/lib/thin/runner.rb:152:in `run!'
from /usr/local/rvm/gems/ruby-1.9.3-p484@rails-3.2.8/gems/thin-1.5.1/bin/thin:6:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p484@rails-3.2.8/bin/thin:23:in `load'
from /usr/local/rvm/gems/ruby-1.9.3-p484@rails-3.2.8/bin/thin:23:in `<main>'
from /usr/local/rvm/gems/ruby-1.9.3-p484@rails-3.2.8/bin/ruby_executable_hooks:15:in `eval'
from /usr/local/rvm/gems/ruby-1.9.3-p484@rails-3.2.8/bin/ruby_executable_hooks:15:in `<main>'
有人可以帮助我。不要以为是因为流量或网络拥塞。还想问一下破管是什么意思。
答案 0 :(得分:1)
您是否为日志记录和应用设置了正确的文件和文件夹权限?看起来像潜在的写锁定/失败。