hyperledger/fabric · error
no packages provided to collate
Error message
no packages provided to collate
What it means
Returned by CreateSignedCCDepSpecForInstall's collation path when the owners slice is empty — no owner-signed packages were supplied to merge. Collating zero packages would produce an unendorsed install package, which the function's contract forbids.
Source
Thrown at core/common/ccpackage/ccpackage.go:116
chdr := protoutil.MakeChannelHeader(common.HeaderType_CHAINCODE_PACKAGE, msgVersion, "", epoch)
// create the payload
payl := &common.Payload{Header: &common.Header{ChannelHeader: protoutil.MarshalOrPanic(chdr)}, Data: cipbytes}
paylBytes, err := protoutil.GetBytesPayload(payl)
if err != nil {
return nil, err
}
// here's the unsigned envelope. The install package is endorsed if signingEntity != nil
return &common.Envelope{Payload: paylBytes}, nil
}
// CreateSignedCCDepSpecForInstall creates the final package from a set of packages signed by
// owners. This is similar to how the SDK assembles a TX from various proposal
// responses from the signatures.
func CreateSignedCCDepSpecForInstall(pack []*common.Envelope) (*common.Envelope, error) {
if len(pack) == 0 {
return nil, errors.New("no packages provided to collate")
}
// rules...
// all packages must be endorsed or all packages should not be endorsed
// the chaincode deployment spec should be same
var baseCip *peer.SignedChaincodeDeploymentSpec
var err error
var endorsementExists bool
var endorsements []*peer.Endorsement
for n, r := range pack {
p := &common.Payload{}
if err = proto.Unmarshal(r.Payload, p); err != nil {
return nil, err
}
cip := &peer.SignedChaincodeDeploymentSpec{}
if err = proto.Unmarshal(p.Data, cip); err != nil {
return nil, errView on GitHub (pinned to 2736b63f8f)
Solutions
- Pass at least one package produced by OwnerCreateSignedCCDepSpec
- Check upstream slicing/filtering logic that may have emptied the package list
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at core/common/ccpackage/ccpackage.go:116 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of hyperledger/fabric@2736b63f8f (2026-09-04).
Data as JSON: /api/errors/ddbc64fe22b03a00.
Report an issue: GitHub.