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

Could not symlink bin/2to3 macoslatest #9508

Closed
2 of 13 tasks
leonaAtkins opened this issue Mar 13, 2024 · 5 comments
Closed
2 of 13 tasks

Could not symlink bin/2to3 macoslatest #9508

leonaAtkins opened this issue Mar 13, 2024 · 5 comments

Comments

@leonaAtkins
Copy link

leonaAtkins commented Mar 13, 2024

Description

When trying to run terraform into on macos we're now getting the following error, for info this worked fine last week (March 08/03/2024)
This is using runs-on: macos-latest
- uses: Homebrew/actions/setup-homebrew@master
runs: brew install tfenv grep findutils -- fails

error

Error: Process completed with exit code 1.

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 11
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

https://github.com/alphagov/govwifi-terraform/actions/runs/8263390839/job/22604698757

Is it regression?

https://github.com/alphagov/govwifi-terraform/actions/runs/8207689743/job/22449523941

Expected behavior

expected action to pass.

Actual behavior

Fails with

The installation does not include `sbtn`.
Error: Process completed with exit code 1.

Edit on further investigation, there was another error

Error: The `brew link` step did not complete
The formula built, but is not symlinked into /usr/local
Could not symlink bin/2to3

Which I think is the actual cause of my problems and seems to be a recurring issue

Repro steps

This is using runs-on: macos-latest
- uses: Homebrew/actions/setup-homebrew@master
runs: brew install tfenv grep findutils -- fails
error

The installation does not include `sbtn`.
Error: Process completed with exit code 1.
@MaksimZhukov
Copy link
Contributor

Hello @leonaAtkins!
Both attached builds have the same image version (20240218.1). This means that nothing has changed from the image side. Also, your successful build has the same error message.

@leonaAtkins
Copy link
Author

leonaAtkins commented Mar 14, 2024

@MaksimZhukov You are right, I hadn't noticed that, it was the last error reported when the build failed, so I incorrectly assumed this was the cause of the failure. But you can see that one build passed, the other failed, on the 'install required packages' step, so something is up with that step, difficult to pin down what it is then.

@leonaAtkins
Copy link
Author

I do see another error for python

==> Pouring python@3.12--3.12.2_1.monterey.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/2to3

which doesn't appear in the 'successful' build.
So could this be a broken Python 2to3 library?

@leonaAtkins
Copy link
Author

Might be similar to this bug (thought we don't use xz)
python/cpython#116026
I'm not sure how to stop it updating dependencies, I tried to stop it performing updates, but that broke it further.

@leonaAtkins leonaAtkins changed the title The installation does not include sbtn macoslatest Could not symlink bin/2to3 macoslatest Mar 14, 2024
@leonaAtkins
Copy link
Author

Switched to using Ubuntu Runner as needed to get deployment out in timely manor.

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

2 participants