argoproj/argo-workflows · error

failed to update sync limit

Error message

failed to update sync limit: %w

What it means

UpdateSyncLimitCommand wraps any error returned by the UpdateSyncLimit gRPC call. It fires when modifying an existing sync limit fails — e.g. the key/configmap does not exist yet, an invalid limit value is supplied, or the caller lacks RBAC permission — with the underlying server error preserved via %w.

Solutions

  1. Create the limit first if it does not exist
  2. Fix the requested limit value or key per the wrapped error
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at cmd/argo/commands/sync/update.go:79 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of argoproj/argo-workflows@35bff19146 (2026-09-03). Data as JSON: /api/errors/05ae1a27fd697ddb. Report an issue: GitHub.

Appendix: source

Thrown at cmd/argo/commands/sync/update.go:79

	if err != nil {
		return err
	}
	serviceClient, err := apiClient.NewSyncServiceClient(ctx)
	if err != nil {
		return err
	}

	req := &syncpkg.UpdateSyncLimitRequest{
		CmName:    cliOpts.cmName,
		Namespace: client.Namespace(ctx),
		Key:       key,
		Limit:     cliOpts.limit,
		Type:      syncpkg.SyncConfigType(syncpkg.SyncConfigType_value[cliOpts.syncType]),
	}

	resp, err := serviceClient.UpdateSyncLimit(ctx, req)
	if err != nil {
		return fmt.Errorf("failed to update sync limit: %w", err)
	}

	fmt.Printf("Sync limit updated\n")
	printSyncLimit(resp.Key, resp.CmName, resp.Namespace, resp.Limit, resp.Type)
	return nil
}

View on GitHub (pinned to 35bff19146)