master无法启动,请检查stderr日志以获取详细信息

Jou*_*aro 2 ruby git ruby-on-rails unicorn

我正在尝试启动独角兽,并且我不断地收到这个错误.

我的unicorn.rb(https://gist.github.com/anonymous/d1f3d9bcdd1a6c4d8435)

我用来启动独角兽的命令:

/home/app/adsgold/# unicorn_rails master -c config/unicorn.rb -D -E production

我已经尝试过的命令:

/home/app/adsgold/# unicorn_rails -c config/unicorn.rb -D -E production

/home/app/adsgold/# unicorn_rails master -c config/unicorn.rb -D -E production -p 3000

/home/app/adsgold/# bundle exec master unicorn -c unicorn.cnf -E production -D

完整的错误显示:https://gist.github.com/anonymous/828d9677f928fa671762

sas*_*rov 5

看起来你在系统范围内安装了RVM和Ruby.通常它可能会导致很多问题.甚至RVM文档都警告过这一点.尝试以拥有app目录的用户身份安装RVM和Ruby .在这种情况下,您将获得一致的系统.

顺便问一下,/home/deploy/apps/shared你的环境中有这个目录吗?你的应用程序可写吗?根据Unicorn 配置,以下事情取决于它:

pid "/home/deploy/apps/shared/pids/unicorn.pid"
stderr_path "/home/deploy/apps/shared/log/unicorn.stderr.log"
stdout_path "/home/deploy/apps/shared/log/unicorn.stdout.log"
Run Code Online (Sandbox Code Playgroud)

如果你确实拥有所有这些东西,那么内容/home/deploy/apps/shared/log/unicorn.stderr.log也会有所帮助.