img icon indicating copy to clipboard operation
img copied to clipboard

Intermittent "authorization failed" messages

Open yangm97 opened this issue 4 years ago • 2 comments

I couldn't find a solid reproduction for this, but there appears to be some correlation to the amount of concurrent build jobs running for the same project on CI but for different branches (for instance, when renovates does its usual spam push).

The full message is:

Error: failed to solve: failed to load cache: failed to copy: httpReaderSeeker: failed open: server message: invalid_token: authorization failed

The img command used:

img build \
        --platform="linux/arm/v7" \
        --cache-from "${CI_REGISTRY_IMAGE}/${CI_JOB_NAME}:master" \
        --cache-from "${CI_REGISTRY_IMAGE}/${CI_JOB_NAME}:${CI_COMMIT_REF_SLUG}" \
        --output type=image,name="${CI_REGISTRY_IMAGE}/${CI_JOB_NAME}:${CI_COMMIT_REF_SLUG}",push=true \
        "services/${CI_JOB_NAME}"

I've seem this happening on r.j3ss.co/img:v0.5.8 and r.j3ss.co/img:v0.5.10.

yangm97 avatar Oct 01 '20 23:10 yangm97

Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.

issue-label-bot[bot] avatar Oct 01 '20 23:10 issue-label-bot[bot]

I'm also seeing the same issue. Any idea why this might be happening?

smothiki avatar May 19 '21 02:05 smothiki