乘客的奇怪错误
缺少应用程序所需的源文件。 您可能没有正确上传申请文件。请检查您的所有申请文件是否已上传。 可能未安装所需的库。请安装此应用程序所需的所有库。 有关错误的更多信息可能已写入应用程序的日志文件中。请检查一下以便分析问题。 错误信息: 没有要加载的文件——bundler/setup 异常类: 加载错误 应用程序根: /srv/www/thecampusblitz.com/TheCampusBlitz/current 回溯:
文件行位置
gem_original_require 中的 0 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 1 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 位于require' 2 /srv/www/thecampusblitz.com/TheCampusBlitz/releases/20110326070845/config/boot.rb 6
3 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in gem_original_require' 4 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 位于
require' 5 /srv/www/thecampusblitz.com/TheCampusBlitz/releases/20110326070845/config/application.rb 1
6 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in gem_original_require' 7 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 位于
require' 8 /srv/www/thecampusblitz.com/TheCampusBlitz/releases/20110326070845/config/environment.rb 2
9 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in gem_original_require' 10 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 位于
require' 11 配置.ru 3
12 /usr/lib/ruby/1.8/rack/builder.rb 46 in instance_eval' 13 /usr/lib/ruby/1.8/rack/builder.rb 46 in 初始化' 14 config.ru 1 在“新”中 15 config.ru
一周前正在工作,当时我对我的服务器进行了攻击,有什么想法吗? 所有安装的 gems 捆绑器都运行良好。 rake 运行良好,能够运行迁移、控制台和数据库连接
A source file that the application requires, is missing.
It is possible that you didn't upload your application files correctly. Please check whether all your application files are uploaded.
A required library may not installed. Please install all libraries that this application requires.
Further information about the error may have been written to the application's log file. Please check it in order to analyse the problem.
Error message:
no such file to load -- bundler/setup
Exception class:
LoadError
Application root:
/srv/www/thecampusblitz.com/TheCampusBlitz/current
Backtrace:
File Line Location
0 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in gem_original_require'
require'
1 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in
2 /srv/www/thecampusblitz.com/TheCampusBlitz/releases/20110326070845/config/boot.rb 6
3 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in gem_original_require'
require'
4 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in
5 /srv/www/thecampusblitz.com/TheCampusBlitz/releases/20110326070845/config/application.rb 1
6 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in gem_original_require'
require'
7 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in
8 /srv/www/thecampusblitz.com/TheCampusBlitz/releases/20110326070845/config/environment.rb 2
9 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in gem_original_require'
require'
10 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in
11 config.ru 3
12 /usr/lib/ruby/1.8/rack/builder.rb 46 in instance_eval'
initialize'
13 /usr/lib/ruby/1.8/rack/builder.rb 46 in
14 config.ru 1 in `new'
15 config.ru
was working a week ago when i nuked my server any ideas?
bundler runs fine all gems installed.
rake runs fine,able to run migrations,console and database connectivity
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这是错误的关键:
no such file to load --bundler/setup
这表明服务器上未安装 Bundler。您说捆绑器运行良好,不确定您的意思是否是从服务器上的控制台运行 - 但它不是为您的乘客运行。因此,也许您的乘客设置指向不同的 Ruby 安装,并且捆绑器没有为此设置。
我会从那里开始。
This is the key to your error:
no such file to load -- bundler/setup
That suggests that Bundler is not installed on the server.You say that bundler runs fine, not sure whether you mean that it runs from the console on the server - but it's not running for your passenger. So perhaps your passenger settings are pointing to a different Ruby installation, and bundler is not setup for that.
I'd start there.
我注意到同样的错误。事实证明这是使用 rvm 的副产品。如果您使用 rvm,忘记设置 gemset 将导致此错误。嗯。
I noticed the same error. Turns out it's a byproduct of using rvm. If you're using rvm, forgetting to set the gemset will result in this error. hth.
我还注意到主要问题之一是 Linux 上的文件权限。
我的用户帐户没有足够的权限,乘客需要应用程序用户帐户具有读/写权限。
因此,除了这些人提到的其他问题之外,权限是主要问题。
这些存在于我之前的安装中。
I also noticed that one of the major problem was the file permissions on linux.
My user account didn't had enough privileges and passenger needs the app user account to have read/write privileges.
So permissions was the major problem apart from the other problems that these guys mentioned.
Those were present in my earlier installation.