{"id":"5843c5b5e4c018e6","repo":"docker/cli","slug":"failed-to-sign-s-s-w","errorCode":null,"errorMessage":"failed to sign %s:%s: %w","messagePattern":"failed to sign (.+?):(.+?): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/docker-trust/internal/trust/trust_push.go","lineNumber":144,"sourceCode":"\t\t// Initialize the notary repository with a remotely managed snapshot key\n\t\tif err := repo.Initialize([]string{rootKeyID}, data.CanonicalSnapshotRole); err != nil {\n\t\t\treturn NotaryError(repoInfo.Name.Name(), err)\n\t\t}\n\t\t_, _ = fmt.Fprintf(ioStreams.Out(), \"Finished initializing %q\\n\", repoInfo.Name.Name())\n\t\terr = repo.AddTarget(notaryTarget, data.CanonicalTargetsRole)\n\tcase nil:\n\t\t// already initialized and we have successfully downloaded the latest metadata\n\t\terr = AddToAllSignableRoles(repo, notaryTarget)\n\tdefault:\n\t\treturn NotaryError(repoInfo.Name.Name(), err)\n\t}\n\n\tif err == nil {\n\t\terr = repo.Publish()\n\t}\n\n\tif err != nil {\n\t\terr = fmt.Errorf(\"failed to sign %s:%s: %w\", repoInfo.Name.Name(), tag, err)\n\t\treturn NotaryError(repoInfo.Name.Name(), err)\n\t}\n\n\t_, _ = fmt.Fprintf(ioStreams.Out(), \"Successfully signed %s:%s\\n\", repoInfo.Name.Name(), tag)\n\treturn nil\n}\n","sourceCodeStart":126,"sourceCodeEnd":151,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cmd/docker-trust/internal/trust/trust_push.go#L126-L151","documentation":"Error \"failed to sign %s:%s: %w\" thrown in docker/cli.","triggerScenarios":"Thrown at cmd/docker-trust/internal/trust/trust_push.go:144 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"e9452d6e785f6e365712b9d71bd7517591773c86","analyzedAt":"2026-08-01T07:09:22.474Z","schemaVersion":2}