Gitpod not working correctly due to bundler version mismatch
There are instances where gitpod is not working well. Sushmita and Jeff has experienced this.
Not starting automatically, Jeff had to do bundle install possibly intermittent
Yes, i wonder if this is an ordering issue or timing? We might be able to insert a wait or do something else to tweak the ordering so that it reliably succeeds in completing bundle install so it can continue to set up the dev environment and open a browser preview window. Otherwise it's pretty hard for newcomers to figure out what's going wrong!
I'm seeing that ruby 2.6.6 wasnt installed but was required by the gemfile, so i had to run rvm use ruby-2.6.6 or something, and then:
gitpod /workspace/plots2 $ bundle install
Traceback (most recent call last):
4: from /home/gitpod/.rvm/rubies/ruby-2.6.6/bin/ruby_executable_hooks:22:in `<main>'
3: from /home/gitpod/.rvm/rubies/ruby-2.6.6/bin/ruby_executable_hooks:22:in `eval'
2: from /home/gitpod/.rvm/rubies/ruby-2.6.6/bin/bundle:23:in `<main>'
1: from /home/gitpod/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
/home/gitpod/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': Could not find 'bundler' (2.2.21) required by your /workspace/plots2/Gemfile.lock. (Gem::GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:2.2.21`
after gem install bundler:2.2.21 the gems installed.
This hiccup may be stopping GitPod from being a smooth experience!
thanks Jeff, attempting this here https://github.com/publiclab/plots2/pull/9897
also linking to #10134
Same issue as in https://github.com/publiclab/spectral-workbench/pull/717 !!
So I think possibly the solution is to update bundler in all our containers to match GitPod's version, so that we can just use the same version for all.
Ah i'm seeing we are on 2.2.21 in plots2:
https://github.com/publiclab/plots2/blob/6e499b5dee0a2bbfac0ec83e61746db6a8ca93a4/Gemfile.lock#L749
vs 1.17.3 in SWB:
https://github.com/publiclab/spectral-workbench/blob/fb1d30d653cb41d4d68e7b31176f38d7fe59414a/Gemfile.lock#L277-L278
Currently failing on startup withf 2 errors:
-
Sprockets::FileNotFound in Home#home: runningyarn installfixes this and on restarting server, the error displayed next is error 2 -
Webpacker::Manifest::MissingEntryError in Home#home: runningrails webpacker:installsolves this: on server restart the browser loads perfect