srv failed binding: listen unix C:\Users\User\.fly\fly-agent.sock: socket: An address incompatible with the requested protocol was used.

hello

tried to play with fly on windows 7. as current docker is not supported there have had to install docker toolbox from Releases · docker-archive/toolbox · GitHub

LOG_LEVEL=debug flyctl deploy finishes with

Waiting for remote builder fly-builder-old-field-5710... ? DEBUG started agent process (pid: 40752, log: C:\Users\User\.fly\agent-logs\2374203770.log)
←[2mDEBUG result image:<nil> error:error connecting to docker: failed building options: agent: failed to start
←[0mError failed to fetch an image or build from source: error connecting to docker: failed building options: agent: failed to start


The agent failed to start with the following error log:

2022/07/19 18:00:23.592000 srv failed binding: listen unix C:\Users\User\.fly\fly-agent.sock: socket: An address incompatible with the requested protocol was used.


A copy of this log has been saved at C:\Users\User\.fly\agent-logs\2374203770.log

here’s excerpt from monitoring log:

2022-07-19T15:12:15.719 app[0e286733a05386] fra [info] time="2022-07-19T15:12:15.719636031Z" level=info msg="Docker daemon" commit=459d0df graphdriver(s)=overlay2 version=20.10.12

2022-07-19T15:12:15.720 app[0e286733a05386] fra [info] time="2022-07-19T15:12:15.719992429Z" level=info msg="metrics API listening on [::]:9323"

2022-07-19T15:12:15.720 app[0e286733a05386] fra [info] time="2022-07-19T15:12:15.720206961Z" level=info msg="Daemon has completed initialization"

2022-07-19T15:12:15.726 app[0e286733a05386] fra [info] time="2022-07-19T15:12:15.726643170Z" level=debug msg="Registering routers"

2022-07-19T15:12:15.726 app[0e286733a05386] fra [info] time="2022-07-19T15:12:15.726684007Z" level=debug msg="Registering GET, /containers/{name:.*}/checkpoints"

2022-07-19T15:12:15.726 app[0e286733a05386] fra [info] time="2022-07-19T15:12:15.726810404Z" level=debug msg="Registering POST, /containers/{name:.*}/checkpoints"

2022-07-19T15:12:15.727 app[0e286733a05386] fra [info] time="2022-07-19T15:12:15.726965695Z" level=debug msg="Registering DELETE, /containers/{name}/checkpoints/{checkpoint}"

2022-07-19T15:12:15.727 app[0e286733a05386] fra [info] time="2022-07-19T15:12:15.727071644Z" level=debug msg="Registering HEAD, /containers/{name:.*}/archive"

2022-07-19T15:12:15.727 app[0e286733a05386] fra [info] time="2022-07-19T15:12:15.727161212Z" level=debug msg="Registering GET, /containers/json"

2022-07-19T15:12:15.727 app[0e286733a05386] fra [info] time="2022-07-19T15:12:15.727216145Z" level=debug msg="Registering GET, /containers/{name:.*}/export"

2022-07-19T15:12:15.727 app[0e286733a05386] fra [info] time="2022-07-19T15:12:15.727285815Z" level=debug msg="Registering GET, /containers/{name:.*}/changes"

2022-07-19T15:12:15.727 app[0e286733a05386] fra [info] time="2022-07-19T15:12:15.727407413Z" level=debug msg="Registering GET, /containers/{name:.*}/json"

2022-07-19T15:12:15.727 app[0e286733a05386] fra [info] time="2022-07-19T15:12:15.727532017Z" level=debug msg="Registering GET, /containers/{name:.*}/top"

2022-07-19T15:12:15.727 app[0e286733a05386] fra [info] time="2022-07-19T15:12:15.727611085Z" level=debug msg="Registering GET, /containers/{name:.*}/logs"

2022-07-19T15:12:15.727 app[0e286733a05386] fra [info] time="2022-07-19T15:12:15.727684553Z" level=debug msg="Registering GET, /containers/{name:.*}/stats"

2022-07-19T15:12:15.729 app[0e286733a05386] fra [info] time="2022-07-19T15:12:15.729246241Z" level=debug msg="Registering POST, /containers/{name:.*}/copy"

2022-07-19T15:12:15.734 app[0e286733a05386] fra [info] time="2022-07-19T15:12:15.731135694Z" level=debug msg="Registering POST, /containers/{name:.*}/exec"

2022-07-19T15:12:15.737 app[0e286733a05386] fra [info] time="2022-07-19T15:12:15.737245301Z" level=debug msg="Registering DELETE, /containers/{name}/checkpoints/{checkpoint}"

2022-07-19T15:12:15.742 app[0e286733a05386] fra [info] time="2022-07-19T15:12:15.741484680Z" level=debug msg="Registering GET, /configs/{id}"

2022-07-19T15:12:15.752 app[0e286733a05386] fra [info] time="2022-07-19T15:12:15.752551723Z" level=debug msg="Calling POST /grpc"

2022-07-19T15:12:15.760 app[0e286733a05386] fra [info] Name: default

2022-07-19T15:12:15.760 app[0e286733a05386] fra [info] Driver: docker

2022-07-19T15:12:15.764 app[0e286733a05386] fra [info] time="2022-07-19T15:12:15.764033753Z" level=debug msg="Checking dockerd healthyness"

and then keep repeating following two entries until timed out

2022-07-19T15:12:16.769 app[0e286733a05386] fra [info] time="2022-07-19T15:12:16.768789718Z" level=debug msg="checking docker activity"

2022-07-19T15:12:16.769 app[0e286733a05386] fra [info] time="2022-07-19T15:12:16.769341132Z" level=debug msg="Calling GET /v1.41/containers/json?filters=%7B%22status%22%3A%7B%22running%22%3Atrue%7D%7D&limit=0"
2022-07-19T15:22:13.326 app[0e286733a05386] fra [info] time="2022-07-19T15:22:13.325803005Z" level=debug msg="checking docker activity"

2022-07-19T15:22:13.326 app[0e286733a05386] fra [info] time="2022-07-19T15:22:13.326089052Z" level=debug msg="Calling GET /v1.41/containers/json?filters=%7B%22status%22%3A%7B%22running%22%3Atrue%7D%7D&limit=0"

2022-07-19T15:22:13.836 app[0e286733a05386] fra [info] time="2022-07-19T15:22:13.836329246Z" level=info msg="Deadline reached without docker build"

2022-07-19T15:22:13.836 app[0e286733a05386] fra [info] time="2022-07-19T15:22:13.836410398Z" level=info msg="shutting down"

2022-07-19T15:22:13.837 app[0e286733a05386] fra [info] time="2022-07-19T15:22:13.837731836Z" level=info msg="gracefully stopped\n"

2022-07-19T15:22:13.838 app[0e286733a05386] fra [info] time="2022-07-19T15:22:13.837802359Z" level=debug msg="disk space used: 1.03%"

2022-07-19T15:22:13.838 app[0e286733a05386] fra [info] time="2022-07-19T15:22:13.837849858Z" level=info msg="Waiting for dockerd to exit"

2022-07-19T15:22:13.838 app[0e286733a05386] fra [info] time="2022-07-19T15:22:13.838008044Z" level=info msg="Processing signal 'interrupt'"

2022-07-19T15:22:13.838 app[0e286733a05386] fra [info] time="2022-07-19T15:22:13.838306784Z" level=debug msg="daemon configured with a 15 seconds minimum shutdown timeout"

2022-07-19T15:22:13.838 app[0e286733a05386] fra [info] time="2022-07-19T15:22:13.838331130Z" level=debug msg="start clean shutdown of all containers with a 15 seconds timeout..."

2022-07-19T15:22:13.838 app[0e286733a05386] fra [info] time="2022-07-19T15:22:13.838411481Z" level=debug msg="found 0 orphan layers"

2022-07-19T15:22:13.839 app[0e286733a05386] fra [info] time="2022-07-19T15:22:13.838889277Z" level=debug msg="Unix socket /var/run/docker/libnetwork/6387a9019e3e.sock doesn't exist. cannot accept client connections"

2022-07-19T15:22:13.839 app[0e286733a05386] fra [info] time="2022-07-19T15:22:13.838965299Z" level=debug msg="Cleaning up old mountid : start."

2022-07-19T15:22:13.839 app[0e286733a05386] fra [info] time="2022-07-19T15:22:13.839007408Z" level=info msg="stopping event stream following graceful shutdown" error="<nil>" module=libcontainerd namespace=moby

2022-07-19T15:22:13.839 app[0e286733a05386] fra [info] time="2022-07-19T15:22:13.839202143Z" level=debug msg="Cleaning up old mountid : done."

2022-07-19T15:22:13.839 app[0e286733a05386] fra [info] time="2022-07-19T15:22:13.839311959Z" level=debug msg="unmounting daemon root" mountpoint=/data/docker

2022-07-19T15:22:13.839 app[0e286733a05386] fra [info] time="2022-07-19T15:22:13.839421795Z" level=debug msg="Clean shutdown succeeded"

2022-07-19T15:22:13.839 app[0e286733a05386] fra [info] time="2022-07-19T15:22:13.839453214Z" level=info msg="Daemon shutdown complete"

2022-07-19T15:22:13.839 app[0e286733a05386] fra [info] time="2022-07-19T15:22:13.839461380Z" level=info msg="stopping healthcheck following graceful shutdown" module=libcontainerd

2022-07-19T15:22:13.839 app[0e286733a05386] fra [info] time="2022-07-19T15:22:13.839507887Z" level=info msg="stopping event stream following graceful shutdown" error="context canceled" module=libcontainerd namespace=plugins.moby

2022-07-19T15:22:13.840 app[0e286733a05386] fra [info] time="2022-07-19T15:22:13.839868844Z" level=debug msg="received signal" signal=terminated

2022-07-19T15:22:13.840 app[0e286733a05386] fra [info] time="2022-07-19T15:22:13.839994539Z" level=debug msg="sd notification" error="<nil>" notified=false state="STOPPING=1"

2022-07-19T15:22:14.335 app[0e286733a05386] fra [info] time="2022-07-19T15:22:14.328468244Z" level=debug msg="checking docker activity"

2022-07-19T15:22:14.335 app[0e286733a05386] fra [info] time="2022-07-19T15:22:14.335191581Z" level=debug msg="Calling GET /v1.41/containers/json?filters=%7B%22status%22%3A%7B%22running%22%3Atrue%7D%7D&limit=0"

2022-07-19T15:22:14.840 app[0e286733a05386] fra [info] time="2022-07-19T15:22:14.840644254Z" level=warning msg="grpc: addrConn.createTransport failed to connect to {unix:///var/run/docker/containerd/containerd.sock <nil> 0 <nil>}. Err :connection error: desc = \"transport: Error while dialing dial unix:///var/run/docker/containerd/containerd.sock: timeout\". Reconnecting..." module=grpc

2022-07-19T15:22:14.844 app[0e286733a05386] fra [info] time="2022-07-19T15:22:14.844609699Z" level=info msg="dockerd has exited"

2022-07-19T15:22:14.844 app[0e286733a05386] fra [info] context done, stop watching docker

any chance to overcome the problem?

thank you

I don’t think flyctl will work with Windows 7. We need support for this, which I’m fairly sure only arrived in Windows 10: AF_UNIX comes to Windows - Windows Command Line

There might be a way to use Wireguard to setup the private network connection and bypass our agent to get around this specific problem. You’ll need to fly wg create, follow the instructions to configure wireguard, then set an environment variable FLY_REMOTE_BUILDER_HOST_WG=true.

2 Likes

thank you for the prompt answer
so that effectively makes windows 7 unsupported there?
unfortunately stuck with 7 on that pc :frowning:

There might be a workaround, see edit.

apparently that did the trick, thank you again!
wg instructions

I tried this, but while I got a bit further, the deploy always fails with:

WARN Remote builder did not start in time. Check remote builder logs with flyctl logs -a fly-builder-falling-wave-8028
Error failed to fetch an image or build from source: remote builder app unavailable

Now I’m testing on a VM using Linux and everything seams to work. So something in Windows 7 still causes issues I guess.

Have the same issue on Windows 10 Corporate which I’m stuck working with currently.

WARN Remote builder did not start in time. Check remote builder logs with flyctl logs -a fly-builder-lively-cherry-5565
Error failed to fetch an image or build from source: error connecting to docker: remote builder app unavailable