plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

Gitpod not working correctly due to bundler version mismatch

Open cesswairimu opened this issue 4 years ago • 8 comments

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

cesswairimu avatar Jun 29 '21 16:06 cesswairimu

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!

jywarren avatar Jul 06 '21 16:07 jywarren

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!

jywarren avatar Jul 09 '21 21:07 jywarren

thanks Jeff, attempting this here https://github.com/publiclab/plots2/pull/9897

cesswairimu avatar Jul 10 '21 04:07 cesswairimu

also linking to #10134

jywarren avatar Sep 05 '21 19:09 jywarren

Same issue as in https://github.com/publiclab/spectral-workbench/pull/717 !!

jywarren avatar Sep 05 '21 19:09 jywarren

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.

jywarren avatar Sep 07 '21 15:09 jywarren

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

jywarren avatar Sep 14 '21 17:09 jywarren

Currently failing on startup withf 2 errors:

  1. Sprockets::FileNotFound in Home#home : running yarn install fixes this and on restarting server, the error displayed next is error 2
  2. Webpacker::Manifest::MissingEntryError in Home#home: running rails webpacker:install solves this: on server restart the browser loads perfect

cesswairimu avatar Jul 18 '22 14:07 cesswairimu