2014-02-21 33 views
0

我刚刚在ubuntu 64位服务器上推送我的应用程序(rails)并使用瘦和nginx。64位Ubuntu(亚马逊)上的瘦服务器问题

启动瘦服务器我收到问题后仅仅两分钟后: -

>> 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/[email protected]/gems/eventmachine-1.0.3/lib/em/pure_ruby.rb:578:in `write_nonblock': Broken pipe (Errno::EPIPE) 
    from /usr/local/rvm/gems/[email protected]/gems/eventmachine-1.0.3/lib/em/pure_ruby.rb:578:in `eventable_write' 
    from /usr/local/rvm/gems/[email protected]/gems/eventmachine-1.0.3/lib/em/pure_ruby.rb:368:in `block in crank_selectables' 
    from /usr/local/rvm/gems/[email protected]/gems/eventmachine-1.0.3/lib/em/pure_ruby.rb:368:in `each' 
    from /usr/local/rvm/gems/[email protected]/gems/eventmachine-1.0.3/lib/em/pure_ruby.rb:368:in `crank_selectables' 
    from /usr/local/rvm/gems/[email protected]/gems/eventmachine-1.0.3/lib/em/pure_ruby.rb:324:in `block in run' 
    from /usr/local/rvm/gems/[email protected]/gems/eventmachine-1.0.3/lib/em/pure_ruby.rb:318:in `loop' 
    from /usr/local/rvm/gems/[email protected]/gems/eventmachine-1.0.3/lib/em/pure_ruby.rb:318:in `run' 
    from /usr/local/rvm/gems/[email protected]/gems/eventmachine-1.0.3/lib/em/pure_ruby.rb:62:in `run_machine' 
    from /usr/local/rvm/gems/[email protected]/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run' 
    from /usr/local/rvm/gems/[email protected]/gems/thin-1.5.1/lib/thin/backends/base.rb:63:in `start' 
    from /usr/local/rvm/gems/[email protected]/gems/thin-1.5.1/lib/thin/server.rb:159:in `start' 
    from /usr/local/rvm/gems/[email protected]/gems/thin-1.5.1/lib/thin/controllers/controller.rb:86:in `start' 
    from /usr/local/rvm/gems/[email protected]/gems/thin-1.5.1/lib/thin/runner.rb:187:in `run_command' 
    from /usr/local/rvm/gems/[email protected]/gems/thin-1.5.1/lib/thin/runner.rb:152:in `run!' 
    from /usr/local/rvm/gems/[email protected]/gems/thin-1.5.1/bin/thin:6:in `<top (required)>' 
    from /usr/local/rvm/gems/[email protected]/bin/thin:23:in `load' 
    from /usr/local/rvm/gems/[email protected]/bin/thin:23:in `<main>' 
    from /usr/local/rvm/gems/[email protected]/bin/ruby_executable_hooks:15:in `eval' 
    from /usr/local/rvm/gems/[email protected]/bin/ruby_executable_hooks:15:in `<main>' 

可有人请帮助我。不要以为是因为交通或网络拥堵。还想问一下什么是破管意味着什么。

+0

您是否向您的服务器发送流量?它看起来像是异步发生的事情,导致你的应用程序崩溃。 – Rico

+0

@Rico ..我看着这个问题,并思考相同..但什么样的流量可以导致应用程序在2分钟内down了 – Catmandu

回答

1

您是否为日志记录和应用程序设置了正确的文件和文件夹权限?看起来像一个潜在的写锁定/失败。

+0

如何知道姚明.. – Catmandu

+0

@ StuartB ..我已经给了777权限到整个文件夹..我该怎么办...可以请你给我建议一些东西 –