Stopping the tutorial nomad server/client

I did the getting started tutorial with nomad and after I was done, I wanted to test starting an agent from a config file and the old server and client agents from the tutorial seem to be hanging.

When I run :
nomad agent -config=./server.hcl

I get:
Error starting agent: server setup failed: Failed to start RPC layer: listen tcp bind: address already in use

Even after restarting my computer, I was still able to access the nomad ui on localhost:4646 and the server leader node was still running. Which is all very confusing to me.

I’d like to find a way to clean up all of nomad’s stuff from my mac and start over with a new config from a file but I can’t seem to find a way to stop or delete the already running cluster.

Any help would be appreciated thanks!

Hi @MaxEvan,

Could you share the contents of the server.hcl file please, just so I can double check that for you?

I wonder if Nomad is being controlled by launchctl(8) ? You can view the processes under its control by running sudo launchctl list, and then use something like sudo launchctl unload /System/Library/LaunchDaemons/<name>.plist to stop it if needed.

jrasell and the Nomad team