goharbor/harbor · error

transfer factory for

Error message

transfer factory for %s not found

What it means

Sentinel lookup failure in transfer.GetFactory: no resource transfer factory is registered under the requested name (the transfer implementation key from replication options). Indicates an unknown or unregistered transfer type.

Solutions

  1. Check that the replication options specify a valid transfer type name
  2. Ensure the transfer package's init() registered the factory
  3. Verify no typo in the transfer factory name
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/controller/replication/transfer/transfer.go:84 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of goharbor/harbor@7b2fd08cc5 (2026-08-16). Data as JSON: /api/errors/989bf7e229c6492b. Report an issue: GitHub.

Appendix: source

Thrown at src/controller/replication/transfer/transfer.go:84

	if len(name) == 0 {
		return errors.New("empty name")
	}
	if factory == nil {
		return errors.New("empty resource transfer factory")
	}
	if _, exist := registry[name]; exist {
		return fmt.Errorf("resource transfer factory for %s already exists", name)
	}

	registry[name] = factory
	return nil
}

// GetFactory gets the transfer factory by the specified name
func GetFactory(name string) (Factory, error) {
	factory, exist := registry[name]
	if !exist {
		return nil, fmt.Errorf("transfer factory for %s not found", name)
	}

	return factory, nil
}

View on GitHub (pinned to 7b2fd08cc5)