Deploy to nomad cluster with waypoint (nomad_host issues -> connection refused)

I try to deploy the waypoint-examples app “nodejs” into a remote nomad cluster (hetzner cloud server). Although I can successfully install the waypoint server and runner on the nomad cluster, I can’t set the correct nomad remote address for the deployment.

waypoint up and waypoint deploy results in the following issue:

**» Building example-nodejs…**
Creating new buildpack-based image using builder: heroku/buildpacks:20
✓ Creating pack client
✓ Building image
 │ [exporter] Reusing layer 'process-types'
 │ [exporter] Adding label 'io.buildpacks.lifecycle.metadata'
 │ [exporter] Adding label 'io.buildpacks.build.metadata'
 │ [exporter] Adding label 'io.buildpacks.project.metadata'
 │ [exporter] Setting default process type 'web'
 │ [exporter] Saving example-nodejs...
 │ [exporter] *** Images (86f6c6c42acb):
 │ [exporter]       example-nodejs
 │ [exporter] Reusing cache layer 'heroku/nodejs-engine:nodejs'
 │ [exporter] Reusing cache layer 'heroku/nodejs-engine:toolbox'
✓ Injecting entrypoint binary to image

Generated new Docker image: example-nodejs:latest
✓ Tagging Docker image: example-nodejs:latest => nodejs-example:1
✓ Docker image pushed: nodejs-example:1

**» Deploying example-nodejs…**

! 2 errors occurred:
  	* Get "http://127.0.0.1:4646/v1/job/example-nodejs-11fsj2w55g20za1q3vyaeqq19f":
  dial tcp 127.0.0.1:4646: connect: connection refused
  	* Error during rollback: Delete "http://127.0.0.1:4646/v1/job/?purge=true":
  dial tcp 127.0.0.1:4646: connect: connection refused

Instead of http://127.0.0.1:4646 it should be http://my-nomad-server.com:4646.

I set the nomad remote address in 2 different places:

  1. Local environment: echo $NOMAD_ADDR
http://my-nomad-server.com:4646
  1. When installing waypoint in nomad using the “-nomad-host” parameter:
waypoint install -platform=nomad -accept-tos -nomad-host-volume=waypointdata -nomad-host=http://my-nomad-server.com:4646 -nomad-consul-domain=my-nomad-server.com

What is the correct place to set the remote address for nomad? (In my case http://my-nomad-server.com:4646)

did you ever get this figured out?

Sadly no…

This was my workaround:
Build the docker images locally and deploy them to a private docker registry in the cluster. In a second step I would run a nomad job to pull the image and run the application. The credentials for the private docker registry could be loaded from vault.

NOTE: You might also want to update your docker image,location, and remove the local configuration if you plan to run this application on an external Nomad cluster. The current example uses a local based image.

I saw this note but still have not figured it out