【问题标题】:Bundle stderr: ArgumentError: "...tmp/pids/unicorn.pid" not writable. How to solve it?捆绑标准错误:ArgumentError:“...tmp/pids/unicorn.pid”不可写。如何解决?
【发布时间】:2017-07-26 08:10:02
【问题描述】:

我正在使用 Capistrano 部署代码,在此过程中,我收到了错误

SSHKit::Runner::ExecuteError: Exception while executing as deployer@IP: Exception while executing as deployer@IP: bundle exit status: 1
bundle stdout: bundler: failed to load command: unicorn (/home/deployer/apps/project/shared/bundle/ruby/2.4.0/bin/unicorn)
bundle stderr: ArgumentError: directory for pid=/home/deployer/apps/project/current/tmp/pids/unicorn.pid not writable

我该如何解决这个问题?我需要在deploy.rb 文件中设置什么吗?

我尝试手动创建 pids 目录,设置 777 (mkdir -m 777 pids) 的权限,但没有任何帮助。

如何使该目录可写?

【问题讨论】:

    标签: ruby-on-rails ubuntu nginx capistrano unicorn


    【解决方案1】:

    这可能与this 重复。

    你也确定路径是对的吗?我认为 pids 目录应该在 _shared dir_ 下而不是当前(这是到 realease/something 的符号链接)

    如果路径是硬编码的,请尝试将其更改为 /home/deployer/apps/project/shared/tmp/pids/unicorn.pid

    【讨论】:

      猜你喜欢
      • 2016-10-28
      • 1970-01-01
      • 2020-05-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-23
      • 2019-11-09
      相关资源
      最近更新 更多