actions / runner-images

GitHub Actions runner images
MIT License
10.16k stars 3.06k forks source link

MacOS 14: operation not permitted, scandir #10869

Open JP250552 opened 1 week ago

JP250552 commented 1 week ago

Description

We're receiving build failures on the latest image that were previously working

image

Platforms affected

Runner images affected

Image version and build link

20241022.361

Build Link (private): https://github.com/LodoSoftware/core-mobile/actions/runs/11558810034/job/32172126210

Is it regression?

Yes, 20241014.301

Build Link (private): https://github.com/LodoSoftware/core-mobile/actions/runs/11520178922/job/32070967435

Expected behavior

Builds should pass, should not receive "operation not permitted" error

Actual behavior

Receiving these 2 errors:

Error: EPERM: operation not permitted, scandir 'hermes-engine'
error: Sandbox: mkdir(17884) deny(1) file-write-create /Users/runner/Library/Developer/Xcode/DerivedData/Mobile-atvoxbwxkqxckqdorphlbugfhxgw/Build/Intermediates.noindex/ArchiveIntermediates/Mobile/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/React-rncore.build/DerivedSources/generated (in target 'React-rncore' from project 'Pods')

Repro steps

Running a React Native iOS build using Fastlane

spriggyjeff commented 1 week ago

We are seeing the same error you described, with the same broken and working runner image versions:

Previous working build was: Image: macos-14-arm64 Version: 20241014.301

First broken build was on: Image: macos-14-arm64 Version: 20241022.361

sureshe456 commented 1 week ago

Hi @JP250552 We are looking into the issue. Will keep you posted with updates.Thanks.

mlopez34 commented 1 week ago

Getting similar error:

last working run used: Runner Image Image: macos-14-arm64 Version: 20241014.301

reran the same job with no code changes today and it used the following:

Runner Image Image: macos-14-arm64 Version: 20241022.361

Screenshot 2024-10-29 at 1 53 31 AM
aste-mikkok commented 1 week ago

Was also getting the operation not permitted, scandir error with latest runners, upgrading cocoapods to version 1.16 seems to have resolved the problem for us.

Aminager commented 1 week ago

Was also getting the operation not permitted, scandir error with latest runners, upgrading cocoapods to version 1.16 seems to have resolved the problem for us.

This solved the problem!!!

JP250552 commented 1 week ago

Thank you for the suggestion! Updating to 1.16 did resolve the issue for us.

It might still be worth investigating the cause in case upgrading is not possible for some projects.

unpunnyfuns commented 1 week ago

I have the same issue on macOS-15. Installing cocoapods 1.16.0 fixes this issue.

novalagung commented 1 week ago

Saw the issue yesterday. Solved it by upgrading the cocoapods to v1.16 and use macos-15