Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

brew update && brew upgrade fails on macOS with mongodb-community related-error #3733

Closed
2 of 7 tasks
traversaro opened this issue Jul 15, 2021 · 7 comments
Closed
2 of 7 tasks

Comments

@traversaro
Copy link

Description

brew update followed by brew upgrade on macOS images, with the following error:

2021-07-15T10:12:27.6870860Z �[32m==>�[0m �[1mUpgrading �[32mmongodb/brew/mongodb-community�[39m
2021-07-15T10:12:27.6871920Z   4.4.5 -> 5.0.0 
2021-07-15T10:12:27.6872540Z �[0m
2021-07-15T10:12:27.9862780Z �[34m==>�[0m �[1mDownloading https://fastdl.mongodb.org/osx/mongodb-macos-x86_64-5.0.0.tgz�[0m
2021-07-15T10:12:34.5219070Z �[31mError:�[0m The `brew link` step did not complete successfully
2021-07-15T10:12:34.5219790Z The formula built, but is not symlinked into /usr/local
2021-07-15T10:12:34.5227910Z Could not symlink bin/install_compass
2021-07-15T10:12:34.5228520Z Target /usr/local/bin/install_compass
2021-07-15T10:12:34.5229730Z is a symlink belonging to mongodb-community. You can unlink it:
2021-07-15T10:12:34.5230780Z   brew unlink mongodb-community
2021-07-15T10:12:34.5231120Z 
2021-07-15T10:12:34.5231570Z To force the link and overwrite all conflicting files:
2021-07-15T10:12:34.5232530Z   brew link --overwrite mongodb-community
2021-07-15T10:12:34.5232910Z 
2021-07-15T10:12:34.5233300Z To list all files that would be deleted:
2021-07-15T10:12:34.5234240Z   brew link --overwrite --dry-run mongodb-community
2021-07-15T10:12:34.5234650Z 
2021-07-15T10:12:34.5235040Z Possible conflicting files are:
2021-07-15T10:12:34.5238090Z /usr/local/bin/install_compass -> /usr/local/opt/mongodb-community/bin/install_compass
2021-07-15T10:12:34.5246830Z /usr/local/bin/mongo -> /usr/local/opt/mongodb-community/bin/mongo
2021-07-15T10:12:34.5257030Z /usr/local/bin/mongod -> /usr/local/opt/mongodb-community/bin/mongod
2021-07-15T10:12:34.5265000Z /usr/local/bin/mongos -> /usr/local/opt/mongodb-community/bin/mongos
2021-07-15T10:12:37.3039560Z �[34m==>�[0m �[1mCaveats�[0m
2021-07-15T10:12:37.3040710Z To have launchd start mongodb/brew/mongodb-community now and restart at login:
2021-07-15T10:12:37.3041880Z   brew services start mongodb/brew/mongodb-community
2021-07-15T10:12:37.3042920Z Or, if you don't want/need a background service you can just run:
2021-07-15T10:12:37.3043850Z   mongod --config /usr/local/etc/mongod.conf
2021-07-15T10:12:37.3044650Z �[34m==>�[0m �[1mSummary�[0m
2021-07-15T10:12:37.3060200Z 🍺  /usr/local/Cellar/mongodb-community/5.0.0: 11 files, 179.9MB, built in 6 seconds
2021-07-15T10:12:37.3107180Z Removing: /usr/local/Cellar/mongodb-community/4.4.5... (11 files, 157.3MB)
2021-07-15T10:12:37.3368930Z Removing: /Users/runner/Library/Caches/Homebrew/mongodb-community--4.4.5.tgz... (57.1MB)

Virtual environments affected

  • Ubuntu 16.04
  • Ubuntu 18.04
  • Ubuntu 20.04
  • macOS 10.15
  • macOS 11
  • Windows Server 2016
  • Windows Server 2019

Image version and build link

Failed build: https://github.com/traversaro/github-actions-brew-update-upgrade-check/actions/runs/1033479477 .

Is it regression?

Yes.

Expected behavior

Link of successful build: https://github.com/traversaro/github-actions-brew-update-upgrade-check/actions/runs/970042378 .

brew update and brew upgrade both return success.

Actual behavior

See

2021-07-15T10:12:27.6870860Z �[32m==>�[0m �[1mUpgrading �[32mmongodb/brew/mongodb-community�[39m
2021-07-15T10:12:27.6871920Z   4.4.5 -> 5.0.0 
2021-07-15T10:12:27.6872540Z �[0m
2021-07-15T10:12:27.9862780Z �[34m==>�[0m �[1mDownloading https://fastdl.mongodb.org/osx/mongodb-macos-x86_64-5.0.0.tgz�[0m
2021-07-15T10:12:34.5219070Z �[31mError:�[0m The `brew link` step did not complete successfully
2021-07-15T10:12:34.5219790Z The formula built, but is not symlinked into /usr/local
2021-07-15T10:12:34.5227910Z Could not symlink bin/install_compass
2021-07-15T10:12:34.5228520Z Target /usr/local/bin/install_compass
2021-07-15T10:12:34.5229730Z is a symlink belonging to mongodb-community. You can unlink it:
2021-07-15T10:12:34.5230780Z   brew unlink mongodb-community
2021-07-15T10:12:34.5231120Z 
2021-07-15T10:12:34.5231570Z To force the link and overwrite all conflicting files:
2021-07-15T10:12:34.5232530Z   brew link --overwrite mongodb-community
2021-07-15T10:12:34.5232910Z 
2021-07-15T10:12:34.5233300Z To list all files that would be deleted:
2021-07-15T10:12:34.5234240Z   brew link --overwrite --dry-run mongodb-community
2021-07-15T10:12:34.5234650Z 
2021-07-15T10:12:34.5235040Z Possible conflicting files are:
2021-07-15T10:12:34.5238090Z /usr/local/bin/install_compass -> /usr/local/opt/mongodb-community/bin/install_compass
2021-07-15T10:12:34.5246830Z /usr/local/bin/mongo -> /usr/local/opt/mongodb-community/bin/mongo
2021-07-15T10:12:34.5257030Z /usr/local/bin/mongod -> /usr/local/opt/mongodb-community/bin/mongod
2021-07-15T10:12:34.5265000Z /usr/local/bin/mongos -> /usr/local/opt/mongodb-community/bin/mongos
2021-07-15T10:12:37.3039560Z �[34m==>�[0m �[1mCaveats�[0m
2021-07-15T10:12:37.3040710Z To have launchd start mongodb/brew/mongodb-community now and restart at login:
2021-07-15T10:12:37.3041880Z   brew services start mongodb/brew/mongodb-community
2021-07-15T10:12:37.3042920Z Or, if you don't want/need a background service you can just run:
2021-07-15T10:12:37.3043850Z   mongod --config /usr/local/etc/mongod.conf
2021-07-15T10:12:37.3044650Z �[34m==>�[0m �[1mSummary�[0m
2021-07-15T10:12:37.3060200Z 🍺  /usr/local/Cellar/mongodb-community/5.0.0: 11 files, 179.9MB, built in 6 seconds
2021-07-15T10:12:37.3107180Z Removing: /usr/local/Cellar/mongodb-community/4.4.5... (11 files, 157.3MB)
2021-07-15T10:12:37.3368930Z Removing: /Users/runner/Library/Caches/Homebrew/mongodb-community--4.4.5.tgz... (57.1MB)

Repro steps

See https://github.com/traversaro/github-actions-brew-update-upgrade-check/blob/main/.github/workflows/brew-update.yml .

@traversaro traversaro changed the title brew update && brew upgrade fails on macOS brew update && brew upgrade fails on macOS with mongodb-community related-error Jul 15, 2021
@al-cheb al-cheb added Area: Common Tools investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: macOS and removed needs triage labels Jul 15, 2021
@al-cheb
Copy link
Contributor

al-cheb commented Jul 15, 2021

Hi, @traversaro!
We will take a look at this.

@traversaro
Copy link
Author

Thanks @al-cheb ! In the meanwhile, I am testing the brew remove mongodb-community workaround in robotology/robotology-superbuild#827, I will update this issue with the outcome.

@traversaro
Copy link
Author

Thanks @al-cheb ! In the meanwhile, I am testing the brew remove mongodb-community workaround in robotology/robotology-superbuild#827, I will update this issue with the outcome.

brew remove mongodb-community before running brew update && brew upgrade indeed proved to be a successful workaround: robotology/robotology-superbuild#827 .

Nicogene added a commit to robotology/icub-tests that referenced this issue Jul 19, 2021
Nicogene added a commit to robotology/blocktest that referenced this issue Jul 19, 2021
Nicogene added a commit to robotology/robometry that referenced this issue Jul 19, 2021
@miketimofeev
Copy link
Contributor

@traversaro the new image version doesn't have the issue. It will be deployed tomorrow.

@miketimofeev miketimofeev added the awaiting-deployment Code complete; awaiting deployment and/or deployment in progress label Jul 19, 2021
@miketimofeev miketimofeev self-assigned this Jul 19, 2021
@miketimofeev miketimofeev removed the investigate Collect additional information, like space on disk, other tool incompatibilities etc. label Jul 19, 2021
@traversaro
Copy link
Author

@traversaro the new image version doesn't have the issue. It will be deployed tomorrow.

Thanks a lot @miketimofeev !

@miketimofeev
Copy link
Contributor

@traversaro just checked both deployed macos-10.15 and 11 — everything looks good.
I'm going to close the issue. Please feel free to contact us if you have any concerns.
Thank you!

@miketimofeev miketimofeev removed the awaiting-deployment Code complete; awaiting deployment and/or deployment in progress label Jul 20, 2021
@traversaro
Copy link
Author

Indeed, it is working fine now, see https://github.com/traversaro/github-actions-brew-update-upgrade-check/actions/runs/1048745388 . Thanks a lot!

traversaro added a commit to robotology/robotology-superbuild that referenced this issue Jul 20, 2021
traversaro added a commit to robotology/robotology-superbuild that referenced this issue Jul 20, 2021
Nicogene pushed a commit to Nicogene/robotology-superbuild that referenced this issue Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants