[SERVER-35737] install_compass fails on MacOS Created: 22/Jun/18  Updated: 29/Oct/23  Resolved: 13/Aug/18

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: 4.0.0-rc7
Fix Version/s: 3.6.9, 4.0.7, 4.1.2

Type: Bug Priority: Major - P3
Reporter: Daniel Pasette (Inactive) Assignee: Mathew Robinson (Inactive)
Resolution: Fixed Votes: 0
Labels: build-planned
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Duplicate
is duplicated by SERVER-36090 install_compass fails on MacOS due to... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0, v3.6
Sprint: Build 2018-07-30
Participants:
Story Points: 2

 Description   

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?



 Comments   
Comment by Githook User [ 11/Feb/19 ]

Author:

{'name': 'Mathew Robinson', 'email': 'chasinglogic@gmail.com', 'username': 'chasinglogic'}

Message: SERVER-35737 Switch to curl to be Python version independent

(cherry picked from commit e14f5e52d90219b72d286b73ea2d653a9c9373de)
Branch: v4.0
https://github.com/mongodb/mongo/commit/171fc0659c13e4db04f060d4ea1136f80ec305ff

Comment by Githook User [ 09/Oct/18 ]

Author:

{'name': 'Mathew Robinson', 'email': 'chasinglogic@gmail.com', 'username': 'chasinglogic'}

Message: SERVER-35737 Switch to curl to be Python version independent

(cherry picked from commit e14f5e52d90219b72d286b73ea2d653a9c9373de)
Branch: v3.6
https://github.com/mongodb/mongo/commit/90a0384655107c9c4d9c2fcaf958af9942bee008

Comment by Githook User [ 08/Aug/18 ]

Author:

{'username': 'chasinglogic', 'name': 'Mathew Robinson', 'email': 'chasinglogic@gmail.com'}

Message: SERVER-35737 Switch to curl to be Python version independent
Branch: master
https://github.com/mongodb/mongo/commit/e14f5e52d90219b72d286b73ea2d653a9c9373de

Comment by Daniel Pasette (Inactive) [ 25/Jun/18 ]

confirmed.  thanks Durran

Comment by Durran Jordan [ 25/Jun/18 ]

This is now fixed. Needed to bust the cache in front of the server on Deis. Links are now working for me.

Comment by Durran Jordan [ 25/Jun/18 ]

Yeah I just saw - on it now.

Comment by Daniel Pasette (Inactive) [ 25/Jun/18 ]

still broken for me.

Comment by Durran Jordan [ 25/Jun/18 ]

This is fixed on our end with the latest 1.14.0-beta.8 releases. Our process stopped git tagging the releases which caused this issue.

Generated at Thu Feb 08 04:40:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.