ErrorLoadingRVMRC - 为 Rails 应用程序运行乘客时,rvmrc 文件不受信任
我已经在这件事上花了好几个小时了,突然到了凌晨 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我的第一个建议是将 .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.
它可能与此错误有关: https://github.com/wayneeseguin/rvm/issues/560< /a>
我(今天)所做的是获取最新版本的 RVN 来修复它:
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: