XTLS/Xray-core · error

failed to build geodata configuration

Error message

failed to build geodata configuration

What it means

Config.Build wraps a failure of GeodataConfig.Build while compiling the "geodata" section (loader, path, tags). The geodata settings are invalid, so resource loading would fail at startup.

Solutions

  1. Fix or remove the geodata block
  2. Verify loader type and file paths are valid
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at infra/conf/xray.go:651 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of XTLS/Xray-core@7d214f8b09 (2026-08-15). Data as JSON: /api/errors/dab0dc35df768ffa. Report an issue: GitHub.

Appendix: source

Thrown at infra/conf/xray.go:651

		r, err := c.BurstObservatory.Build()
		if err != nil {
			return nil, errors.New("failed to build burst observatory configuration").Base(err)
		}
		config.App = append(config.App, serial.ToTypedMessage(r))
	}

	if c.Version != nil {
		r, err := c.Version.Build()
		if err != nil {
			return nil, errors.New("failed to build version configuration").Base(err)
		}
		config.App = append(config.App, serial.ToTypedMessage(r))
	}

	if c.Geodata != nil {
		r, err := c.Geodata.Build()
		if err != nil {
			return nil, errors.New("failed to build geodata configuration").Base(err)
		}
		config.App = append(config.App, serial.ToTypedMessage(r))
	}

	var inbounds []InboundDetourConfig

	if len(c.InboundConfigs) > 0 {
		inbounds = append(inbounds, c.InboundConfigs...)
	}

	if len(c.Transport) > 0 {
		return nil, errors.PrintRemovedFeatureError("Global transport config", "streamSettings in inbounds and outbounds")
	}

	for _, rawInboundConfig := range inbounds {
		ic, err := rawInboundConfig.Build()
		if err != nil {
			return nil, errors.New("failed to build inbound config with tag ", rawInboundConfig.Tag).Base(err)

View on GitHub (pinned to 7d214f8b09)