Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-35737

install_compass fails on MacOS

    • Fully Compatible
    • ALL
    • v4.0, v3.6
    • Build 2018-07-30
    • 2

      Using MacOS 10.13.3 and Python 2.7.3.
      When trying to run install_compass after downloading the 4.0.0-rc7 tarball:

      $ ./4.0.0-rc7/bin/install_compass
      Downloading Compass... 729%
      Installing the package...
      Traceback (most recent call last):
       File "./4.0.0-rc7/bin/install_compass", line 173, in <module>
       download_and_install_compass()
       File "./4.0.0-rc7/bin/install_compass", line 161, in download_and_install_compass
       install_mac(pkg)
       File "./4.0.0-rc7/bin/install_compass", line 69, in install_mac
       '-mountpoint', tmp, dmg], stdout=fnull, stderr=fnull)
       File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 186, in check_call
       raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['hdiutil', 'attach', '-nobrowse', '-noautoopen', '-mountpoint', '/var/folders/x4/swc0_n7n6j10frpsyvprj57m0000gp/T/tmpppWP5m', '/var/folders/x4/swc0_n7n6j10frpsyvprj57m0000gp/T/tmp9hJmu0']' returned non-zero exit status 1
        

       

      I checked the end point it's trying to hit (defined on line 156 of install_compass):
      https://compass.mongodb.com/api/v2/download/latest/compass-community/stable/osx

      It's displaying this message:

      TypeError: Invalid Version: untagged-c4d5921acf05ae6d4201
          at new SemVer (/compass/node_modules/nuts-serve/node_modules/semver/semver.js:293:11)
          at compare (/compass/node_modules/nuts-serve/node_modules/semver/semver.js:569:10)
          at Function.gt (/compass/node_modules/nuts-serve/node_modules/semver/semver.js:598:10)
          at compareVersions (/compass/node_modules/nuts-serve/lib/versions.js:56:16)
          at Array.sort (native)
          at /compass/node_modules/nuts-serve/node_modules/lodash/index.js:12092:23
          at Function.tap (/compass/node_modules/nuts-serve/node_modules/lodash/index.js:5921:19)
          at baseWrapperValue (/compass/node_modules/nuts-serve/node_modules/lodash/index.js:2845:30)
          at LodashWrapper.wrapperValue (/compass/node_modules/nuts-serve/node_modules/lodash/index.js:6112:14)
          at /compass/node_modules/nuts-serve/lib/versions.js:78:14

      Can we handle end point errors more gracefully?

            Assignee:
            mathew.robinson@mongodb.com Mathew Robinson (Inactive)
            Reporter:
            dan@mongodb.com Daniel Pasette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: