Image pulling fails constantly

Hi, I am constantly facing errors while deploying to hkg. Please help.

2021-09-21T03:13:57.543313913Z runner[cca08315] hkg [info] Starting instance
2021-09-21T03:13:57.592029913Z runner[cca08315] hkg [info] Configuring virtual machine
2021-09-21T03:13:57.593902747Z runner[cca08315] hkg [info] Pulling container image
2021-09-21T03:14:00.665404925Z runner[cca08315] hkg [info] Pull failed, retrying (attempt #0)
2021-09-21T03:14:01.627750631Z runner[cca08315] hkg [info] Pull failed, retrying (attempt #1)
2021-09-21T03:14:02.605847879Z runner[cca08315] hkg [info] Pull failed, retrying (attempt #2)
2021-09-21T03:14:02.605852460Z runner[cca08315] hkg [info] Pulling image failed
2021-09-21T03:32:39.306260639Z runner[8e144483] hkg [info] Starting instance
2021-09-21T03:32:39.358549657Z runner[8e144483] hkg [info] Pulling container image
2021-09-21T03:32:43.329617416Z runner[8e144483] hkg [info] Pull failed, retrying (attempt #0)
2021-09-21T03:32:44.278406713Z runner[8e144483] hkg [info] Pull failed, retrying (attempt #1)
2021-09-21T03:32:45.221872533Z runner[8e144483] hkg [info] Pulling image failed
2021-09-21T03:59:44.882745330Z runner[8aa96dd5] hkg [info] Starting instance
2021-09-21T03:59:44.926397247Z runner[8aa96dd5] hkg [info] Configuring virtual machine
2021-09-21T03:59:44.928435558Z runner[8aa96dd5] hkg [info] Pulling container image
2021-09-21T03:59:48.272110539Z runner[8aa96dd5] hkg [info] Pull failed, retrying (attempt #0)
2021-09-21T03:59:49.241832033Z runner[8aa96dd5] hkg [info] Pull failed, retrying (attempt #1)
2021-09-21T03:59:50.235267120Z runner[8aa96dd5] hkg [info] Pull failed, retrying (attempt #2)
2021-09-21T03:59:50.235271170Z runner[8aa96dd5] hkg [info] Pulling image failed
2021-09-21T04:00:17.446138224Z runner[e58af7fc] hkg [info] Starting instance
2021-09-21T04:00:17.484387949Z runner[e58af7fc] hkg [info] Configuring virtual machine
2021-09-21T04:00:17.486441383Z runner[e58af7fc] hkg [info] Pulling container image
2021-09-21T04:00:19.080423086Z runner[e58af7fc] hkg [info] Pull failed, retrying (attempt #0)
2021-09-21T04:00:20.037398623Z runner[e58af7fc] hkg [info] Pull failed, retrying (attempt #1)
2021-09-21T04:00:20.979801232Z runner[e58af7fc] hkg [info] Pull failed, retrying (attempt #2)
2021-09-21T04:00:20.979805180Z runner[e58af7fc] hkg [info] Pulling image failed
2021-09-21T04:25:20.891155063Z runner[5b5a31a2] hkg [info] Starting instance
2021-09-21T04:25:20.933175090Z runner[5b5a31a2] hkg [info] Configuring virtual machine
2021-09-21T04:25:20.935118200Z runner[5b5a31a2] hkg [info] Pulling container image
2021-09-21T04:25:21.028389269Z runner[5b5a31a2] hkg [info] Pull failed, retrying (attempt #0)
2021-09-21T04:25:23.824016573Z runner[5b5a31a2] hkg [info] Pull failed, retrying (attempt #1)
2021-09-21T04:25:24.745375393Z runner[5b5a31a2] hkg [info] Pull failed, retrying (attempt #2)
2021-09-21T04:25:24.745380349Z runner[5b5a31a2] hkg [info] Pulling image failed

Hi there,
I am getting what looks like the same issue - for both my apps, right at the last part of deployment:
(elixir app)
Starting instance
Configuring virtual machine
Pulling container image
Pull failed, retrying (attempt #0)
Pull failed, retrying (attempt #1)
Pulling image failed
They are both in Hong Kong (looks like yours is too).

I tried deleting the builder (cargo culting), no effect. Now I will try (not sure how - assume its in the docs to move my apps to another zone).

We’re having some trouble today with the hkg region. We’ll update here as soon as we’ve fixed the problem.

Are you running in multiple regions? If so, you should be able to remove the hkg region temporarily using flyctl regions remove hkg.

If you are only running in hkg, you can try adding another region with flyctl regions add sin, then remove hkg with flyctl regions remove hkg.

1 Like

Thanks Joshua!

Thanks for the clarification @joshua

This should be fixed now, our Docker registry cache in Hong Kong got itself into a state where it couldn’t authenticate people. We think we know why and we’re rolling out some improvements today.

Seems to be happening again today in hkg, unfortunately.

@john did you see something in your app logs? I don’t see any errors, just one in Paris that retried successfully.

Hi @kurt I had one manual failure (where I fly deploy from the console), I don’t have the log for that - it was the same one Pulling image failed - but I also did a git hub action deploy before that which prompted the manual deploy, logs below . Trying an hour or so later was fine.

Generated wwell app

[1023](* assembling wwell-0.1.0 on MIX_ENV=prod

[1024](* using config/runtime.exs to configure the release at runtime

[1025](* creating _build/prod/rel/wwell/releases/0.1.0/vm.args

[1026](* creating _build/prod/rel/wwell/releases/0.1.0/


[1028]( created at _build/prod/rel/wwell!


[1030]( # To start your system

[1031]( _build/prod/rel/wwell/bin/wwell start


[1033]( the release is running:


[1035]( # To connect to it remotely

[1036]( _build/prod/rel/wwell/bin/wwell remote


[1038]( # To stop it gracefully (you may also send SIGINT/SIGTERM)

[1039]( _build/prod/rel/wwell/bin/wwell stop


[1041]( list all commands:


[1043]( _build/prod/rel/wwell/bin/wwell


[1045]( ---> 3d9cd7618977

[1046]( 20/30 : FROM alpine:3.13.3 AS app

[1047]( Pulling from library/alpine

[1048]( Already exists

[1049]( sha256:826f70e0ac33e99a72cf20fb0571245a8fee52d68cb26d8bc58e53bfa65dcdfa

[1050]( Downloaded newer image for alpine:3.13.3

[1051]( ---> 302aba9ce190

[1052]( 21/30 : RUN apk add --no-cache libstdc++ openssl ncurses-libs

[1053]( ---> Running in cebf1e4209ec



[1056]( Installing libgcc (10.2.1_pre1-r3)

[1057]( Installing libstdc++ (10.2.1_pre1-r3)

[1058]( Installing ncurses-terminfo-base (6.2_p20210109-r0)

[1059]( Installing ncurses-libs (6.2_p20210109-r0)

[1060]( Installing openssl (1.1.1l-r0)

[1061]( busybox-1.32.1-r3.trigger

[1062]( 9 MiB in 19 packages

[1063]( ---> c8ee10605296

[1064]( 22/30 : WORKDIR /app

[1065]( ---> Running in 3025494fe608

[1066]( ---> 008dc07569b9

[1067]( 23/30 : RUN chown nobody:nobody /app

[1068]( ---> Running in 0c263408d61e

[1069]( ---> 4c3460af0b63

[1070]( 24/30 : USER nobody:nobody

[1071]( ---> Running in 8c9436a53d0c

[1072]( ---> 6bfc2f3c96d1

[1073]( 25/30 : COPY --from=build --chown=nobody:nobody /app/_build/prod/rel/wwell ./

[1074]( ---> 82f2c9c8df00

[1075]( 26/30 : ENV HOME=/app

[1076]( ---> Running in c37816f89d8b

[1077]( ---> 518ff7dfc7c2

[1078]( 27/30 : ENV MIX_ENV=prod

[1079]( ---> Running in 66e00a9b1207

[1080]( ---> a0c6e27e4a88

[1081]( 28/30 : ENV SECRET_KEY_BASE=nokey

[1082]( ---> Running in 31dfc2fc2e5d

[1083]( ---> 283efae02526

[1084]( 29/30 : ENV PORT=4000

[1085]( ---> Running in 07ae1ea516f9

[1086]( ---> 6851125d4b3c

[1087]( 30/30 : CMD ["bin/wwell", "start"]

[1088]( ---> Running in 34c04f635d0b

[1089]( ---> 77a33ac9bc69

[1090]( built 77a33ac9bc69

[1091]( tagged

[1092](> Building image done

[1093](> Pushing image to fly

[1094]( push refers to repository []

[1095]( Preparing

[1096]( Preparing

[1097]( Preparing

[1098]( Preparing

[1099]( Preparing

[1100]( Layer already exists

[1101]( Pushed

[1102]( Pushed

[1103]( Pushed

[1104]( Pushed

[1105]( digest: sha256:65ccb07de281c736a94e17a1dc6a92045729f5183831ce0dafa2879dfa146180 size: 1363

[1106](> Pushing image done


[1108]( size: 41 MB

[1109](> Creating release

[1110]( v135 created

[1111]( command detected: this new release will not be available until the command succeeds.


[1113]( can detach the terminal anytime without stopping the deployment

[1114](> Release command

[1115]( /app/bin/wwell eval Wwell.Release.migrate

[1116]( Starting instance

[1117]( Configuring virtual machine

[1118]( Pulling container image

[1119]( Unpacking image

[1120]( Preparing kernel init

[1121]( Configuring firecracker

[1122]( Starting virtual machine

[1123]( Preparing to run: `/app/bin/wwell eval Wwell.Release.migrate` as nobody

[1124]( 2021/09/24 04:28:28 listening on [fdaa:0:2f06:a7b:acc:6d8a:635e:2]:22 (DNS: [fdaa::3]:53)

[1125]( 04:28:29.080 [info] Migrations already up

[1126]( Reaped child process with pid: 575 and signal: SIGUSR1, core dumped? false

[1127]( Reaped child process with pid: 577 and signal: SIGUSR1, core dumped? false

[1128]( Main child exited normally with code: 0

[1129]( Starting clean up.


[1131]( Release command failed, deployment aborted