docker / build-push-action

GitHub Action to build and push Docker images with Buildx
https://github.com/marketplace/actions/build-and-push-docker-images
Apache License 2.0
4.31k stars 553 forks source link

Build fails with "use of closed network connection" #939

Closed max-sixty closed 1 year ago

max-sixty commented 1 year ago

Contributing guidelines

I've found a bug, and:

Description

Build fails to export to GitHub Actions Cache, with:

Error: buildx failed with: ERROR: failed to solve: error writing layer blob: Patch 
"https://acghubeus1.actions.githubusercontent.com/5N3JStGpyutUxUNE6d0DiRJnZQnrlB8wC9uh9kIr6Mh2GUFhf9/_apis/artifactcache/caches/11895": 
read tcp 172.17.0.2:42302->185.199.109.154:443: use of closed network connection

When I had manually deleted the caches, it had run successfully — though this no longer seems to make it work now (and I'm not sure whether it was causal or a coincidence prior)

Expected behaviour

(as above)

Actual behaviour

(as above)

Repository URL

https://github.com/PRQL/prql

Workflow run URL

https://github.com/PRQL/prql/blob/2ac9cb81433334c3bbbf70b27ee137013324f714/.github/workflows/build-devcontainer.yaml

YAML workflow

Linked above

Workflow logs

https://github.com/PRQL/prql/actions/runs/5943427532/job/16118539440#step:6:263

BuildKit logs

No response

Additional info

The cache entries are extremely small — 100-400 bytes...

image

link: https://github.com/PRQL/prql/actions/caches (but may not exist for long)


https://github.com/docker/build-push-action/issues/677 has the same error message but otherwise looks unrelated

crazy-max commented 1 year ago

This is a transient network error with GitHub infrastructure. Suggest to contact them. Also check https://www.githubstatus.com/.