openshift / pipelines-tutorial

A step-by-step tutorial showing OpenShift Pipelines
Apache License 2.0
299 stars 631 forks source link

error copying layers and metadata #33

Closed danieloh30 closed 5 years ago

danieloh30 commented 5 years ago

@siamaksade I'm testing this tutorial on ocp 4.2 using tkn cli v0.4.0 and I'm facing this error:

build-s2i : push] error copying layers and metadata from "containers-storage:[overlay@/var/lib/containers/storage+/var/run/containers/storage:overlay.imagestore=/var/lib/shared,overlay.mount_program=/usr/bin/fuse-overlayfs,overlay.mountopt=nodev,metacopy=on]image-registry.openshift-image-registry.svc:5000/pipelines-demo/spring-petclinic:latest" to "docker://image-registry.openshift-image-registry.svc:5000/pipelines-demo/spring-petclinic:latest": Error writing blob: Error initiating layer upload to /v2/pipelines-demo/spring-petclinic/blobs/uploads/ in image-registry.openshift-image-registry.svc:5000: unauthorized: authentication required

siamaksade commented 5 years ago

Looks like your service account does not have the correct credentials. Could you paste the PipelineRun YAML here?

danieloh30 commented 5 years ago

`apiVersion: tekton.dev/v1alpha1 kind: PipelineRun metadata: generateName: petclinic-s2i-pipeline-run- selfLink: >- /apis/tekton.dev/v1alpha1/namespaces/pipelines-demo/pipelineruns/petclinic-s2i-pipeline-run-xr4kt resourceVersion: '422427' name: petclinic-s2i-pipeline-run-xr4kt uid: f82a1370-f9e4-11e9-8827-1239f15c92b6 creationTimestamp: '2019-10-29T00:42:22Z' generation: 1 namespace: pipelines-demo labels: tekton.dev/pipeline: petclinic-s2i-pipeline spec: pipelineRef: name: petclinic-s2i-pipeline podTemplate: {} resources:

siamaksade commented 5 years ago

How did you start this pipeline? No service account is defined

danieloh30 commented 5 years ago

$ oc create -f http://bit.ly/pipelines-demo

$ tkn pipeline start petclinic-s2i-pipeline -n pipelines-demo

$ tkn pipeline logs -f -n pipelines-demo

siamaksade commented 5 years ago

That is not about this tutorial then! Please move it to the right repo: https://github.com/siamaksade/openshift-pipelines-examples