I’m trying to deploy the app at GitHub - jsha/unboundtest: Web service to test DNS resolution against Unbound with config similar to Let's Encrypt, which I build with a custom Dockerfile (in that repo). When I build from that Dockerfile and locally run:
docker run -p 1232 -it j4cob/unboundtest
It works properly. However, when I run: docker push j4cob/unboundtest:latest
and flyctl deploy
I get an error:
flyctl deploy
Deploying multi-dns
==> Validating app configuration
--> Validating app configuration done
Services
TCP 80/443 ⇢ 1232
==> Creating build context
--> Creating build context done
==> Building image with Docker
Step 1/11 : FROM ubuntu:hirsute
---> 58fb7079c94b
Step 2/11 : ENV DEBIAN_FRONTEND noninteractive
---> Using cache
---> 10333af7699b
Step 3/11 : RUN apt update && apt -y install unbound golang-go
---> Using cache
---> 35866951c83f
Step 4/11 : COPY . /unboundtest
---> 951ddff57571
Step 5/11 : WORKDIR /unboundtest
---> Running in 61a7822b1d90
---> 3f217d61d2c9
Step 6/11 : RUN GOBIN=/usr/bin go install ./
---> Running in 032f029da0d1
go: downloading github.com/miekg/dns v1.1.41
go: downloading golang.org/x/sys v0.0.0-20210303074136-134d130e1a04
go: downloading golang.org/x/net v0.0.0-20210226172049-e18ecbb05110
---> 0d5888b3cfb3
Step 7/11 : RUN mkdir -p /var/run/unboundtest
---> Running in 3a8d67efac43
---> f310073443ae
Step 8/11 : COPY index.html root.key unbound.conf /var/run/unboundtest/
---> 667655b05585
Step 9/11 : WORKDIR /var/run/unboundtest
---> Running in 39505a24926a
---> 8d7d4a68a920
Step 10/11 : EXPOSE 1232
---> Running in b4f5ae67a71b
---> b2c02fb696a0
Step 11/11 : CMD /usr/bin/unboundtest
---> Running in efa4812a829b
---> 0a564a917cbb
got a message { <nil> 0 0 <nil> 0xc00029a3d8}
Successfully built 0a564a917cbb
Successfully tagged registry.fly.io/multi-dns:deployment-1617741363
--> Building image done
==> Pushing image to fly
The push refers to repository [registry.fly.io/multi-dns]
b24971c82641: Pushed
4de9f7fc1814: Pushed
6e937022410f: Pushed
299b3a803a8b: Pushed
cef0b5acd521: Layer already exists
5f5822f0bce9: Layer already exists
c6012a8ebf34: Layer already exists
9dd73792a95c: Layer already exists
deployment-1617741363: digest: sha256:94e3545ddbd97ff6fe3879102feec920e85ce05e84713408807b72b05711287d size: 1992
--> Pushing image done
Image: registry.fly.io/multi-dns:deployment-1617741363
Image size: 863 MB
==> Creating release
Release v0 created
Deploying to multi-dns.fly.dev
Monitoring Deployment
You can detach the terminal anytime without stopping the deployment
1 desired, 1 placed, 0 healthy, 1 unhealthy
v3 failed - Failed due to unhealthy allocations - no stable job version to auto revert to
***v3 failed - Failed due to unhealthy allocations - no stable job version to auto revert to and deploying as v4
Troubleshooting guide at https://fly.io/docs/getting-started/troubleshooting/
My fly.toml contains:
[build]
image = "j4cob/unboundtest:latest"
Here’s the output of flyctl logs
:
2021-04-06T01:02:19.231Z bec617ce sea [info] Starting instance
2021-04-06T01:02:19.269Z bec617ce sea [info] Configuring virtual machine
2021-04-06T01:02:19.271Z bec617ce sea [info] Pulling container image
2021-04-06T01:02:26.845Z bec617ce sea [info] Unpacking image
2021-04-06T01:02:39.728Z bec617ce sea [info] Preparing kernel init
2021-04-06T01:02:40.138Z bec617ce sea [info] Configuring firecracker
2021-04-06T01:02:40.229Z bec617ce sea [info] Starting virtual machine
2021-04-06T01:02:40.407Z bec617ce sea [info] Starting init (commit: 0512da4)...
2021-04-06T01:02:40.427Z bec617ce sea [info] Running: `/bin/sh -c /usr/bin/unboundtest` as root
2021-04-06T01:02:40.431Z bec617ce sea [info] [ 0.079226] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
2021-04-06T01:02:40.431Z bec617ce sea [info] Error: UnhandledIoError(Os { code: 2, kind: NotFound, message: "No such file or directory" })
2021-04-06T01:02:40.432Z bec617ce sea [info] [ 0.080662] dump_stack+0x5e/0x74
2021-04-06T01:02:40.432Z bec617ce sea [info] [ 0.080406] Call Trace:
2021-04-06T01:02:40.432Z bec617ce sea [info] [ 0.079895] CPU: 0 PID: 1 Comm: init Not tainted 5.9.15 #1
2021-04-06T01:02:40.433Z bec617ce sea [info] [ 0.080991] panic+0xf3/0x2a1
2021-04-06T01:02:40.433Z bec617ce sea [info] [ 0.081616] ? __vm_munmap+0x93/0xd0
2021-04-06T01:02:40.433Z bec617ce sea [info] [ 0.081288] do_exit+0x94d/0xb30
2021-04-06T01:02:40.434Z bec617ce sea [info] [ 0.082304] __x64_sys_exit_group+0x13/0x20
2021-04-06T01:02:40.434Z bec617ce sea [info] [ 0.082712] do_syscall_64+0x37/0x50
2021-04-06T01:02:40.434Z bec617ce sea [info] [ 0.081968] do_group_exit+0x3e/0xa0
2021-04-06T01:02:40.435Z bec617ce sea [info] [ 0.083038] entry_SYSCALL_64_after_hwframe+0x44/0xa9
2021-04-06T01:02:40.435Z bec617ce sea [info] [ 0.083508] RIP: 0033:0x6c791b
2021-04-06T01:02:40.437Z bec617ce sea [info] [ 0.083798] Code: eb ef 48 8b 76 28 e9 70 05 00 00 64 48 8b 04 25 00 00 00 00 48 8b b0 b0 00 00 00 e9 af ff ff ff 48 63 ff b8 e7 00 00 00 0f 05 <ba> 3c 00 00 00 48 89 d0 0f 05 eb f9 66 0f 1f 84 00 00 00 00 00 ba
In particular these seem like the relevant lines:
2021-04-06T01:02:40.427Z bec617ce sea [info] Running: `/bin/sh -c /usr/bin/unboundtest` as root
2021-04-06T01:02:40.431Z bec617ce sea [info] [ 0.079226] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
2021-04-06T01:02:40.431Z bec617ce sea [info] Error: UnhandledIoError(Os { code: 2, kind: NotFound, message: "No such file or directory" })