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

Buildpack build failed because failed to exec as user 1000:1000: operation not permitted at restore step #450

Closed
zhangtbj opened this issue Oct 28, 2020 · 1 comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.

Comments

@zhangtbj
Copy link
Contributor

zhangtbj commented Oct 28, 2020

When we use the latest buildpack builder image version v0.1.7 (https://hub.docker.com/layers/paketobuildpacks/builder/0.1.7-full/images/sha256-fc7e851a66e650d29412d5634239d0f1d52f61de873af4ec8dd815d4d53fd443?context=explore) to build our source code, it failed at restore step and reported below error:

{"level":"info","ts":1603344888.9389212,"caller":"git/git.go:180","msg":"Successfully initialized and updated submodules in path /workspace/source"}
paketo-buildpacks/node-engine 0.1.2
paketo-buildpacks/npm-install 0.2.1
paketo-buildpacks/npm-start   0.0.2
ERROR: failed to exec as user 1000:1000: operation not permitted
2020/10/22 05:34:58 Skipping step because a previous step failed

This error happens when paketo updates lifecyle version to 0.9.2, 0.9.1 version doesn't have this issue.

And this error only happens on Code Engine env. On a normal cluster (doesn't have tekton-restricted-psp pod security policy), it also doesn't have this issue.

So maybe this is a pod security policy issue, but let us investigate it first!

Also ask for paketo guys' help in slack channel: https://paketobuildpacks.slack.com/archives/CULAS8ACD/p1603353770049600

@zhangtbj zhangtbj added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Oct 28, 2020
@SaschaSchwarze0
Copy link
Member

This is resolved by @xiujuan95's PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
Projects
None yet
Development

No branches or pull requests

2 participants