hyperledger/fabric · error

current config has no consortiums section, but new config do

Error message

current config has no consortiums section, but new config does

What it means

Returned by Bundle.ValidateNew when the current channel config has no consortiums section but the proposed new config introduces one. Adding a consortiums section to an existing application channel is not a legal config transition, so validation aborts.

Source

Thrown at common/channelconfig/bundle.go:161

		for consortiumName, consortium := range cc.Consortiums() {
			nconsortium, ok := ncc.Consortiums()[consortiumName]
			if !ok {
				continue
			}

			for orgName, org := range consortium.Organizations() {
				norg, ok := nconsortium.Organizations()[orgName]
				if !ok {
					continue
				}
				mspID := org.MSPID()
				if mspID != norg.MSPID() {
					return errors.Errorf("consortium %s org %s attempted to change MSP ID from %s to %s", consortiumName, orgName, mspID, norg.MSPID())
				}
			}
		}
	} else if _, okNew := nb.ConsortiumsConfig(); okNew {
		return errors.Errorf("current config has no consortiums section, but new config does")
	}

	return nil
}

// NewBundleFromEnvelope wraps the NewBundle function, extracting the needed
// information from a full configtx
func NewBundleFromEnvelope(env *cb.Envelope, bccsp bccsp.BCCSP) (*Bundle, error) {
	payload, err := protoutil.UnmarshalPayload(env.Payload)
	if err != nil {
		return nil, errors.Wrap(err, "failed to unmarshal payload from envelope")
	}

	configEnvelope, err := configtx.UnmarshalConfigEnvelope(payload.Data)
	if err != nil {
		return nil, errors.Wrap(err, "failed to unmarshal config envelope from payload")
	}

View on GitHub (pinned to 2736b63f8f)

Solutions

  1. Remove the Consortiums group from the config update
  2. Regenerate the update against the correct application-channel base config
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at common/channelconfig/bundle.go:161 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/952432cfe5c35357. Report an issue: GitHub.