Guest User

Untitled

a guest
Jul 27th, 2018
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. What is causing private method `gsub` called for nil:NilClass during Rails migration?
  2. root@beta:/vol/opt/dev/capistrano/foo-alpha/releases/20120330233010# RAILS_ENV=production rake db:migrate --trace
  3. rake aborted!
  4. private method `gsub' called for nil:NilClass
  5. /usr/local/rvm/gems/jruby-1.6.6@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:77:in `require'
  6. org/jruby/RubyArray.java:1614:in `each'
  7. /usr/local/rvm/gems/jruby-1.6.6@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `require'
  8. /usr/local/rvm/gems/jruby-1.6.6@global/gems/bundler-1.1.3/lib/bundler.rb:119:in `require'
  9. /vol/opt/dev/capistrano/foo-alpha/releases/20120330233010/config/application.rb:7:in `(root)'
  10. org/jruby/RubyKernel.java:1027:in `require'
  11. /usr/local/rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
  12. /vol/opt/dev/capistrano/foo-alpha/releases/20120330233010/config/application.rb:4:in `(root)'
  13. org/jruby/RubyKernel.java:1052:in `load'
  14. /vol/opt/dev/capistrano/foo-alpha/releases/20120330233010/Rakefile:25:in `load_rakefile'
  15. /usr/local/rvm/gems/jruby-1.6.6@foo/gems/rake-0.9.2.2/lib/rake/application.rb:501:in `raw_load_rakefile'
  16. /usr/local/rvm/gems/jruby-1.6.6@foo/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `load_rakefile'
  17. /usr/local/rvm/gems/jruby-1.6.6@foo/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
  18. /usr/local/rvm/gems/jruby-1.6.6@foo/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile'
  19. /usr/local/rvm/gems/jruby-1.6.6@foo/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `run'
  20. /usr/local/rvm/gems/jruby-1.6.6@foo/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
  21. /usr/local/rvm/gems/jruby-1.6.6@foo/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
  22. /usr/local/rvm/gems/jruby-1.6.6@foo/gems/rake-0.9.2.2/bin/rake:33:in `(root)'
  23. org/jruby/RubyKernel.java:1052:in `load'
  24. /usr/local/rvm/gems/jruby-1.6.6@foo/bin/rake:19:in `(root)'
  25.  
  26. #<LoadError: no such file to load -- activerecord-jdbcmysql-adapter>
  27.  
  28. # gem list |grep -i activerecord-jdbcmysql-adapter
  29. activerecord-jdbcmysql-adapter (1.2.2)
  30.  
  31. cd /vol/opt/dev/capistrano/foo-alpha/releases/20120330233010
  32.  
  33. RAILS_ENV=production bundle install
  34.  
  35. RAILS_ENV=production rails s
  36.  
  37. @definition.dependencies.each do |dep|
  38. # Skip the dependency if it is not in any of the requested groups
  39. next unless ((dep.groups & groups).any? && dep.current_platform?)
Add Comment
Please, Sign In to add comment