spring: Client-server version mismatch when multiple versions of spring installed for the current Ruby

I’ve noticed that when using multiple versions of Spring in the app’s current Ruby, I get that error. This is a common occurrence because we have many apps on the same Ruby version, but possibly using dfferent versions of Spring. Even doing bundle exec bin/rails c or bundle exec spring rails c results in the same behavior.

$ bin/rails c
...
...
There is a version mismatch between the spring client and the server.
You should restart the server and make sure to use the same version.

CLIENT: 1.0.0, SERVER: 1.1.2

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 47 (4 by maintainers)

Most upvoted comments

Try to stop server and other and then run:

spring stop

then start everything you need.

Maybe someone can try

bundle update spring

if

spring stop

does not work. Thanks.

bundle update spring 👍