{"record":{"id":"65b105366a0dc1f8","repo":"firecracker-microvm/firecracker","slug":"failed-to-start-the-event-manager","errorCode":null,"errorMessage":"Failed to start the event manager","messagePattern":"Failed to start the event manager","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/firecracker/src/main.rs","lineNumber":674,"sourceCode":"    // INVARIANT: seccomp must be applied before entering the event loop.\n    vmm::seccomp::apply_filter(\n        seccomp_filters\n            .get(\"vmm\")\n            .ok_or(RunWithoutApiError::MissingSeccompFilter)?,\n    )\n    .map_err(RunWithoutApiError::SeccompFilter)?;\n\n    // Start the metrics.\n    firecracker_metrics\n        .lock()\n        .expect(\"Poisoned lock\")\n        .start(metrics::WRITE_METRICS_PERIOD_MS);\n\n    // Run the EventManager that drives everything in the microVM.\n    loop {\n        event_manager\n            .run()\n            .expect(\"Failed to start the event manager\");\n\n        match vmm.lock().unwrap().shutdown_exit_code() {\n            Some(FcExitCode::Ok) => break,\n            Some(exit_code) => return Err(RunWithoutApiError::Shutdown(exit_code)),\n            None => continue,\n        }\n    }\n    Ok(())\n}\n","sourceCodeStart":656,"sourceCodeEnd":684,"githubUrl":"https://github.com/firecracker-microvm/firecracker/blob/0a745def42ddf4cc2a744d79a08a27ff50b5d27a/src/firecracker/src/main.rs#L656-L684","documentation":"Error \"Failed to start the event manager\" thrown in firecracker-microvm/firecracker.","triggerScenarios":"Thrown at src/firecracker/src/main.rs:674 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the event manager's subscriber registrations and fd state before run; a bad fd causes run to fail.","Inspect the underlying error returned by EventManager::run for the precise cause."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a745def42ddf4cc2a744d79a08a27ff50b5d27a","analyzedAt":"2026-08-19T05:27:02.517Z","contentChangedAt":"2026-08-19T05:27:02.517Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}