【问题标题】:master failed to start, check stderr log for detailsmaster 启动失败,查看 stderr 日志了解详情
【发布时间】:2014-12-05 18:54:30
【问题描述】:

我正在尝试启动独角兽,但我不断收到此错误。

我的独角兽.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

【问题讨论】:

    标签: ruby-on-rails ruby git unicorn


    【解决方案1】:

    看起来您已经在系统范围内安装了 RVM 和 Ruby。一般来说,它可能会导致很多问题。甚至 RVM 文档warns about that。尝试以拥有app 目录的用户身份安装RVM 和Ruby。在这种情况下,您将获得一致的系统。

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

    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"
    

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

    【讨论】:

    • 我检查了旧服务器和新服务器之间的权限,两者完全相同。这是“unicorn.stderr.log”的最后 200 行 gist.github.com/anonymous/1b9bbb8622958ab80717
    • 有什么想法吗?我只是不明白为什么它不能正常工作。
    【解决方案2】:

    是否有必要的权限? (我注意到读取错误来自全局安装的 gem,所以我想知道所有内容都在哪里。)

    【讨论】:

    • 我从一台专用服务器迁移到这台。这是旧服务器的完美形象。旧的仍然具有与此相同的权限,并且响应良好。如果可能是这种情况,我应该在哪个位置寻找正确的权限?
    猜你喜欢
    • 2017-10-09
    • 2013-06-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-09-25
    • 1970-01-01
    • 2022-06-15
    • 1970-01-01
    相关资源
    最近更新 更多