rails console doesn't start
I may be answering a bit late for this, but for the sake of the others who are looking for the answer... it's here
Basically, enter this command
spring stop
The issue , as far as I understand, is with the spring
gem, specifically, it checks the server for versions, which doesn't tally up.
For my case, the problem started when when I add some new gems into the gemfile.
So once you stop spring and type in any other rails command, spring restart, and every thing should work again, at least until the same problem occurs, or the dev patched the issue.
I've not seen this before, but it looks like maybe spring is messed up in your setup for some reason? Try going into your Gemfile
and look for the line that calls gem 'spring'
and comment that out. Then run bundle install
and try again.
This isn't a proper solution, but if it gets your rails console working again tonight then hopefully it will help you out until a proper solution is discovered.
In my case, the same trouble is occured on my production environment.
If your environmet is also production, in the first place, you must not install spring on your production environment.
refer this https://github.com/rails/spring/issues/318 https://github.com/rails/spring/pull/337/files
It can be resolved by this command on your production
RAILS_ENV=production bundle install --clean --without development test