Skip to content

chdir to cwd "/home/nonroot" set in config.json failed: permission denied": unknown #781

@rannox

Description

@rannox

Hello everyone,

updating the version of the Tekton Triggers from 0.6.1 to either 0.7.0 or 0.8.1 fails with:
"chdir to cwd (\"/home/nonroot\") set in config.json failed: permission denied": unknown

Expected Behavior

Installation of the Tekton Triggers should work.

Actual Behavior

The start of the webhook and controller pods fails:

$ kubectl get pods --namespace tekton-pipelines
NAME                                          READY   STATUS             RESTARTS   AGE
tekton-triggers-controller-77fcb944f9-vws29   0/1     CrashLoopBackOff   259        21h
tekton-triggers-webhook-dc7c546b9-9nbjv       0/1     CrashLoopBackOff   259        21h
$ kubectl describe pod tekton-triggers-controller-77fcb944f9-vws29 -n tekton-pipelines
...
Events:
  Type     Reason     Age                 From               Message
  ----     ------     ----                ----               -------
  Normal   Scheduled  2m7s                default-scheduler  Successfully assigned tekton-pipelines/tekton-triggers-controller-77fcb944f9-vws29 to [HOST]
  Normal   Created    84s (x4 over 2m6s)  kubelet, [HOST]  Created container tekton-triggers-controller
  Warning  Failed     83s (x4 over 2m6s)  kubelet, [HOST]  Error: failed to start container "tekton-triggers-controller": Error response from daemon: OCI runtime create failed: container_linux.go:346: starting container process caused "chdir to cwd (\"/home/nonroot\") set in config.json failed: permission denied": unknown
  Warning  BackOff    44s (x7 over 2m4s)  kubelet, [HOST]  Back-off restarting failed container
  Normal   Pulling    37s (x5 over 2m6s)  kubelet, [HOST]  Pulling image "[PRIVATE_REGISTRY]/gcr.io/tekton-releases/github.com/tektoncd/triggers/cmd/controller:v0.7.0"
  Normal   Pulled     37s (x5 over 2m6s)  kubelet, [HOST]  Successfully pulled image "[PRIVATE_REGISTRY]/gcr.io/tekton-releases/github.com/tektoncd/triggers/cmd/controller:v0.7.0"

Steps to Reproduce the Problem

  1. Install the latest version: kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml
  2. Check the status of the pods: kubectl get pods --namespace tekton-pipelines

Additional Info

We are running a kubernetes cluster in version 1.18.3 with enabled pod security policy:

kubectl version
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.0", GitCommit:"9e991415386e4cf155a24b1da15becaa390438d8", GitTreeState:"clean", BuildDate:"2020-03-25T14:58:59Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.3", GitCommit:"2e7996e3e2712684bc73f0dec0200d64eec7fe40", GitTreeState:"clean", BuildDate:"2020-05-20T12:43:34Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}

Summary:

  • Tekton Triggers 0.6.1 - works
  • Tekton Triggers from 0.7.0 - the described error occurs
  • Tekton Pipelines 0.14.3 - works
  • Tekton Pipelines from 0.15.0 - the described error occurs

Best regards,
rannox

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions