Hi,
Trying out Fly for the first time and attempting to deploy my gRPC server to Fly.
The simple Fly gRPC example here no longer works.
I followed the instructions and noticed the following items that are out of date:
-
flyctl initcommand no longer exists. -
import_fly_template.shruns acurlcommand that fails (and doesn’t make much sense)
The service deploys successfully but does not respond to any requests. The example grpcurl command fails, with one of several errors:
% grpcurl -proto hello.proto quiet-sun-812.fly.dev:443 MainService/Hello
Failed to dial target host "quiet-sun-812.fly.dev:443": remote error: tls: no application protocol
% grpcurl -proto hello.proto quiet-sun-812.fly.dev:443 MainService/Hello
Failed to dial target host "quiet-sun-812.fly.dev:443": read tcp 192.168.1.81:55834->109.105.219.190:443: read: connection reset by peer
% grpcurl -proto hello.proto quiet-sun-812.fly.dev:443 MainService/Hello
Failed to dial target host "quiet-sun-812.fly.dev:443": remote error: tls: no application protocol
Status and logs are pretty unremarkable:
% flyctl logs
2022-02-09T06:30:04Z runner[09933354] dfw [info]Starting instance
2022-02-09T06:30:05Z runner[09933354] dfw [info]Configuring virtual machine
2022-02-09T06:30:05Z runner[09933354] dfw [info]Pulling container image
2022-02-09T06:30:06Z runner[09933354] dfw [info]Unpacking image
2022-02-09T06:30:09Z runner[09933354] dfw [info]Preparing kernel init
2022-02-09T06:30:09Z runner[09933354] dfw [info]Configuring firecracker
2022-02-09T06:30:09Z runner[09933354] dfw [info]Starting virtual machine
2022-02-09T06:30:09Z app[09933354] dfw [info]Starting init (commit: 0c50bff)...
2022-02-09T06:30:09Z app[09933354] dfw [info]Preparing to run: `/cnb/process/web` as 1000
2022-02-09T06:30:09Z app[09933354] dfw [info]2022/02/09 06:30:09 listening on [fdaa:0:4bb1:a7b:7b:993:3354:2]:22 (DNS: [fdaa::3]:53)
2022-02-09T06:30:09Z runner[09933354] dfw [info]Virtual machine started successfully
% flyctl status
App
Name = quiet-sun-812
Owner = personal
Version = 0
Status = running
Hostname = quiet-sun-812.fly.dev
Deployment Status
ID = 9cd16dbd-09c3-b126-7ddb-b7167fdcd4df
Version = v0
Status = successful
Description = Deployment completed successfully
Instances = 1 desired, 1 placed, 1 healthy, 0 unhealthy
Instances
ID PROCESS VERSION REGION DESIRED STATUS HEALTH CHECKS RESTARTS CREATED
09933354 app 0 dfw run running 1 total, 1 passing 0 11m52s ago
My gRPC server is also in Go and fails in the same way.
This looks like the same or similar issue reported in Oct 2021 here. That’s a long time for this to be broken with no response. It makes me a bit nervous about using Fly.
Any help? What’s going on?
Thanks!