ErrorLoadingRVMRC - 为 Rails 应用程序运行乘客时,rvmrc 文件不受信任

发布于 2024-12-20 23:01:01 字数 1007 浏览 1 评论 0原文

我已经在这件事上花了好几个小时了,突然到了凌晨 4 点,我就不再继续了。

这是一个 Rails 3 应用程序。

我有 cap 部署工作,我有一个 gemset,站点已部署,bundle 已将我需要的 gem 安装到 gemset 中。我已经安装了乘客。我正在多用户 RVM 上运行。

我已经完成了passenger start,但它给了我这个关于不被信任的错误:

The rvmrc located in '/var/www/html/xx/releases/20111212035754' 
could not be loaded, likely due to trust mechanisms. Please run 'rvm rvmrc 
{trust,untrust} "/var/www/html/xx/releases/20111212035754"' to 
continue, or set rvm_trust_rvmrcs_flag to 1. (RVM::ErrorLoadingRVMRC)

我尝试:

  • 在.rvmrc中将rvm_trust_rvmrcs_flag设置为1
  • 运行指定的命令
  • 将rvm升级到head
  • 将rvm升级到最新
  • 添加了setup_load_paths。 rb 文件
  • 使用 rvm use 1.9.3@captor --create --rvmrc 生成 .rvmrc

我很困惑现在结束。我已将我的配置文件/输出粘贴到此处,如果有人发现拼写错误,我会很高兴:)

它应该没那么难吧?我缺少什么?

我认为它与 this 有关,但问题现已关闭。

I've been hacking at this thing for hours now and suddenly its 4am and I am no further.

It is a rails 3 application.

I have cap deploy working, I have a gemset, the site is deployed, bundle has installed the gems I need into the gemset. I have installed passenger. I am running on a multiuser RVM.

I have done passenger start but it is giving me this error about not being trusted:

The rvmrc located in '/var/www/html/xx/releases/20111212035754' 
could not be loaded, likely due to trust mechanisms. Please run 'rvm rvmrc 
{trust,untrust} "/var/www/html/xx/releases/20111212035754"' to 
continue, or set rvm_trust_rvmrcs_flag to 1. (RVM::ErrorLoadingRVMRC)

I tried:

  • Setting rvm_trust_rvmrcs_flag to 1 in .rvmrc
  • Running the specified command
  • Upgrading rvm to head
  • Upgrading rvm to latest
  • Added the setup_load_paths.rb file
  • Generated .rvmrc with rvm use 1.9.3@captor --create --rvmrc

I am at wits end now. I've pasted my config files/output here and would be elated if someone found a typo :)

It shouldn't be this hard should it? What am I missing?

I thought it was related to this but the issue is closed now.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

当梦初醒 2024-12-27 23:01:01

我的第一个建议是将 .rvmrc 文件向上移动几个文件夹到 '/var/www/html/xx。从那里它将对所有子目录有效,并将继续使用而无需跨部署进行更改。 此页面有一个可能适用于您的情况的不同解决方案,但我认为如果 .rvmrc 文件向上移动,则甚至没有必要。

接下来,当你说你尝试“运行指定的命令”时,你到底运行了什么?我相信您需要运行的是,rvm rvmrc trust /path/to/where 您的 .rvmrc 所在的位置。

我希望这有帮助。祝你好运。

My first recommendation would be to move the .rvmrc file up a couple folders to '/var/www/html/xx. From there it will be effective for all sub directories and will continue to be used without change across deploys. This page has a different solution that might work in your case, but I don't think even that is necessary if the .rvmrc file is moved up.

Next, when you say you tried "Running the specified command", what exactly did you run? I believe what you need to run is, rvm rvmrc trust /path/to/where your .rvmrc is at.

I hope that helps. Good luck.

念三年u 2024-12-27 23:01:01

它可能与此错误有关: https://github.com/wayneeseguin/rvm/issues/560< /a>

我(今天)所做的是获取最新版本的 RVN 来修复它:

 rvm get latest
 rvm reload

It's probably related to this bug: https://github.com/wayneeseguin/rvm/issues/560

What I've done (today) is get latest version of RVN to get it fixed:

 rvm get latest
 rvm reload
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文