Bundler Error - Cannot Find rake-13.0.1 even though it is installed Bundler Error - Cannot Find rake-13.0.1 even though it is installed docker docker

Bundler Error - Cannot Find rake-13.0.1 even though it is installed


Change

command 'cd /home/sotldirectory && bin/rails r import/cron_import.rb'

to

command 'cd /home/sotldirectory && bundle exec rails r import/cron_import.rb'

Also, which rake version is listed in your Gemfile.lock?


I solved a similar issue invoking ./bin/bundle exec before rails, ruby or rake, I think bundler is lost in different ruby versions gems


Changed the dockerfile from FROM ruby:2.6 to FROM ruby:2.6.0. Using ruby:2.6 appears to be pulling 2.6.5. I deleted the gemfile.lock and and a bundle install to reset the gemfile.lock. Currently it is showing one version of bundler 1.17.2 and everything is working normally again. For anyone else that sees this I believe their is issues with bundler 2 and rubygems.

Similar issue seen herehttps://github.com/rubygems/bundler/issues/6882