jx: skaffold build failed :Error creating credential store helper: Failed to create secondary file store dir /home/jenkins/.docker/acr

Summary

After upgraded the platform and jx my pipeline for the angulario jenkins javascript application example doesn’t work anymore even after deleting it and redo a jx import. The error is Error creating credential store helper: Failed to create secondary file store dir /home/jenkins/.docker/acr

time=“2018-07-26T10:04:27Z” level=fatal msg=“build step: building [changeme]: pushing: getting auth config for 10.0.66.232:5000/zgorizzo69/website-cogarius:0.0.33: getting auth config: error getting credentials - err: exit status 1, out: ``”

script returned exit code 1

Steps to reproduce the behavior

do a jx import on the angular.io jenkins-x kickstart application

Jx version

The output of jx version is:

NAME               VERSION
jx                 1.3.117
jenkins x platform 0.0.1912
kubernetes cluster v1.9.9
kubectl            v1.10.5
helm client        v2.10.0-rc.1+gaa98e7e
helm server        v2.10.0-rc.1+gaa98e7e
git                git version 2.17.1

Kubernetes cluster

What kind of Kubernetes cluster are you using & how did you create it? on azure (aks) I did a jx create cluster aks --domain=blocklistener.com --tls-acme=true --http=false --nodes=3

Operating system / Environment

ubuntu 18.04

Expected behavior

I expect that this step execute correctly

 sh 'export VERSION=$PREVIEW_VERSION && skaffold build -f skaffold.yaml'

Actual behavior

the step export VERSION=cat VERSION && skaffold build -f skaffold.yaml failed

— Shell Script Running shell script

++ cat VERSION

  • export VERSION=0.0.33

  • VERSION=0.0.33

  • skaffold build -f skaffold.yaml

Starting build…

Building [changeme]…

Error creating credential store helper: Failed to create secondary file store dir /home/jenkins/.docker/acr

Sending build context to Docker daemon 533.8kB … Sending build context to Docker daemon 236.2MB

Step 1/5 : FROM abiosoft/caddy

—> 0a6415c06a4e

Step 2/5 : COPY . /srv

—> 56a2cd01185d

Step 3/5 : COPY Caddyfile /etc/Caddyfile

—> 525ee2899cc3

Step 4/5 : ENV PORT 80

—> Running in c3d10e8c91a4

—> 40d5c81552c4

Step 5/5 : EXPOSE 80

—> Running in 8245ce2ce0bf

—> 0b30e550ce1f

Successfully built 0b30e550ce1f

Error creating credential store helper: Failed to create secondary file store dir /home/jenkins/.docker/acr

time=“2018-07-26T10:04:27Z” level=fatal msg=“build step: building [changeme]: pushing: getting auth config for 10.0.66.232:5000/zgorizzo69/website-cogarius:0.0.33: getting auth config: error getting credentials - err: exit status 1, out: ``”

script returned exit code 1

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 19

Most upvoted comments

Same issue here. Any update?

Any updates or eta for its fix?

Same issue here. Any update?

Any updates on this? Even with some hacking and overrides, I basically couldn’t get JX to be usable end-to-end on AKS.

In fact it works with ACR you need the Service Principal + Secret that you get after the creation of the SP. YOu put the ID of the SP as username & secret as password jx create docker auth --host “yourregistry.azurecr.io” --user “ffe9xxxx-ff52-xxxx-9fxx-xxxxxxxxx0” --secret “HRh9d2DxLGbIAxxxxxxxxxxxxxxxxxxx” --email “youremail” and in the jenkins, you specify the DOCKER_REGISTRY entry with your acr entry name. yourregistry.azurecr.io thats all folks…