Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"error reading server preface" builder not ready #102

Closed
ShedPlant opened this issue Jun 12, 2024 · 3 comments
Closed

"error reading server preface" builder not ready #102

ShedPlant opened this issue Jun 12, 2024 · 3 comments
Assignees
Labels
kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed
Milestone

Comments

@ShedPlant
Copy link

ShedPlant commented Jun 12, 2024

What happened?

Sometimes but not always, building Image fails in GitHub Action CI with error "error reading server preface: EOF".

Retrying may work.

Example

    docker-build:index:Image (my-image):
      error: listing workers for Build: failed to list workers: Unavailable: connection error: desc = "error reading server preface: EOF"
  
    pulumi:pulumi:Stack (my-project.staging):
      error: update failed
  
      error: dial unix /run/buildkit/buildkitd.sock: connect: no such file or directory
  
    docker-build:index:Image (my-image):
      #0 building with "thirsty_elbakyan" instance using docker-container driver
      
      #1 [internal] booting buildkit
      #1 pulling image moby/buildkit:buildx-stable-1
      #1 pulling image moby/buildkit:buildx-stable-1 0.3s done
      #1 creating container buildx_buildkit_thirsty_elbakyan0
      #1 creating container buildx_buildkit_thirsty_elbakyan0 8.0s done
      error: listing workers for Build: failed to list workers: Unavailable: connection error: desc = "transport: Error while dialing: use of closed network connection"

Output of pulumi about

This is on my dev machine:

CLI          
Version      3.119.0
Go Version   go1.22.4
Go Compiler  gc

Plugins
KIND      NAME          VERSION
resource  aws           5.43.0
resource  docker-build  0.0.2
language  python        unknown

Host     
OS       darwin
Version  14.5
Arch     arm64

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@ShedPlant ShedPlant added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Jun 12, 2024
@ShedPlant ShedPlant changed the title "error reading server preface" buildkit not ready "error reading server preface" builder not ready Jun 12, 2024
@ShedPlant
Copy link
Author

It happens quite often and wastes a lot of CI and my time 😢 .

@blampe
Copy link
Contributor

blampe commented Jun 17, 2024

It happens quite often and wastes a lot of CI and my time 😢 .

Yes, ours too :(

@ShedPlant please try updating to 0.0.3 and let me know if the issue persists. That release includes a small change to wait for builders to boot, although I suspect the issue might persist.

@blampe blampe added awaiting-feedback and removed needs-triage Needs attention from the triage team labels Jun 17, 2024
@ShedPlant
Copy link
Author

Thanks, I've upgraded to 0.0.3 and will let you know if I see the problem again.

@pulumi-bot pulumi-bot added needs-triage Needs attention from the triage team and removed awaiting-feedback labels Jun 18, 2024
@blampe blampe added awaiting-feedback and removed needs-triage Needs attention from the triage team labels Jun 18, 2024
@mjeffryes mjeffryes added resolution/fixed This issue was fixed and removed awaiting-feedback labels Jul 24, 2024
@mjeffryes mjeffryes self-assigned this Jul 26, 2024
@mjeffryes mjeffryes added this to the 0.108 milestone Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed
Projects
None yet
Development

No branches or pull requests

4 participants