# When You Can't Run Rails Console Restart Spring

DevFeed: [When You Can't Run Rails Console Restart Spring](<https://devfeed.tech/articles/when-you-can-t-run-rails-console-restart-spring-28262.md>)

Original publisher: [Read original article](<http://fuzzyblog.io/blog/rails/2020/02/02/when-you-can-t-run-rails-console-restart-spring.html>)

Author: Fuzzygroup

Published: 2020-02-02T00:00:00Z

Content type: tutorial

Language: en

Sources: [Scott Johnson](<https://devfeed.tech/sources/scott-johnson.md>)

Topics: [Rails](<https://devfeed.tech/topics/rails.md>), [Git](<https://devfeed.tech/topics/git.md>), [Ruby](<https://devfeed.tech/topics/ruby.md>)

Tags: [console](<https://devfeed.tech/tags/console.md>), [git](<https://devfeed.tech/tags/git.md>), [issue](<https://devfeed.tech/tags/issue.md>), [rails](<https://devfeed.tech/tags/rails.md>), [spring](<https://devfeed.tech/tags/spring.md>)

## AI overview

A Rails console failed to load database configuration after the project directory changed and the repository was cloned again. The article identifies Spring as the cause and recommends stopping and restarting it with bin/spring stop and bin/spring start.

## Source excerpt

So I just hit this little gem of a pissant thing (yep - it is already that type of day): RAILS_ENV=development rails c /Users/sjohnson/.rvm/gems/ruby-2.7.0/gems/railties-6.0.2.1/lib/rails/application/configuration.rb:241:in `database_configuration': Cannot load database configuration: Could not load database configuration. No such file - ["config/database.yml"] (RuntimeError) The issue was that I changed my underlying project directory and then had to re clone at the git level. The culprit, naturally, was Spring so it took a: bin/spring stop bin/spring start And this time, I actually put the answer into Stack Overflow; I wonder if it will get accepted.