Forum: Rails deployment private method `chomp' called for nil:NilClass

A343a8636bedaa4ad852eab1c16cfd68?d=identicon&s=25 Mohammed Niyas (niyas)
on 2011-06-06 11:39
Hi Friends,

           I'm using rails 2.0.2 in my application, While create or
migrate database I am getting the following error

hp@ubuntu:~/giftgenius$ rake db:migrate --trace
rake aborted!
private method `chomp' called for nil:NilClass
/home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/1.8/logger.rb:174
/home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rails-2.0.2/lib/initializer.rb:1
/home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
/home/hp/giftgenius/config/boot.rb:54:in `load_initializer'
/home/hp/giftgenius/config/boot.rb:39:in `run'
/home/hp/giftgenius/config/boot.rb:11:in `boot!'
/home/hp/giftgenius/config/boot.rb:109
/home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
/home/hp/giftgenius/Rakefile:4
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/rake_module.rb:25:in
`load'
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/rake_module.rb:25:in
`load_rakefile'
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:495:in
`raw_loahp@ubuntu:~/giftgenius$ rake db:migrate --trace
rake aborted!
private method `chomp' called for nil:NilClass
/home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/1.8/logger.rb:174
/home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rails-2.0.2/lib/initializer.rb:1
/home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
/home/hp/giftgenius/config/boot.rb:54:in `load_initializer'
/home/hp/giftgenius/config/boot.rb:39:in `run'
/home/hp/giftgenius/config/boot.rb:11:in `boot!'
/home/hp/giftgenius/config/boot.rb:109
/home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/home/hp/.rvm/rubies/ruby-1.8.6-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
/home/hp/giftgenius/Rakefile:4
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/rake_module.rb:25:in
`load'
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/rake_module.rb:25:in
`load_rakefile'
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:495:in
`raw_load_rakefile'
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:78:in
`load_rakefile'
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:129:in
`standard_exception_handling'
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:77:in
`load_rakefile'
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:61:in
`run'
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:129:in
`standard_exception_handling'
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:59:in
`run'
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/bin/rake:32
/home/hp/.rvm/gems/ruby-1.8.6-head/bin/rake:19:in `load'
/home/hp/.rvm/gems/ruby-1.8.6-head/bin/rake:19
d_rakefile'
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:78:in
`load_rakefile'
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:129:in
`standard_exception_handling'
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:77:in
`load_rakefile'
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:61:in
`run'
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:129:in
`standard_exception_handling'
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/lib/rake/application.rb:59:in
`run'
/home/hp/.rvm/gems/ruby-1.8.6-head/gems/rake-0.9.2/bin/rake:32
/home/hp/.rvm/gems/ruby-1.8.6-head/bin/rake:19:in `load'
/home/hp/.rvm/gems/ruby-1.8.6-head/bin/rake:19

While running script/server also I'm getting the same error..

Anyone please help me out of this issue..

Thanks in Advance.
This topic is locked and can not be replied to.