What causes error "Operation on intention prefix denied due to ACLs'?

I was able to fix this by creating a policy for the nomad agents and applying it to /etc/nomad/config.json

I created a policy and token called consul-connect

agent_prefix "" {
    policy = "write"
}
node_prefix "" {
    policy = "write"
}
service_prefix "" {
    policy = "write"
}
acl = "write"

I then took the token and added it to the nomad config on the agents (not the servers)

/etc/nomad/config.json

{
  "consul": {
    "token": "123456"
  }
}

I then restarted the nomad and consul service on the agents

service nomad restart
service consul restart
2 Likes