Feb 03 16:26:23 ai-149 nomad[32564]: 2023-02-03T16:26:23.108+0800 [ERROR] client.rpc: error performing RPC to server: error=“rpc error: Permission denied” rpc=Variables.Read server=172.17.22.151:4647
Feb 03 16:26:23 ai-149 nomad[32564]: 2023-02-03T16:26:23.108+0800 [ERROR] client.rpc: error performing RPC to server which is not safe to automatically retry: error=“rpc error: Permission denied” rpc=Variables.Read server=172.17.22.151:4647
Feb 03 16:26:23 ai-149 nomad[32564]: 2023-02-03T16:26:23.115+0800 [ERROR] client.rpc: error performing RPC to server: error=“rpc error: Permission denied” rpc=Variables.Read server=172.17.22.151:4647
Feb 03 16:26:23 ai-149 nomad[32564]: 2023-02-03T16:26:23.115+0800 [ERROR] client.rpc: error performing RPC to server which is not safe to automatically retry: error=“rpc error: Permission denied” rpc=Variables.Read server=172.17.22.151:4647
Feb 03 16:26:23 ai-149 nomad[32564]: 2023-02-03T16:26:23.116+0800 [ERROR] client.rpc: error performing RPC to server: error=“rpc error: Permission denied” rpc=Variables.Read server=172.17.22.151:4647
Feb 03 16:26:23 ai-149 nomad[32564]: 2023-02-03T16:26:23.116+0800 [ERROR] client.rpc: error performing RPC to server which is not safe to automatically retry: error=“rpc error: Permission denied” rpc=Variables.Read server=172.17.22.151:4647
Feb 03 16:26:23 ai-149 nomad[32564]: 2023-02-03T16:26:23.116+0800 [ERROR] client.rpc: error performing RPC to server: error=“rpc error: Permission denied” rpc=Variables.Read server=172.17.22.151:4647
Feb 03 16:26:23 ai-149 nomad[32564]: 2023-02-03T16:26:23.116+0800 [ERROR] client.rpc: error performing RPC to server which is not safe to automatically retry: error=“rpc error: Permission denied” rpc=Variables.Read server=172.17.22.151:4647
Feb 03 16:26:23 ai-149 nomad[32564]: 2023-02-03T16:26:23.118+0800 [ERROR] client.rpc: error performing RPC to server: error=“rpc error: Permission denied” rpc=Variables.Read server=172.17.22.151:4647
Hi @chenjpu1,
Would you be able to provide some more context around what is causing this error, any configuration involved, and what your expected result is please?
Thanks,
jrasell and the Nomad team
Access noamd vars in template defined by job
template {
change_mode = "restart"
data = "{{with nomadVar \"dapr/config\"}}{{range .Tuples}}#{{.K}}\n{{base64Decode .V}}\n---\n{{end}}{{end}}"
destination = "local/.dapr/config.yaml"
}
template {
change_mode = "restart"
data = "{{with nomadVar \"dapr/components\"}}{{range .Tuples}}#{{.K}}\n{{base64Decode .V}}\n---\n{{end}}{{end}}"
destination = "local/.dapr/components/config.yaml"
}
Referring to the https://developer.hashicorp.com/nomad/docs/concepts/variables#task-access-to-variables
documentation, the problem has been resolved.