{"record":{"id":"12af21f4cff06094","repo":"firecracker-microvm/firecracker","slug":"missing-argument-api-sock","errorCode":null,"errorMessage":"Missing argument: api-sock","messagePattern":"Missing argument: api-sock","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/firecracker/src/main.rs","lineNumber":425,"sourceCode":"        // Safe to unwrap as we provide a default value.\n        .unwrap();\n\n    // If the mmds size limit is not explicitly configured, default to using the\n    // `http-api-max-payload-size` value.\n    let mmds_size_limit = arg_parser\n        .arguments()\n        .single_value(\"mmds-size-limit\")\n        .map(|lim| {\n            lim.parse::<usize>()\n                .expect(\"'mmds-size-limit' parameter expected to be of 'usize' type.\")\n        })\n        .unwrap_or_else(|| api_payload_limit);\n\n    if api_enabled {\n        let bind_path = arguments\n            .single_value(\"api-sock\")\n            .map(PathBuf::from)\n            .expect(\"Missing argument: api-sock\");\n\n        let start_time_us = arguments.single_value(\"start-time-us\").map(|s| {\n            s.parse::<u64>()\n                .expect(\"'start-time-us' parameter expected to be of 'u64' type.\")\n        });\n\n        let start_time_cpu_us = arguments.single_value(\"start-time-cpu-us\").map(|s| {\n            s.parse::<u64>()\n                .expect(\"'start-time-cpu-us' parameter expected to be of 'u64' type.\")\n        });\n\n        let parent_cpu_time_us = arguments.single_value(\"parent-cpu-time-us\").map(|s| {\n            s.parse::<u64>()\n                .expect(\"'parent-cpu-time-us' parameter expected to be of 'u64' type.\")\n        });\n\n        let process_time_reporter =\n            ProcessTimeReporter::new(start_time_us, start_time_cpu_us, parent_cpu_time_us);","sourceCodeStart":407,"sourceCodeEnd":443,"githubUrl":"https://github.com/firecracker-microvm/firecracker/blob/0a745def42ddf4cc2a744d79a08a27ff50b5d27a/src/firecracker/src/main.rs#L407-L443","documentation":"Error \"Missing argument: api-sock\" thrown in firecracker-microvm/firecracker.","triggerScenarios":"Thrown at src/firecracker/src/main.rs:425 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass --api-sock with the path for the API socket, or provide a config file that sets it.","Ensure only one of --api-sock or --no-api is used as intended."],"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-14T05:17:10.506Z"}