master failed to start, check stderr log for details

10,001

It looks you have RVM and Ruby installed system-wide. Generally it may cause lots of issues. Even RVM documentation warns about that. Try to install RVM and Ruby as user, which owns app directory. In that case you will get consistent system.

By the way, do you have this directory /home/deploy/apps/shared on your environment? Is it writable for your App? According Unicorn config following things depend on it:

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"

If you do have all this stuff, content of /home/deploy/apps/shared/log/unicorn.stderr.log also would be helpful.

Share:
10,001
Joutaro
Author by

Joutaro

Updated on August 21, 2022

Comments

  • Joutaro
    Joutaro over 1 year

    I'm trying to start unicorn and I keep getting this error constantly.

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

    Command that I'm using to start unicorn:

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

    Commands that I've already tried:

    /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

    Complete error beeing shown: https://gist.github.com/anonymous/828d9677f928fa671762