When upgrading to the latest version of rails, I'm experiencing the following error with passenger refusing to start.
The application encountered the following error: You have already activated stringio 3.0.0, but your Gemfile requires stringio 3.0.8. Since stringio is a default gem, you can either remove your dependency on it or try updating to a newer version of bundler that supports stringio as a default gem. (Gem::LoadError)
Looking up the version of gems installed, only stringio (default: 3.0.0)
is defined.
and in my gemlock file we now have
psych (5.1.1.1) stringio
and
stringio (3.0.8)
One suggestion to this problem that my stack support team have suggested is to place gem 'stringio', '3.0.0' in the gemfile and force it to use this version.
This doesn't feel right to me and is somthing that I've never had to do before
Questions:
- Can anyone provide advice on if the above solution is the correct thing to do?
- Can anyone help point me in the right direction as to another fix to solve this issue and where I should be looking?
bundler -v
)? Did you try to update bundler (gem update bundler
) as suggested in the error message? – Mechellemechlinbundle exec
like thisbundle exec rails start
? – Mechellemechlinbundle install
– Perfusionirb
as dependency torailties
in order to get "the latest version". This causes a cascade of dependencies to be required:rdoc
,psych
,stringio
which in turn cause various installation issues (psych
require libyaml,stringio
conflicts with the default version)... I'm still fighting this but it's starting to get annoying. – Selfconceit