Description
Nomad version
1.10.0
Operating system and Environment
Ubuntu 24.04.2 LTS,, x64
Issue
Nomad hello example custom driver fails with "rpc error: code = Unknown desc = Failed at executor: rpc error: code = Unknown desc = unable to configure cgroups: no such file or directory"
output of cat /sys/fs/cgroup/cgroup.controllers is:
cpuset cpu io memory hugetlb pids rdma misc
and logs from the job allocation are:
{"@Level":"debug","@message":"plugin address","@timestamp":"2025-06-30T19:58:07.983149+03:00","address":"/tmp/plugin2966876518","network":"unix"}
{"@Level":"error","@message":"failed to configure container, process isolation will not work","@module":"executor","@timestamp":"2025-06-30T19:58:07.986883+03:00","error":"no such file or directory"}
Reproduction steps
Compile the plugin from: https://github.com/hashicorp/nomad-skeleton-driver-plugin
Expected Result
The job should run successfully and display "Hello, World!"
Actual Result
It gives the following error: "rpc error: code = Unknown desc = Failed at executor: rpc error: code = Unknown desc = unable to configure cgroups: no such file or directory"
Job file (if appropriate)
job "example" {
datacenters = ["dc1"]
type = "batch"
group "example" {
task "hello-world" {
driver = "hello-driver"
config {
greeting = "hello"
}
}
}
}
Metadata
Metadata
Assignees
Type
Projects
Status