I have tried all available solutions but didn't get the result. I even uninstalled the rack and then run the bundle install but getting same issue.
tried command:
-gem uninstall rack
-gem pristine --all
but everytime it shows that You have already activated rack 2.0.3, but your Gemfile requires rack 2.0.6 in log errors.