{"record":{"id":"176126d8c7cec495","repo":"mvanhorn/last30days-skill","slug":"engine-open-s-w","errorCode":null,"errorMessage":"engine: open %s: %w","messagePattern":"engine: open (.+?): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"mcp/internal/engine/extract.go","lineNumber":129,"sourceCode":"\treturn fs.WalkDir(src, \".\", func(path string, d fs.DirEntry, err error) error {\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tif path == \".\" {\n\t\t\treturn nil\n\t\t}\n\t\ttarget := filepath.Join(dst, path)\n\t\tif d.IsDir() {\n\t\t\treturn os.MkdirAll(target, 0o755)\n\t\t}\n\t\treturn copyEmbeddedFile(src, path, target)\n\t})\n}\n\nfunc copyEmbeddedFile(src fs.FS, srcPath, dst string) error {\n\tin, err := src.Open(srcPath)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"engine: open %s: %w\", srcPath, err)\n\t}\n\tdefer func() { _ = in.Close() }()\n\tif err := os.MkdirAll(filepath.Dir(dst), 0o755); err != nil {\n\t\treturn fmt.Errorf(\"engine: ensure parent of %s: %w\", dst, err)\n\t}\n\tout, err := os.OpenFile(dst, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0o644)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"engine: create %s: %w\", dst, err)\n\t}\n\tdefer func() { _ = out.Close() }()\n\tif _, err := io.Copy(out, in); err != nil {\n\t\treturn fmt.Errorf(\"engine: write %s: %w\", dst, err)\n\t}\n\treturn nil\n}\n\n// onceRegistry serializes first-call extraction per cache directory so the\n// rename in ensureLocked happens exactly once across goroutines.","sourceCodeStart":111,"sourceCodeEnd":147,"githubUrl":"https://github.com/mvanhorn/last30days-skill/blob/c7460f6114449ddfe6ea3fc2f23c3d910c0e740c/mcp/internal/engine/extract.go#L111-L147","documentation":"Error \"engine: open %s: %w\" thrown in mvanhorn/last30days-skill.","triggerScenarios":"Fires when the engine cannot open an embedded payload file for reading during cache extraction, indicating a corrupted binary or an unexpected missing asset.","commonSituations":"See trigger scenarios.","solutions":["This indicates a corrupt embedded filesystem in the MCP binary; reinstall or rebuild the MCP server so the embedded last30days script tree is complete."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c7460f6114449ddfe6ea3fc2f23c3d910c0e740c","analyzedAt":"2026-08-15T03:34:49.540Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}