{"record":{"id":"9f8ced8c835013e2","repo":"hashicorp/packer","slug":"version-s-of-s-is-not-listed-in-s-s-index-json","errorCode":null,"errorMessage":"version %s of %s is not listed in %s/%s/index.json","messagePattern":"version (.+?) of (.+?) is not listed in (.+?)/(.+?)/index\\.json","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packer/plugin-getter/remote/getter.go","lineNumber":183,"sourceCode":"\t}\n\tidx, err := parseIndex(data, pluginType)\n\tif err != nil {\n\t\treturn nil, \"\", fmt.Errorf(\"%s: %w\", url, err)\n\t}\n\tg.index = idx\n\treturn idx, dir, nil\n}\n\n// versionURL resolves the version directory URL for the version being\n// fetched, failing when the index does not list it.\nfunc (g *Getter) versionURL(opts plugingetter.GetOptions) (*pluginIndex, string, error) {\n\tidx, dir, err := g.loadIndex(opts)\n\tif err != nil {\n\t\treturn nil, \"\", err\n\t}\n\tversion := opts.VersionString()\n\tif _, ok := idx.versions[version]; !ok {\n\t\treturn nil, \"\", fmt.Errorf(\n\t\t\t\"version %s of %s is not listed in %s/%s/index.json\",\n\t\t\tversion, idx.pluginType, g.BaseURL, dir)\n\t}\n\treturn idx, g.BaseURL + \"/\" + dir + \"/\" + version, nil\n}\n\n// resolveProtocolVersion reads the plugin protocol version from a version's\n// manifest.json and caches it for Validate.\nfunc (g *Getter) resolveProtocolVersion(versionURL, pluginType, version string) error {\n\tif _, ok := g.protVersions[version]; ok {\n\t\treturn nil\n\t}\n\tdata, err := g.fetch(versionURL + \"/\" + pluginType + \"_\" + version + \"_manifest.json\")\n\tif err != nil {\n\t\treturn fmt.Errorf(\n\t\t\t\"%w\\nThe checksum entries of this version carry no plugin protocol version in their names, so the mirrored version must include its manifest.json, as published on releases.hashicorp.com\", err)\n\t}\n\tvar meta plugingetter.ManifestMeta","sourceCodeStart":165,"sourceCodeEnd":201,"githubUrl":"https://github.com/hashicorp/packer/blob/eb36e3c3e48a036f3e8cc94087636ee72e1303c9/packer/plugin-getter/remote/getter.go#L165-L201","documentation":"Remote-mirror getter error from versionURL: the requested plugin version is not present in the mirror's index.json for that plugin type, so its download URL cannot be resolved. The mirror is out of sync or the version was never published there.","triggerScenarios":"Thrown at packer/plugin-getter/remote/getter.go:183 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a version listed in the mirror's index.json","Switch to the official releases.hashicorp.com source or another mirror that carries the version","Publish/sync the version to the mirror if you own it"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"eb36e3c3e48a036f3e8cc94087636ee72e1303c9","analyzedAt":"2026-09-05T13:20:43.127Z","contentChangedAt":"2026-09-05T13:20:43.127Z","schemaVersion":2},"datasetVersion":"2026-09-12T17:17:11.597Z"}