ArgumentError: is not a recognized provider rake rails posgresql - ruby-on-rails

I'm trying to clone and setup a rails repo.
when I run bundle exec rake db:migrate I get the following error with no user name:
rake aborted!
ArgumentError: is not a recognized providerronment.rb:5:in `<top (required)>'

It should be a problem with the provider. If I were you, I would try to set up the provider again.
provider: ENV['FOG_PROVIDER']

Related

Postgresql & RoR issue

I'm having issues installing the SOLIDUS gem for my rails app. I followed the instructions from GitHub but when i run the command bundle exec rake db:migrate i get the error:
mannay:testsite mannay$ bundle exec rake db:migrate
rake aborted!
PG::ConnectionBad: fe_sendauth: no password supplied
/usr/local/var/rbenv/versions/2.5.0/bin/bundle:23:in `load'
/usr/local/var/rbenv/versions/2.5.0/bin/bundle:23:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
I've tried adding username: mannay to my database.yml and even password: but it doesn't work. I thought maybe i've added a password that i don't remember, so i opened postgressapp, and tested
ALTER USER mannay with password 'new_password';
but it doesn't change anything.
Any ideas?

rake:db seed issue with Catarse

I'm trying to clone the Catarse repository: Git catarse
and I get all the way to the end but once I try to run rake db:seed I get the following error message:
rake aborted!
Errno::ENOENT: No such file or directory # dir_initialize - /Users/'USERNAME'/Desktop/my_websites/crowdfund_test/catarse/tmp/cache/
/Users/'USERNAME'/Desktop/my_websites/crowdfund_test/catarse/db/seeds.rb:116:in `<top (required)>'
Tasks: TOP => db:seed
Do you know why??
I was having the same problem. Then I realized I did not have the directory
/yourPath/catarse/tmp/cache/
Once I created it, seeding worked just fine!

PG::ConnectionBad Error when trying to run rake db:migrate after creating model, using postgresql

Trying to get my rails up and running but am having a problem. When creating my new rails app on the command line I ran the usual
rails new PhotoApp -d postgresql
Generated my core scaffold. Then generated a model with attributes in the terminal and that was fine. After creating my model I first ran rake db:create and that returned a long log of characters with at the top telling me FATAL: role "PhotoApp" does not exist so then I tried rake db:migrate and that didn't work either returning me
rake aborted!
PG::ConnectionBad: FATAL: role "PhotoApp" does not exist
/Users/##$%^$#/Code/Projects/PhotoApp/config/environment.rb:5:in `<top (required)>'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
WTF is going on here?
Thanks for any help.
The error is telling you that Postgres isn't finding your app. What does your database.yml file look like?
I would first run the rake task again, using the --trace as suggested:
rake db:create --trace
That will give you a more verbose tracing, so you can try to isolate the problem.
From experience I can tell you though that 'Roles' in Postgres can be a nightmare. How did you install Postgres on your machine? HomeBrew? The Postgres App?
Please post the full trace, as well as your database.yml file. This will help better assess the problem!

ruby on rails rake db:migrate aborted

I am new on ruby on rails, I try to look for the answer to this type of problem. i have been looking for a long time and i haven't been able to find a solution.
I am working on windows vista home, ruby 2.0.0, rails 4.0.2.
I have try different ways to solve the problem and it seems that I do not understand what the output is telling me:
$ rake db:migrate
rake aborted!
LoadError: cannot load such file -- sqlite3/database
c:/Users/me/desktop/family_N/config/application.rb:7:in `<top (required)>'
c:/Users/me/desktop/family_N/Rakefile:4:in `<top (required)>'
Thank you for your fast reply.
I install devise and try rake db:create, and i got the same output.
Forgive my ignorance but, this is what I am looking at
db/migrate: 201405282050240_devise_create_user.rb.
db/schema.rb: ActiveRecord::schema.define(version: 20140617211300) do |t| ...
do this dates have to match?
Did you create your database? From the error posted, it would appear that you had not yet done so.
rake db:create
You do need to create the DB before you can migrate data to it.
try bundle exec rake db:create

Why my rake db:migrate throws error message?

I am developing Rails v2.3 application.
When I run "rake db:migrate" I got the following error message:
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
rake aborted!
Access denied for user 'root'#'localhost' (using password: NO)
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
What is the reason?
It looks like your MySQL credentials are not set correctly in config/database.yml.

Resources