unicorn 无法重新启动,因为“parse_rackup_file”:rackup 文件(主)不可读
unicorn can't restart because `parse_rackup_file': rackup file (master) not readable
在我为我的独角兽实例执行kill -9 pid_of_unicorn
命令后,我无法重新启动它。我在 rails 应用程序根路径中使用 unicorn master -c config/unicorn.rb
,在 rails 的配置目录中使用 unicorn.rb 文件,这是我的独角兽配置文件。
/home/wujing/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/unicorn-4.8.3/lib/unicorn/configurator.rb:659:in `parse_rackup_file': rackup file (master) not readable (ArgumentError)
from /home/wujing/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/unicorn-4.8.3/lib/unicorn/configurator.rb:77:in `reload'
from /home/wujing/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/unicorn-4.8.3/lib/unicorn/configurator.rb:68:in `initialize'
from /home/wujing/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:100:in `new'
from /home/wujing/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:100:in `initialize'
from /home/wujing/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/unicorn-4.8.3/bin/unicorn:126:in `new'
from /home/wujing/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/unicorn-4.8.3/bin/unicorn:126:in `<top (required)>'
from /home/wujing/.rbenv/versions/2.1.5/bin/unicorn:23:in `load'
from /home/wujing/.rbenv/versions/2.1.5/bin/unicorn:23:in `<main>'
有人遇到过类似的问题吗?
unicorn master -c config/unicorn.rb
不确定 master
在您的命令中的含义。这是您可以尝试的方法:
bundle exec unicorn -D -E <environment> -c config/unicorn.rb
在我为我的独角兽实例执行kill -9 pid_of_unicorn
命令后,我无法重新启动它。我在 rails 应用程序根路径中使用 unicorn master -c config/unicorn.rb
,在 rails 的配置目录中使用 unicorn.rb 文件,这是我的独角兽配置文件。
/home/wujing/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/unicorn-4.8.3/lib/unicorn/configurator.rb:659:in `parse_rackup_file': rackup file (master) not readable (ArgumentError)
from /home/wujing/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/unicorn-4.8.3/lib/unicorn/configurator.rb:77:in `reload'
from /home/wujing/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/unicorn-4.8.3/lib/unicorn/configurator.rb:68:in `initialize'
from /home/wujing/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:100:in `new'
from /home/wujing/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:100:in `initialize'
from /home/wujing/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/unicorn-4.8.3/bin/unicorn:126:in `new'
from /home/wujing/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/unicorn-4.8.3/bin/unicorn:126:in `<top (required)>'
from /home/wujing/.rbenv/versions/2.1.5/bin/unicorn:23:in `load'
from /home/wujing/.rbenv/versions/2.1.5/bin/unicorn:23:in `<main>'
有人遇到过类似的问题吗?
unicorn master -c config/unicorn.rb
不确定 master
在您的命令中的含义。这是您可以尝试的方法:
bundle exec unicorn -D -E <environment> -c config/unicorn.rb