{"record":{"id":"9f1d270e887d9fe6","repo":"slimtoolkit/slim","slug":"start-monitor-timeout-9f1d27","errorCode":null,"errorMessage":"start monitor timeout","messagePattern":"start monitor timeout","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/app/master/inspectors/pod/pod_inspector.go","lineNumber":671,"sourceCode":"\t\t}\n\n\t\tif evt.Name == event.Error {\n\t\t\treturn fmt.Errorf(\"start monitor error: %v\", evt.Data)\n\t\t}\n\n\t\tif evt.Name != event.StartMonitorDone {\n\t\t\ti.xc.Out.Info(\"event.startmonitor.done\",\n\t\t\t\tovars{\n\t\t\t\t\t\"status\": \"received.unexpected\",\n\t\t\t\t\t\"data\":   fmt.Sprintf(\"%+v\", evt),\n\t\t\t\t})\n\n\t\t\t//TODO: dump temp container logs\n\t\t\treturn event.ErrUnexpectedEvent\n\t\t}\n\t}\n\n\treturn errors.New(\"start monitor timeout\")\n}\n\nfunc (i *Inspector) sensorCommandStop() error {\n\tresp, err := i.sensorIPCClient.SendCommand(&command.StopMonitor{})\n\tif err != nil {\n\t\treturn err\n\t}\n\ti.logger.Debugf(\"'stop' monitor response => '%v'\", resp)\n\n\ti.logger.Info(\"waiting for the pod to finish its work...\")\n\n\tevt, err := i.sensorIPCClient.GetEvent()\n\tif err != nil {\n\t\treturn err\n\t}\n\ti.logger.Debugf(\"sensor event => '%v'\", evt)\n\treturn nil\n}","sourceCodeStart":653,"sourceCodeEnd":689,"githubUrl":"https://github.com/slimtoolkit/slim/blob/81940d17fa112cc678e32209214bcb2355cb3004/pkg/app/master/inspectors/pod/pod_inspector.go#L653-L689","documentation":"Pod inspector variant of the start-monitor timeout: sensorCommandStart (called by RunPod in pkg/app/master/inspectors/pod/pod_inspector.go) waits for the sensor monitor to start in the Kubernetes pod and, after exhausting its event waits, returns this ad-hoc error instead of a sentinel. The sensor never confirmed a successful monitor start for the pod.","triggerScenarios":"Running pod inspection when the sensor's start command/IPC never yields a confirming event — sensor container crash, network policy blocking the IPC channel, or the monitor event never arriving before the loop ends.","commonSituations":"Kubernetes NetworkPolicies blocking sensor traffic; sensor image not schedulable or crashing in the target cluster; slow pod startup exceeding the wait window; RBAC preventing sensor sidecar communication.","solutions":["Check the sensor pod/container logs (kubectl logs) to see why the sensor did not start","Ensure cluster network policies allow traffic on the sensor IPC ports between components","Retry the inspection; if persistent, verify the sensor image matches the cluster architecture and runs without errors"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":"// Go\nif err := RunPod(ctx); err != nil && strings.Contains(err.Error(), \"start monitor timeout\") {\n\t// check sensor logs, verify network policies, retry\n}","preventionTips":["Verify NetworkPolicies permit sensor IPC traffic","Check sensor container logs after every failure","Confirm the sensor image matches the cluster CPU architecture"],"tags":["kubernetes","pod","sensor","timeout"],"backgroundTag":"start-monitor-timeout","analyzedSha":"81940d17fa112cc678e32209214bcb2355cb3004","analyzedAt":"2026-08-31T23:06:12.682Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T05:18:18.240Z"}