Virtual-environments: brew update/brew upgrade failing with Error: Not a directory @ dir_s_rmdir error strikes back

Created on 11 Dec 2020  路  8Comments  路  Source: actions/virtual-environments

Description
On some scheduled jobs on macOS, since a few hours the brew update and brew upgrade commands are failing.

Area for Triage:

Question, Bug, or Feature?:
Bug

Virtual environments affected

  • [ ] Ubuntu 16.04
  • [ ] Ubuntu 18.04
  • [ ] Ubuntu 20.04
  • [x] macOS 10.15
  • [x] macOS 11.0
  • [ ] Windows Server 2016 R2
  • [ ] Windows Server 2019

Expected behavior
The commands:

  • brew update
  • brew upgrade

Should work fine.

Actual behavior

  • brew update
  • brew upgrade
    commands fail with error:
    ~
    2020-12-11T14:20:31.2785670Z ==> Pouring [email protected]
    2020-12-11T14:21:54.9827160Z Error: Not a directory @ dir_s_rmdir - /usr/local/Cellar/openssl
    2020-12-11T14:21:54.9844860Z ==> Caveats
    ~

See for example https://github.com/robotology/robotology-superbuild/runs/1534684566?check_suite_focus=true .

Repro steps
A description with steps to reproduce the issue. If your have a public example or repo to share,
please provide the link.

  1. Run brew update
  2. Run brew upgrade
Common Tools macOS bug

All 8 comments

This is probably related to the similar older bug (that was however solved) https://github.com/actions/virtual-environments/issues/1811 .

cc @Nicogene

Hi @traversaro!
Yes, this is related and fixed recently, however, the new image is not yet deployed. We're going to deploy the image next week.
As a workaround, you can add one more line before updating and upgrading.

brew uninstall [email protected]
brew update
brew upgrade

Thanks @miketimofeev ! If you agree, I think it would be nice to keep the issue open until the images are deployed, for better visibility for users that may have this problem, thanks!

Since ~24 hours the workaround provided in https://github.com/actions/virtual-environments/issues/2248#issuecomment-743235054 is still necessary in macOS 10.15 machine, while it is not necessary (and actually it breaks the build) in macOS 11.0 . Is this due to the time necessary for the deployment, or it is intended difference between the two images? Thanks a lot!

@traversaro , We are deploying new image with fix right now.
MacOS 11.0 has been already deployed (it takes little time).
MacOS 10.15 is still in process and should be deployed in 1 day

Thanks for the quick reply!

@traversaro the new image has been deployed, everything works without workarounds now.
I'm going to close the issue, but please feel free to contact us if you have any concerns, thank you!

@traversaro the new image has been deployed, everything works without workarounds now.
I'm going to close the issue, but please feel free to contact us if you have any concerns, thank you!

Thanks a lot for the great support!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ethomson picture ethomson  路  4Comments

mxschmitt picture mxschmitt  路  3Comments

trajano picture trajano  路  3Comments

orj picture orj  路  4Comments

adamsiembida picture adamsiembida  路  3Comments