{"record":{"id":"0de16d4a736a6687","repo":"hashicorp/nomad","slug":"exectask-is-not-supported-by-this-driver","errorCode":null,"errorMessage":"ExecTask is not supported by this driver","messagePattern":"ExecTask is not supported by this driver","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"plugins/drivers/driver.go","lineNumber":132,"sourceCode":"\tDestroyNetwork(allocID string, spec *NetworkIsolationSpec) error\n}\n\n// DriverSignalTaskNotSupported can be embedded by drivers which don't support\n// the SignalTask RPC. This satisfies the SignalTask func requirement for the\n// DriverPlugin interface.\ntype DriverSignalTaskNotSupported struct{}\n\nfunc (DriverSignalTaskNotSupported) SignalTask(taskID, signal string) error {\n\treturn fmt.Errorf(\"SignalTask is not supported by this driver\")\n}\n\n// DriverExecTaskNotSupported can be embedded by drivers which don't support\n// the ExecTask RPC. This satisfies the ExecTask func requirement of the\n// DriverPlugin interface.\ntype DriverExecTaskNotSupported struct{}\n\nfunc (_ DriverExecTaskNotSupported) ExecTask(taskID string, cmd []string, timeout time.Duration) (*ExecTaskResult, error) {\n\treturn nil, fmt.Errorf(\"ExecTask is not supported by this driver\")\n}\n\ntype HealthState string\n\nvar (\n\tHealthStateUndetected = HealthState(\"undetected\")\n\tHealthStateUnhealthy  = HealthState(\"unhealthy\")\n\tHealthStateHealthy    = HealthState(\"healthy\")\n)\n\ntype Fingerprint struct {\n\tAttributes        map[string]*pstructs.Attribute\n\tHealth            HealthState\n\tHealthDescription string\n\n\t// Err is set by the plugin if an error occurred during fingerprinting\n\tErr error\n}","sourceCodeStart":114,"sourceCodeEnd":150,"githubUrl":"https://github.com/hashicorp/nomad/blob/482b49bf1aec006f089bcfc7e632d8f6ac303e5e/plugins/drivers/driver.go#L114-L150","documentation":"DriverExecTaskNotSupported.ExecTask: the embedded no-op implementation returns this sentinel because the task driver does not support executing commands inside task containers (e.g. docker exec-style operations).","triggerScenarios":"Thrown at plugins/drivers/driver.go:132 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run the workload under a driver that supports exec (exec, docker)","Interact with the task through its logs or a sidecar instead"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"482b49bf1aec006f089bcfc7e632d8f6ac303e5e","analyzedAt":"2026-09-04T07:54:14.808Z","contentChangedAt":"2026-09-04T07:54:14.808Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}