Hi all,
Today I launched my first app, but I encountered some problems.
Could anyone help me check what is the problem here?
The following is the output (by changing some personal info):
$ flyctl launch --name myappname
Creating app in /home/myname/myappname
Scanning source code
Detected a Go app
Using the following build configuration:
Builder: paketobuildpacks/builder:base
Buildpacks: gcr.io/paketo-buildpacks/go
Automatically selected personal organization: Tapir Liu
? Select region: sin (Singapore)
Created app myappname in organization personal
Wrote config file fly.toml
Your app is ready. Deploy with `flyctl deploy`
? Would you like to deploy now? Yes
Deploying myappname
$ flyctl deploy
Deploying myappname
==> Validating app configuration
--> Validating app configuration done
Services
TCP 80/443 ⇢ 8080
Error An unknown error occured.
$ flyctl logs
(hang here ...)
@tapir.liu It looks like it timed out while creating your remote builder. It’ll usually work if you try again.
The app you’re seeing is the remote builder. It turns on as needed then stops when idle. You can remove it if you want and it’ll get created if you need it again.
I have the same issue. I had tried the ruby getting started and the go getting started.
Example in WSL2:
Creating app in /home/name/Development/go-example
Scanning source code
Detected a Go app
Using the following build configuration:
Builder: paketobuildpacks/builder:base
Buildpacks: gcr.io/paketo-buildpacks/go
? App Name (leave blank to use an auto-generated name):
Automatically selected personal organization: Jeremy
? Select region: lax (Los Angeles, California (US))
Created app wispy-star-2705 in organization personal
Wrote config file fly.toml
Your app is ready. Deploy with `flyctl deploy`
? Would you like to deploy now? Yes
Deploying wispy-star-2705
==> Validating app configuration
--> Validating app configuration done
Services
TCP 80/443 ⇢ 8080
Error An unknown error occured.
Example running from windows
Creating app in C:\Users\name\Development\fly\go-example
Scanning source code
Detected a ←[32mGo←[0m app
Using the following build configuration:
Builder: paketobuildpacks/builder:base
Buildpacks: gcr.io/paketo-buildpacks/go
? App Name (leave blank to use an auto-generated name):
Automatically selected personal organization: Jeremy
? Select region: lax (Los Angeles, California (US))
Created app falling-haze-1562 in organization personal
Wrote config file fly.toml
Your app is ready. Deploy with `flyctl deploy`
? Would you like to deploy now? Yes
Deploying falling-haze-1562
==> Validating app configuration
--> Validating app configuration done
Services
TCP 80/443 ⇢ 8080
←[33mWARN ←[0mError connecting to local docker daemon: error during connect: This error may indicate that the docker daemon is not running.: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/_ping": open //./pipe/docker_engine: The system cannot find the file specified.
←[31mError←[0m An unknown error occured.
Is it erroring connecting to the local docker daemon or trying to connect a remote builder? If it’s a remote builder you’ll see "connecting to fly-builder-something-something in the logs.