Deploy Failed: Deploy did not succeed: Build cancelled, found file owned by root

Hi there, I’m experiencing a deployment issue on Netlify and need some help troubleshooting. Here’s the breakdown:

Site Name: snazzy-biscotti-b4a049

Error:
Deploy Failed
3:29:17 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2 (Search results for '"non-zero exit code: 2"' - Netlify Support Forums)
3:29:16 PM: Deploy site
3:29:16 PM: ────────────────────────────────────────────────────────────────
3:29:16 PM: ​
3:29:16 PM: Configuration error
3:29:16 PM: ────────────────────────────────────────────────────────────────
3:29:16 PM: Error message
3:29:16 PM: Deploy did not succeed: Build cancelled, found file owned by root
3:29:16 PM: ​
3:29:16 PM: Resolved config
3:29:16 PM: build:
3:29:16 PM: environment:
3:29:16 PM: - KOFI_TOKEN
3:29:16 PM: - KOFI_USERNAME
3:29:16 PM: - WEBHOOK_URL
3:29:16 PM: publish: /opt/build/repo
3:29:16 PM: publishOrigin: ui
3:29:16 PM: functionsDirectory: /opt/build/repo/netlify/functions
3:29:17 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
3:29:17 PM: Failing build: Failed to build site

Have you ran your build local?

Sometimes doing so will expose an issue with the build. If this is a public build, maybe a link to the deploy would be helpful also.