{"record":{"id":"bf5c92fce13dfaa1","repo":"kubernetes/kops","slug":"modprobe-for-module-q-failed-v-s","errorCode":null,"errorMessage":"modprobe for module %q failed (%v): %s","messagePattern":"modprobe for module %q failed \\((.+?)\\): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/nodeup/command.go","lineNumber":602,"sourceCode":"\t\tip := ips[0]\n\t\tklog.Infof(\"Using IP from AWS metadata service: %s\", ip)\n\n\t\treturn ip, nil\n\t}\n\n\tif net.ParseIP(bindAddress) == nil {\n\t\treturn \"\", fmt.Errorf(\"bindAddress is not valid IP address\")\n\t}\n\treturn bindAddress, nil\n}\n\n// modprobe will exec `modprobe <module>`\nfunc modprobe(module string) error {\n\tklog.Infof(\"Doing modprobe for module %v\", module)\n\tout, err := exec.Command(\"/sbin/modprobe\", module).CombinedOutput()\n\toutString := string(out)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"modprobe for module %q failed (%v): %s\", module, err, outString)\n\t}\n\tif outString != \"\" {\n\t\tklog.Infof(\"Output from modprobe %s:\\n%s\", module, outString)\n\t}\n\treturn nil\n}\n\n// loadKernelModules is a hack to force br_netfilter to be loaded\n// and used by some components to load its recommended modules.\n// TODO: Move to tasks architecture\nfunc loadKernelModules(context *model.NodeupModelContext, distribution distributions.Distribution) error {\n\tvar failed []string\n\tif context.NodeupConfig.Networking.Kindnet != nil {\n\t\terr := modprobe(\"nfnetlink_queue\")\n\t\tif err != nil {\n\t\t\tklog.Warningf(\"error loading nfnetlink_queue module: %v\", err)\n\t\t\tfailed = append(failed, \"nfnetlink_queue\")\n\t\t}","sourceCodeStart":584,"sourceCodeEnd":620,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/nodeup/command.go#L584-L620","documentation":"Error \"modprobe for module %q failed (%v): %s\" thrown in kubernetes/kops.","triggerScenarios":"Thrown at upup/pkg/fi/nodeup/command.go:602 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T07:17:12.445Z"}