简体   繁体   English

耙错误中止

[英]Rake aborting with error

Trying to setup the exception_logger plugin on a production server. 尝试在生产服务器上设置exception_logger插件。 Everything worked fine on the dev machine. 在开发机器上一切正常。 Trying to rake db:migrate on the prod server and i get this error: 试图耙生产服务器上的db:migrate,我得到此错误:

rake aborted!
no such file to load -- pagination

What am i missing? 我想念什么?

Classic Pagination is not supported in 2.1 - or at least it is a dead library 2.1不支持经典分页-至少它是一个失效的库

http://workingwithrails.com/railsplugin/5289-classic-pagination http://workingwithrails.com/railsplugin/5289-classic-pagination

Have a look at will_paginate - 看看will_paginate-

http://github.com/mislav/will_paginate/wikis http://github.com/mislav/will_paginate/wikis

that's what all the cool kids are using :-) 那就是所有很酷的孩子都在使用的:-)

Obviously the error is related to the pagination plugin. 显然,该错误与分页插件有关。 That means the error may not be related to exception_logger at all... 这意味着该错误可能根本与exception_logger不相关...

Try rake db:migrate --trace and add the additional output to your question! 试试rake db:migrate --trace并将其他输出添加到您的问题中!

** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
no such file to load -- pagination
/home/12348/data/rubygems/lib/rubygems/custom_require.rb:27:in `gem_original_require'
/home/12348/data/rubygems/lib/rubygems/custom_require.rb:27:in `require'
/home/12348/data/rubygems/gems/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
/home/12348/data/rubygems/gems/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'
/home/12348/data/rubygems/gems/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
/nfs/c01/h06/mnt/12348/containers/rails/mpg_prod/vendor/plugins/classic_pagination/init.rb:24:in `evaluate_init_rb'
/home/12348/data/rubygems/gems/gems/rails-2.1.0/lib/rails/plugin.rb:95:in `evaluate_init_rb'
/home/12348/data/rubygems/gems/gems/activesupport-2.1.0/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
/home/12348/data/rubygems/gems/gems/rails-2.1.0/lib/rails/plugin.rb:91:in `evaluate_init_rb'
/home/12348/data/rubygems/gems/gems/rails-2.1.0/lib/rails/plugin.rb:44:in `load'
/home/12348/data/rubygems/gems/gems/rails-2.1.0/lib/rails/plugin/loader.rb:33:in `load_plugins'
/home/12348/data/rubygems/gems/gems/rails-2.1.0/lib/rails/plugin/loader.rb:32:in `each'
/home/12348/data/rubygems/gems/gems/rails-2.1.0/lib/rails/plugin/loader.rb:32:in `load_plugins'
/home/12348/data/rubygems/gems/gems/rails-2.1.0/lib/initializer.rb:283:in `load_plugins'
/home/12348/data/rubygems/gems/gems/rails-2.1.0/lib/initializer.rb:138:in `process'
/home/12348/data/rubygems/gems/gems/rails-2.1.0/lib/initializer.rb:93:in `send'
/home/12348/data/rubygems/gems/gems/rails-2.1.0/lib/initializer.rb:93:in `run'
/nfs/c01/h06/mnt/12348/containers/rails/mpg_prod/config/environment.rb:13
/home/12348/data/rubygems/lib/rubygems/custom_require.rb:27:in `gem_original_require'
/home/12348/data/rubygems/lib/rubygems/custom_require.rb:27:in `require'
/home/12348/data/rubygems/gems/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
/home/12348/data/rubygems/gems/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'
/home/12348/data/rubygems/gems/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
/home/12348/data/rubygems/gems/gems/rails-2.1.0/lib/tasks/misc.rake:3
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:546:in `call'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:541:in `each'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:508:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/thread.rb:135:in `synchronize'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chain'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:1183:in `send'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:507:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/thread.rb:135:in `synchronize'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chain'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:494:in `invoke'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:1909:in `each'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:1881:in `run'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:1878:in `run'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/bin/rake:31
/home/12348/data/rubygems/gems/bin/rake:19:in `load'
/home/12348/data/rubygems/gems/bin/rake:19
  1. Your rake is being aborted while loading environment.rb . 加载environment.rb时,您的耙子正在中止。
  2. Check for any missing gems that are declared in it ton your production machine. 检查生产机器中是否声明了丢失的宝石
  3. " sudo gem install" those that are missing sudo gem install”丢失的那些
  4. Check environment.rb loads up properly by issuing "script/console" on your temimal 通过在您的临时终端上发布“脚本/控制台”来检查environment.rb是否正确加载

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM