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

Failed when running deploy #22

Closed
austinliuu opened this issue Sep 10, 2022 · 2 comments
Closed

Failed when running deploy #22

austinliuu opened this issue Sep 10, 2022 · 2 comments

Comments

@austinliuu
Copy link

austinliuu commented Sep 10, 2022

I tried with flyctl deploy after cloning to local, and it returned the error message:

==> Validating app configuration
--> Validating app configuration done
Services
UDP 41641 ⇢ 41641
Remote builder fly-builder-spring-bird-602 ready
==> Creating build context
--> Creating build context done
==> Building image with Docker
--> docker host: 20.10.12 linux x86_64
Sending build context to Docker daemon   75.2kB
[+] Building 435.9s (4/14)
 => [internal] load remote build context                                                                                                                                                                                         0.0s
 => copy /context /                                                                                                                                                                                                              0.1s
 => [internal] load metadata for docker.io/library/alpine:latest                                                                                                                                                                 0.7s
 => ERROR [tailscale 1/4] FROM docker.io/library/alpine:latest@sha256:bc41182d7ef5ffc53a40b044e725193bc10142a1243f395ee852a8d9730fc2ad                                                                                         435.2s
 => => resolve docker.io/library/alpine:latest@sha256:bc41182d7ef5ffc53a40b044e725193bc10142a1243f395ee852a8d9730fc2ad                                                                                                           0.0s
 => => sha256:bc41182d7ef5ffc53a40b044e725193bc10142a1243f395ee852a8d9730fc2ad 1.64kB / 1.64kB                                                                                                                                   0.0s
 => => sha256:1304f174557314a7ed9eddb4eab12fed12cb0cd9809e4c28f29af86979a3c870 528B / 528B                                                                                                                                       0.0s
 => => sha256:9c6f0724472873bb50a2ae67a9e7adcb57673a183cea8b06eb778dca859181b5 1.47kB / 1.47kB                                                                                                                                   0.0s
 => => sha256:213ec9aee27d8be045c6a92b7eac22c9a64b44558193775a1a7f626352392b49 0B / 2.81MB                                                                                                                                     435.2s
------
 > [tailscale 1/4] FROM docker.io/library/alpine:latest@sha256:bc41182d7ef5ffc53a40b044e725193bc10142a1243f395ee852a8d9730fc2ad:
------
Error error building: failed commit on ref "layer-sha256:213ec9aee27d8be045c6a92b7eac22c9a64b44558193775a1a7f626352392b49": "layer-sha256:213ec9aee27d8be045c6a92b7eac22c9a64b44558193775a1a7f626352392b49" failed size validation: 0 != 2806054: failed precondition

Is that a issue with the dockerfile, or with the remote worker?

@austinliuu
Copy link
Author

Replacing alpine:latest to alpine:3.16.2 solved the issue

@patte
Copy link
Owner

patte commented May 25, 2023

This might have been an intermediate issue. I tested deploying with alpine:latest and it seems to work. If I find the time, I may pin the docker image and add dependabot to update it periodically.

@patte patte closed this as completed May 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants