【问题标题】:Permission of .bundle/config for RedmineRedmine 的 .bundle/config 权限
【发布时间】:2017-06-09 18:21:21
【问题描述】:

已搜索但似乎找不到这个确切的问题。我正在使用 Apache 2.4.18 和 Passenger 5.1.1 在我的 Ubuntu 16.04.1 LTS 服务器上安装 Redmine 3.2.1。我不断收到此错误:

There was an error accessing `/usr/share/redmine/.bundle/config`.
The underlying system error is Errno::EISDIR: Is a directory @ io_fread - /usr/share/redmine/.bundle/config (Bundler::GenericSystemCallError)
  /var/lib/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/shared_helpers.rb:122:in `rescue in filesystem_access'
  /var/lib/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/shared_helpers.rb:108:in `filesystem_access'
  /var/lib/gems/2.3.0/gems/bundler-1.14.2/lib/bundler/settings.rb:311:in `load_config'

我手动创建了 /usr/share/redmine/.bundle/config 目录,并使用 chmod 775 使其属于 www-data:www-data。

但是,/usr/share/redmine 本身属于 root:root 和 chmod 755。

这是一个乘客问题而不是宝石/捆绑器问题吗?

Apache VHost 配置为启用 PassengerResolveSymlinksInDocumentRoot。 PassengerDefaultUser 是 www-data。

编辑:几乎忘了补充一点,当我运行bundle install 时,没有任何输出,甚至没有任何错误消息。它只是立即返回提示,就像什么都没发生一样。

【问题讨论】:

  • 请添加您的解决方案作为答案,而不是编辑您的问题。您可以在 24 小时后将自己的答案标记为已接受 (iirc)。
  • @HolgerJust 好的,我已经完成了,明天会将我的答案标记为已接受。谢谢:)

标签: ruby-on-rails apache rubygems passenger redmine


【解决方案1】:

.bundle/config 不是目录。我刚刚用rm -rf .bundle 删除了.bundle,然后用mkdir .bundle 以root 身份再次创建它,现在安装正常了。

仍然不明白为什么 .bundle 目录不是由 bundler 自动创建的,但是哦,好吧。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多