Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-2700

CRITICAL: Mongo ruby driver 2.14.0 doesn't bundle install on Windows

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Mongo 2.14.0 doesn't `bundle install` on Windows. Please fix and release a 2.14.1 patch.

      I have confirmed that 2.13.2 and prior are fine. The change must have been introduced recently.

      `bundle install` error log below:

      Installing mongo 2.14.0
      — ERROR REPORT TEMPLATE -------------------------------------------------------

      1. Error Report
        1. Questions

      Please fill out answers to these questions, it'll help us figure out
      why things are going wrong.

      • *What did you do?*

      I ran the command `c:/ruby26/bin/bundle install`

      • *What did you expect to happen?*

      I expected Bundler to...

      • *What happened instead?*

      Instead, what happened was...

      • *Have you tried any solutions posted on similar issues in our issue tracker, stack overflow, or google?*

      I tried...

      ...

        1. Backtrace

      ```
      Errno::EACCES: Permission denied @ rb_file_s_symlink - (spec/support/../../.mod/drivers-evergreen-tools/.evergreen/ocsp, C:/ruby26/lib/ruby/gems/2.6.0/gems/mongo-2.14.0/spec/support/ocsp)
      C:/ruby26/lib/ruby/site_ruby/2.6.0/rubygems/package.rb:436:in `symlink'
      C:/ruby26/lib/ruby/site_ruby/2.6.0/rubygems/package.rb:436:in `block (2 levels) in extract_tar_gz'
      C:/ruby26/lib/ruby/site_ruby/2.6.0/rubygems/package/tar_reader.rb:65:in `each'
      C:/ruby26/lib/ruby/site_ruby/2.6.0/rubygems/package.rb:412:in `block in extract_tar_gz'
      C:/ruby26/lib/ruby/site_ruby/2.6.0/rubygems/package.rb:541:in `block in open_tar_gz'
      C:/ruby26/lib/ruby/site_ruby/2.6.0/rubygems/package.rb:538:in `wrap'
      C:/ruby26/lib/ruby/site_ruby/2.6.0/rubygems/package.rb:538:in `open_tar_gz'
      C:/ruby26/lib/ruby/site_ruby/2.6.0/rubygems/package.rb:411:in `extract_tar_gz'
      C:/ruby26/lib/ruby/site_ruby/2.6.0/rubygems/package.rb:391:in `block (2 levels) in extract_files'
      C:/ruby26/lib/ruby/site_ruby/2.6.0/rubygems/package/tar_reader.rb:65:in `each'
      C:/ruby26/lib/ruby/site_ruby/2.6.0/rubygems/package.rb:388:in `block in extract_files'
      C:/ruby26/lib/ruby/site_ruby/2.6.0/rubygems/package/file_source.rb:29:in `open'
      C:/ruby26/lib/ruby/site_ruby/2.6.0/rubygems/package/file_source.rb:29:in `with_read_io'
      C:/ruby26/lib/ruby/site_ruby/2.6.0/rubygems/package.rb:385:in `extract_files'
      C:/ruby26/lib/ruby/site_ruby/2.6.0/rubygems/installer.rb:830:in `extract_files'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/rubygems_gem_installer.rb:24:in `install'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/source/rubygems.rb:176:in `install'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/installer/gem_installer.rb:67:in `install'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/installer/gem_installer.rb:18:in `install_from_spec'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/installer/parallel_installer.rb:186:in `do_install'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/installer/parallel_installer.rb:171:in `install_serially'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/installer/parallel_installer.rb:97:in `call'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/installer/parallel_installer.rb:71:in `call'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/installer.rb:270:in `install_in_parallel'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/installer.rb:210:in `install'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/installer.rb:90:in `block in run'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/process_lock.rb:19:in `rescue in lock'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/process_lock.rb:15:in `lock'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/installer.rb:72:in `run'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/installer.rb:24:in `install'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/cli/install.rb:64:in `run'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/cli.rb:259:in `block in install'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/settings.rb:115:in `temporary'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/cli.rb:258:in `install'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/cli.rb:30:in `dispatch'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/cli.rb:24:in `start'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/exe/bundle:49:in `block in <top (required)>'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/lib/bundler/friendly_errors.rb:130:in `with_friendly_errors'
      C:/ruby26/lib/ruby/gems/2.6.0/gems/bundler-2.2.15/exe/bundle:37:in `<top (required)>'
      c:/ruby26/bin/bundle:23:in `load'
      c:/ruby26/bin/bundle:23:in `<main>'
      ```

        1. Environment

      ```
      Bundler 2.2.15
      Platforms ruby, x64-mingw32
      Ruby 2.6.3p62 (2019-04-16 revision 67580) [x64-mingw32]
      Full Path C:/ruby26/bin/ruby.exe
      Config Dir C:/ProgramData
      RubyGems 3.2.9
      Gem Home C:/ruby26/lib/ruby/gems/2.6.0
      Gem Path C:/ruby26/lib/ruby/gems/2.6.0;C:/Users/John/.gem/ruby/2.6.0
      User Home C:/Users/John
      User Path C:/Users/John/.gem/ruby/2.6.0
      Bin Dir C:/ruby26/bin
      OpenSSL
      Compiled OpenSSL 1.1.1b 26 Feb 2019
      Loaded OpenSSL 1.1.1b 26 Feb 2019
      Cert File C:/ruby26/ssl/cert.pem
      Cert Dir C:/ruby26/ssl/certs
      Tools
      Git 2.16.2.windows.1
      RVM not installed
      rbenv not installed
      chruby not installed
      ```

        1. Bundler Build Metadata

      ```
      Built At 2021-03-19
      Git SHA 3dbcc68293
      Released Version true
      ```

        1. Bundler settings

      ```
      gemfile
      Set via BUNDLE_GEMFILE: "C:/workspace/mongoid_orderable/Gemfile"
      ```

        1. Gemfile
          1. Gemfile

      ```ruby

      1. frozen_string_literal: true

      source 'https://rubygems.org'

      gemspec

      case version = ENV['MONGOID_VERSION'] || '7'
      when 'HEAD'
      gem 'mongoid', github: 'mongodb/mongoid'
      when /\A7/
      gem 'mongoid', '~> 7.0'
      else
      gem 'mongoid', version
      end
      ```

          1. Gemfile.lock

      ```
      <No C:/workspace/mongoid_orderable/Gemfile.lock found>
      ```

        1. Gemspecs
          1. mongoid_orderable.gemspec

      ```ruby

      1. frozen_string_literal: true

      $LOAD_PATH.push File.expand_path('lib', _dir_)
      require 'mongoid/orderable/version'

      Gem::Specification.new do |gem|
      gem.name = 'mongoid_orderable'
      gem.version = Mongoid::Orderable::VERSION
      gem.authors = ['pyromaniac']
      gem.email = ['kinwizard@gmail.com']
      gem.homepage = 'https://github.com/mongoid/mongoid_orderable'
      gem.summary = 'Mongoid orderable list implementation'
      gem.description = 'Enables Mongoid models to track their position in list'
      gem.license = 'MIT'

      gem.files = Dir.glob('lib/*/') + %w[CHANGELOG.md LICENSE.txt README.md Rakefile]
      gem.test_files = Dir.glob('spec/*/')
      gem.require_path = 'lib'

      gem.add_development_dependency 'rake'
      gem.add_development_dependency 'rspec', '>= 3.0.0'
      gem.add_development_dependency 'rspec-retry'
      gem.add_development_dependency 'rubocop', '>= 1.8.1'
      gem.add_runtime_dependency 'mongoid', '>= 7.0.0'
      end
      ```

      — TEMPLATE END ----------------------------------------------------------------

      Unfortunately, an unexpected error occurred, and Bundler cannot continue.

      First, try this link to see if there are any existing issue reports for this error:
      https://github.com/rubygems/rubygems/search?q=Permission+denied+%40+rb_file_s_symlink+-+%28spec%2Fsupport%2F..%2F..%2F.mod%2Fdrivers-evergreen-tools%2F.evergreen%2Focsp%2C+C+%2Fruby26%2Flib%2Fruby%2Fgems%2F2.6.0%2Fgems%2Fmongo-2.14.0%2Fspec%2Fsupport%2Focsp%29&type=Issues

      If there aren't any reports for this error yet, please create copy and paste the report template above into a new issue. Don't forget to anonymize any private data! The new issue form is located at:
      https://github.com/rubygems/rubygems/issues/new?labels=Bundler

      Process finished with exit code 1

            Assignee:
            Unassigned Unassigned
            Reporter:
            shields@tablecheck.com Johnny Shields
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: