【发布时间】:2014-07-27 09:27:53
【问题描述】:
我已将我的 ruby on rails 项目置于生产模式。我在生产模式下运行瘦服务器。现在瘦服务器似乎突然停止并在尝试启动时出现以下错误:-
/home/webuser/.rvm/gems/ruby-1.9.3-p545@woa/gems/thin-1.6.2/lib/thin/daemonizing.rb:158:in `delete': Read-only file system - tmp/pids/thin.3000.pid (Errno::EROFS)
from /home/webuser/.rvm/gems/ruby-1.9.3-p545@woa/gems/thin-1.6.2/lib/thin/daemonizing.rb:158:in `remove_pid_file'
from /home/webuser/.rvm/gems/ruby-1.9.3-p545@woa/gems/thin-1.6.2/lib/thin/daemonizing.rb:175:in `remove_stale_pid_file'
from /home/webuser/.rvm/gems/ruby-1.9.3-p545@woa/gems/thin-1.6.2/lib/thin/daemonizing.rb:43:in `daemonize'
from /home/webuser/.rvm/gems/ruby-1.9.3-p545@woa/gems/thin-1.6.2/lib/thin/controllers/controller.rb:62:in `start'
from /home/webuser/.rvm/gems/ruby-1.9.3-p545@woa/gems/thin-1.6.2/lib/thin/runner.rb:199:in `run_command'
from /home/webuser/.rvm/gems/ruby-1.9.3-p545@woa/gems/thin-1.6.2/lib/thin/runner.rb:155:in `run!'
from /home/webuser/.rvm/gems/ruby-1.9.3-p545@woa/gems/thin-1.6.2/bin/thin:6:in `<top (required)>'
from /home/webuser/.rvm/gems/ruby-1.9.3-p545@woa/bin/thin:23:in `load'
from /home/webuser/.rvm/gems/ruby-1.9.3-p545@woa/bin/thin:23:in `<main>'
from /home/webuser/.rvm/gems/ruby-1.9.3-p545@woa/bin/ruby_executable_hooks:15:in `eval'
from /home/webuser/.rvm/gems/ruby-1.9.3-p545@woa/bin/ruby_executable_hooks:15:in `<main>'
我尝试使用 $ lsof -wni tcp:3000.. 删除 pid,但没有得到任何输出。
还通过了 filezilla 并尝试从 temp 中删除 pid,但出现以下错误。General failure (server should provide error description)。
现在我的网站关闭了一个小时,请帮助我解决这个问题
【问题讨论】:
标签: ruby-on-rails ruby ubuntu production-environment thin