Eric Roscher
2008-Dec-07 00:43 UTC
NoMethodError: undefined method `fformat'' - rake aborted!
Hello, I have installed postgresql 8.3 in linux Mint 6 r1 (ubuntu 8.10) and the ruby from ubuntu repositories, then "gem install rails -y" I''ve installed "gem -install postgres-pr -y" and configured the database.yml as follows: database.yml ######################################### common: &common adapter: postgresql timeout: 5000 host: localhost username: eric password: ************ enconding: utf8 development: database: panthro_devel <<: *common test: database: panthro_test <<: *common production: database: panthro <<: *common ######################################### Those databases are created in the server, and the auth in my pg_hba.conf for local connections is setted on "trust" value. I''ve issued some scaffolding for 2 entities, and tried to migrate them with "rake db:migrate --trace" and i''ve got the following error trace: error trace: ######################################### (in /home/eric/Proyectos/panthro) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:migrate rake aborted! NoMethodError: undefined method `fformat'' for #<PGresult:0xb7afce74>: SHOW client_min_messages /home/eric/Proyectos/panthro/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:147:in `log'' /home/eric/Proyectos/panthro/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:444:in `query'' /home/eric/Proyectos/panthro/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:605:in `client_min_messages'' /home/eric/Proyectos/panthro/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:245:in `supports_standard_conforming_strings?'' /home/eric/Proyectos/panthro/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:836:in `connect'' /home/eric/Proyectos/panthro/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:185:in `initialize'' /home/eric/Proyectos/panthro/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `new'' /home/eric/Proyectos/panthro/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `postgresql_connection'' /home/eric/Proyectos/panthro/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:292:in `send'' /home/eric/Proyectos/panthro/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:292:in `connection='' /home/eric/Proyectos/panthro/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:260:in `retrieve_connection'' /home/eric/Proyectos/panthro/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in `connection'' /home/eric/Proyectos/panthro/vendor/rails/activerecord/lib/active_record/migration.rb:386:in `initialize'' /home/eric/Proyectos/panthro/vendor/rails/activerecord/lib/active_record/migration.rb:357:in `new'' /home/eric/Proyectos/panthro/vendor/rails/activerecord/lib/active_record/migration.rb:357:in `up'' /home/eric/Proyectos/panthro/vendor/rails/activerecord/lib/active_record/migration.rb:340:in `migrate'' /home/eric/Proyectos/panthro/vendor/rails/railties/lib/tasks/databases.rake:99 /usr/lib/ruby/1.8/rake.rb:546:in `call'' /usr/lib/ruby/1.8/rake.rb:546:in `execute'' /usr/lib/ruby/1.8/rake.rb:541:in `each'' /usr/lib/ruby/1.8/rake.rb:541:in `execute'' /usr/lib/ruby/1.8/rake.rb:508:in `invoke_with_call_chain'' /usr/lib/ruby/1.8/rake.rb:501:in `synchronize'' /usr/lib/ruby/1.8/rake.rb:501:in `invoke_with_call_chain'' /usr/lib/ruby/1.8/rake.rb:494:in `invoke'' /usr/lib/ruby/1.8/rake.rb:1931:in `invoke_task'' /usr/lib/ruby/1.8/rake.rb:1909:in `top_level'' /usr/lib/ruby/1.8/rake.rb:1909:in `each'' /usr/lib/ruby/1.8/rake.rb:1909:in `top_level'' /usr/lib/ruby/1.8/rake.rb:1948:in `standard_exception_handling'' /usr/lib/ruby/1.8/rake.rb:1903:in `top_level'' /usr/lib/ruby/1.8/rake.rb:1881:in `run'' /usr/lib/ruby/1.8/rake.rb:1948:in `standard_exception_handling'' /usr/lib/ruby/1.8/rake.rb:1878:in `run'' /usr/bin/rake:28 ##################################### I''ve looked into "abstract_adapter.rb" and "postgresql_adapter.rb" in those lines just for curiosity to see the problem with a better aproach, but I''ve got nothing since I''m not just mastering rails... It would be great if some of you could helpme with this issue. I beg you sorry about my english! XD Thank you in advance! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Eric Roscher
2008-Dec-07 00:55 UTC
Re: NoMethodError: undefined method `fformat'' - rake aborted!
Sorry, I''ve forgotten to say that I''ve tried to issue manually those queries that postgresql_adapter.rb does, and jere are the results, just in case that could help: postgresql_adapter.rb (line 251): query(''SHOW standard_conforming_strings'')[0][0] => ''off'' postgresql_adapter.rb (line 605): query(''SHOW client_min_messages'')[0][0] => ''notice'' -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---