Skip to content

Instantly share code, notes, and snippets.

@michiels
Last active November 10, 2022 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michiels/92e80b7dce294ec512eae8f5bd674810 to your computer and use it in GitHub Desktop.
Save michiels/92e80b7dce294ec512eae8f5bd674810 to your computer and use it in GitHub Desktop.
waypoint-build-errors
gomonthly % waypoint build -vvv
2022-11-10T10:35:43.906+0100 [INFO] waypoint: waypoint version: full_string="v0.10.3 (136a885b9)" version=v0.10.3 prerelease="" metadata="" revision=136a885b9
2022-11-10T10:35:43.907+0100 [TRACE] waypoint: starting interrupt listener for context cancellation
2022-11-10T10:35:43.909+0100 [TRACE] waypoint: interrupt listener goroutine started
2022-11-10T10:35:43.913+0100 [DEBUG] waypoint: home configuration directory: path=/Users/michiel/Library/Preferences/waypoint
2022-11-10T10:35:43.929+0100 [TRACE] waypoint: no API client provided, initializing connection if possible
2022-11-10T10:35:43.929+0100 [TRACE] waypoint.server: Local server may be created later - server credentials optional
2022-11-10T10:35:43.929+0100 [INFO] waypoint.server: attempting to source credentials and connect
2022-11-10T10:35:44.756+0100 [INFO] waypoint.serverclient: utilizing credentials fetched via oauth for server auth: oauth-url=https://auth.hashicorp.com/oauth/token oauth-client-id=ASvzyc4lQ8POtFjsA5iodgGiOoWcTwn4
2022-11-10T10:35:44.756+0100 [DEBUG] waypoint.serverclient: connection information: address=api.hashicorp.cloud:443 tls=true tls_skip_verify=false send_auth=true has_token=true
2022-11-10T10:35:45.062+0100 [DEBUG] waypoint.server: connection established with sourced credentials
2022-11-10T10:35:45.062+0100 [TRACE] waypoint: requesting version info from server
2022-11-10T10:35:45.177+0100 [INFO] waypoint: server version info: version="hcp v0.10.0" api_min=1 api_current=1 entrypoint_min=1 entrypoint_current=1
2022-11-10T10:35:45.177+0100 [INFO] waypoint: negotiated api version: version=1
2022-11-10T10:35:45.177+0100 [DEBUG] waypoint: will operate on app: name=firmhouse
2022-11-10T10:35:45.178+0100 [DEBUG] waypoint.setupLocalJobSystem: determining if a local or remote runner should be used for this and future jobs
» Building firmhouse...2022-11-10T10:35:45.536+0100 [DEBUG] waypoint: Default runner profile exists - operation is possible remotely.
2022-11-10T10:35:45.536+0100 [DEBUG] waypoint.setupLocalJobSystem: Running this command: git -C /Users/michiel/Code/gomonthly rev-parse --show-toplevel
2022-11-10T10:35:45.584+0100 [DEBUG] waypoint.setupLocalJobSystem: local config directory is a git repo, but project has non-remote datasource type. Will not attempt dirty git warning.: project datasource type="&{%!t(*gen.Job_Remote=&{{{} [] [] <nil>} 0 [18 10 18 8 119 97 121 112 111 105 110 116] github.com/firmhouse/gomonthly})}"
2022-11-10T10:35:45.584+0100 [DEBUG] waypoint.setupLocalJobSystem: result: isLocal=false
2022-11-10T10:35:45.584+0100 [DEBUG] waypoint: queueing job: operation=*gen.Job_Build
2022-11-10T10:35:45.775+0100 [DEBUG] waypoint: opening job stream: job_id=01GHGEAE3DMMDFCCD8DM01X969
2022-11-10T10:35:47.165+0100 [WARN] waypoint: job failed: job_id=01GHGEAE3DMMDFCCD8DM01X969 code=FailedPrecondition message="unable to list images in local Docker cache: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"
! unable to list images in local Docker cache: Cannot connect to the Docker daemon
at unix:///var/run/docker.sock. Is the docker daemon running?
2022-11-10T10:35:47.166+0100 [TRACE] waypoint: stopping signal listeners and cancelling the context
2022-11-10T10:48:10.281+0100 [INFO] waypoint: waypoint version: full_string="v0.10.3 (136a885b9)" version=v0.10.3 prerelease="" metadata="" revision=136a885b9
2022-11-10T10:48:10.281+0100 [TRACE] waypoint: starting interrupt listener for context cancellation
2022-11-10T10:48:10.285+0100 [TRACE] waypoint: interrupt listener goroutine started
2022-11-10T10:48:10.290+0100 [DEBUG] waypoint: home configuration directory: path=/Users/michiel/Library/Preferences/waypoint
2022-11-10T10:48:10.308+0100 [TRACE] waypoint: no API client provided, initializing connection if possible
2022-11-10T10:48:10.308+0100 [TRACE] waypoint.server: Local server may be created later - server credentials optional
2022-11-10T10:48:10.308+0100 [INFO] waypoint.server: attempting to source credentials and connect
2022-11-10T10:48:11.960+0100 [INFO] waypoint.serverclient: utilizing credentials fetched via oauth for server auth: oauth-url=https://auth.hashicorp.com/oauth/token oauth-client-id=ASvzyc4lQ8POtFjsA5iodgGiOoWcTwn4
2022-11-10T10:48:11.961+0100 [DEBUG] waypoint.serverclient: connection information: address=api.hashicorp.cloud:443 tls=true tls_skip_verify=false send_auth=true has_token=true
2022-11-10T10:48:12.985+0100 [DEBUG] waypoint.server: connection established with sourced credentials
2022-11-10T10:48:12.985+0100 [TRACE] waypoint: requesting version info from server
2022-11-10T10:48:13.293+0100 [INFO] waypoint: server version info: version="hcp v0.10.0" api_min=1 api_current=1 entrypoint_min=1 entrypoint_current=1
2022-11-10T10:48:13.293+0100 [INFO] waypoint: negotiated api version: version=1
2022-11-10T10:48:13.293+0100 [DEBUG] waypoint: will operate on app: name=firmhouse
2022-11-10T10:48:13.293+0100 [DEBUG] waypoint.setupLocalJobSystem: determining if a local or remote runner should be used for this and future jobs
» Building firmhouse...2022-11-10T10:48:14.017+0100 [DEBUG] waypoint: Default runner profile exists - operation is possible remotely.
2022-11-10T10:48:14.018+0100 [DEBUG] waypoint.setupLocalJobSystem: Running this command: git -C /Users/michiel/Code/gomonthly rev-parse --show-toplevel
2022-11-10T10:48:14.059+0100 [DEBUG] waypoint.setupLocalJobSystem: local config directory is a git repo, but project has non-remote datasource type. Will not attempt dirty git warning.: project datasource type="&{%!t(*gen.Job_Remote=&{{{} [] [] <nil>} 0 [18 10 18 8 119 97 121 112 111 105 110 116] github.com/firmhouse/gomonthly})}"
2022-11-10T10:48:14.059+0100 [DEBUG] waypoint.setupLocalJobSystem: result: isLocal=false
2022-11-10T10:48:14.059+0100 [DEBUG] waypoint: queueing job: operation=*gen.Job_Build
2022-11-10T10:48:14.251+0100 [DEBUG] waypoint: opening job stream: job_id=01GHGF191EM44HV2ZA194PFS8N
» Operation is queued waiting for job "01GHGF191EM44HV2ZA194PFS8N". Waiting for runner assignment...
If you interrupt this command, the job will still run in the background.
2022-11-10T09:37:42.512Z [INFO] waypoint.runner.agent.runner.config_recv: new configuration received
2022-11-10T09:37:42.525Z [INFO] waypoint.runner.agent.runner: job assignment received: job_id=01GHGEDZW8VG7HVRYPZG00QYME job_op=*gen.Job_StartTask
2022-11-10T09:37:42.525Z [INFO] waypoint.runner.agent.runner: starting job execution: job_id=01GHGEDZW8VG7HVRYPZG00QYME job_op=*gen.Job_StartTask
2022-11-10T09:37:42.526Z [DEBUG] waypoint.runner.agent.runner: plugin found as builtin: job_id=01GHGEDZW8VG7HVRYPZG00QYME job_op=*gen.Job_StartTask
2022-11-10T09:37:42.526Z [INFO] waypoint.runner.agent.runner: launching plugin: job_id=01GHGEDZW8VG7HVRYPZG00QYME job_op=*gen.Job_StartTask type=TaskLauncher path=/usr/bin/waypoint args=["/usr/bin/waypoint", "plugin", "docker"]
2022-11-10T09:37:42.526Z [DEBUG] waypoint.runner.agent.runner: starting plugin: job_id=01GHGEDZW8VG7HVRYPZG00QYME job_op=*gen.Job_StartTask path=/usr/bin/waypoint args=["/usr/bin/waypoint", "plugin", "docker"]
2022-11-10T09:37:42.527Z [DEBUG] waypoint.runner.agent.runner: plugin started: job_id=01GHGEDZW8VG7HVRYPZG00QYME job_op=*gen.Job_StartTask path=/usr/bin/waypoint pid=147
2022-11-10T09:37:42.527Z [DEBUG] waypoint.runner.agent.runner: waiting for RPC address: job_id=01GHGEDZW8VG7HVRYPZG00QYME job_op=*gen.Job_StartTask path=/usr/bin/waypoint
2022-11-10T09:37:42.595Z [DEBUG] waypoint.runner.agent.runner.waypoint: plugin address: job_id=01GHGEDZW8VG7HVRYPZG00QYME job_op=*gen.Job_StartTask address=/tmp/plugin1433836832 network=unix @module=plugin timestamp=2022-11-10T09:37:42.594Z
2022-11-10T09:37:42.595Z [DEBUG] waypoint.runner.agent.runner: using plugin: job_id=01GHGEDZW8VG7HVRYPZG00QYME job_op=*gen.Job_StartTask version=1
2022-11-10T09:37:42.599Z [DEBUG] waypoint.runner.agent.runner: plugin successfully launched and connected: job_id=01GHGEDZW8VG7HVRYPZG00QYME job_op=*gen.Job_StartTask
2022-11-10T09:37:42.599Z [DEBUG] waypoint.runner.agent.runner: decoding task plugin config: job_id=01GHGEDZW8VG7HVRYPZG00QYME job_op=*gen.Job_StartTask
2022-11-10T09:37:42.604Z [DEBUG] waypoint.runner.agent.runner: invoking plugin function: job_id=01GHGEDZW8VG7HVRYPZG00QYME job_op=*gen.Job_StartTask
2022-11-10T09:37:42.610Z [ERROR] waypoint.runner.agent.runner: error starting task: job_id=01GHGEDZW8VG7HVRYPZG00QYME job_op=*gen.Job_StartTask error="rpc error: code = FailedPrecondition desc = unable to list images in local Docker cache: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"
2022-11-10T09:37:42.611Z [DEBUG] waypoint.runner.agent.runner.stdio: received EOF, stopping recv loop: job_id=01GHGEDZW8VG7HVRYPZG00QYME job_op=*gen.Job_StartTask err="rpc error: code = Unavailable desc = error reading from server: EOF"
2022-11-10T09:37:42.615Z [DEBUG] waypoint.runner.agent.runner: plugin process exited: job_id=01GHGEDZW8VG7HVRYPZG00QYME job_op=*gen.Job_StartTask path=/usr/bin/waypoint pid=147
2022-11-10T09:37:42.615Z [DEBUG] waypoint.runner.agent.runner: plugin exited: job_id=01GHGEDZW8VG7HVRYPZG00QYME job_op=*gen.Job_StartTask
2022-11-10T09:37:42.615Z [DEBUG] waypoint.runner.agent.runner: job finished: job_id=01GHGEDZW8VG7HVRYPZG00QYME job_op=*gen.Job_StartTask error="rpc error: code = FailedPrecondition desc = unable to list images in local Docker cache: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"
2022-11-10T09:37:42.616Z [WARN] waypoint.runner.agent.runner: error during job execution: job_id=01GHGEDZW8VG7HVRYPZG00QYME job_op=*gen.Job_StartTask err="rpc error: code = FailedPrecondition desc = unable to list images in local Docker cache: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"
2022-11-10T09:37:42.745Z [DEBUG] waypoint.runner.agent.runner: opening job stream: retry=false
2022-11-10T09:37:42.745Z [INFO] waypoint.runner.agent.runner: waiting for job assignment
2022-11-10T09:37:42.872Z [INFO] waypoint.runner.agent.runner: job assignment received: job_id=01GHGEDZW88FWYVHEWJ1ED92B5 job_op=*gen.Job_StopTask
2022-11-10T09:37:42.873Z [INFO] waypoint.runner.agent.runner: starting job execution: job_id=01GHGEDZW88FWYVHEWJ1ED92B5 job_op=*gen.Job_StopTask
2022-11-10T09:37:42.873Z [DEBUG] waypoint.runner.agent.runner: looking up start job to get state: job_id=01GHGEDZW88FWYVHEWJ1ED92B5 job_op=*gen.Job_StopTask start-id=01GHGEDZW8VG7HVRYPZG00QYME
2022-11-10T09:37:43.029Z [WARN] waypoint.runner.agent.runner: start job has no result, ignoring: job_id=01GHGEDZW88FWYVHEWJ1ED92B5 job_op=*gen.Job_StopTask
2022-11-10T09:37:43.029Z [DEBUG] waypoint.runner.agent.runner: job finished: job_id=01GHGEDZW88FWYVHEWJ1ED92B5 job_op=*gen.Job_StopTask error=<nil>
2022-11-10T09:37:43.029Z [DEBUG] waypoint.runner.agent.runner: sending job completion: job_id=01GHGEDZW88FWYVHEWJ1ED92B5 job_op=*gen.Job_StopTask
2022-11-10T09:37:43.135Z [DEBUG] waypoint.runner.agent.runner: opening job stream: retry=false
2022-11-10T09:37:43.136Z [INFO] waypoint.runner.agent.runner: waiting for job assignment
2022-11-10T09:37:43.476Z [INFO] waypoint.runner.agent.runner.config_recv: new configuration received
project = "firmhouse"
app "firmhouse" {
labels = {
"service" = "firmhouse",
"env" = "dev"
}
build {
use "docker-pull" {
image = "registry.digitalocean.com/a/b"
tag = "latest"
auth {
hostname = "registry.digitalocean.com"
username = var.DIGITALOCEAN_REGISTRY_KEY
password = var.DIGITALOCEAN_REGISTRY_KEY
}
}
registry {
use "docker" {
image = "registry.digitalocean.com/a/b"
tag = "waypoint-latest"
auth {
username = var.DIGITALOCEAN_REGISTRY_KEY
password = var.DIGITALOCEAN_REGISTRY_KEY
}
}
}
}
deploy {
use "nomad" {
datacenter = "dc1"
service_provider = "nomad"
auth {
username = var.DIGITALOCEAN_REGISTRY_KEY
password = var.DIGITALOCEAN_REGISTRY_KEY
}
resources {
memorymb = 1024
}
static_environment = {
GEM_PATH = "/layers/heroku_ruby/gems/vendor/bundle/ruby/2.6.0"
PATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:bin:/layers/heroku_ruby/gems/vendor/bundle/ruby/2.6.0/bin"
DATABASE_URL = var.DATABASE_URL
AWS_REGION = "eu-west-1"
RAILS_ENV = "production"
PORT = 3000
}
service_port = 3000
replicas = 1
}
}
}
variable "DATABASE_URL" {
type = string
env = ["DATABASE_URL"]
}
variable "DIGITALOCEAN_REGISTRY_KEY" {
type = string
env = ["DIGITALOCEAN_REGISTRY_KEY"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment