I am using Nomad version 1.7, and we have moved our logs to AWS FSx. I am trying to define a symlink in the log directory on FSx to make the directory visible in the UI under the “alloc” section. When I navigate to the alloc directory on the client server, I can see the symlink, but in the UI, I am encountering the following error:
“A server error prevented data from being sent to the client.”
In the Nomad server logs, I see the following error message:
[ERROR] http: request failed: method=GET path=“/v1/client/fs/stat/3b4d1bdf-68cd-d676-896b-xxxxxx?path=alloc%2Fdata%2Flogs” error=“rpc error: Path escapes the alloc directory” code=500
The Nomad client configuration is as follows:
client {
enabled = true
template {
disable_file_sandbox = true
}
}
Could anyone please help me understand why I am getting this error and how to resolve it?
Thank you!