UBA unauthorized during scheduled Horde build

Hi, I noticed that my Horde builds that are triggered by the scheduler are unable to use UBA with an unauthorized error (see below). When I trigger a build manually it works as expected. Are there any ACL that need to be set for the scheduler and if so what claim should I use?

Thank you!

`Unable to get worker: EpicGames.Horde.Compute.ComputeClientException: User does not have AddComputeTasks permission for cluster default (HTTP status Forbidden)

at EpicGames.Horde.Compute.Clients.ServerComputeClient.ConnectAsync(Nullable`1 clusterId, Requirements requirements, String requestId, ConnectionMetadataRequest connection, ILogger workerLogger, CancellationToken cancellationToken)+MoveNext() in E:\sandbox<redacted>\Sync\Engine\Source\Programs\Shared\EpicGames.Horde\Compute\Clients\ServerComputeClient.cs:line 321

at EpicGames.Horde.Compute.Clients.ServerComputeClient.ConnectAsync(Nullable`1 clusterId, Requirements requirements, String requestId, ConnectionMetadataRequest connection, ILogger workerLogger, CancellationToken cancellationToken)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()

at EpicGames.Horde.Compute.Clients.ServerComputeClient.TryAssignWorkerAsync(Nullable`1 clusterId, Requirements requirements, String requestId, ConnectionMetadataRequest connection, ILogger logger, CancellationToken cancellationToken) in E:\sandbox<redacted>\Sync\Engine\Source\Programs\Shared\EpicGames.Horde\Compute\Clients\ServerComputeClient.cs:line 249

at UnrealBuildTool.UBAHordeSession.AddWorkerAsync(Requirements requirements, UnrealBuildAcceleratorHordeConfig hordeConfig, CancellationToken cancellationToken, Int32 activeCores) in E:\sandbox<redacted>\Sync\Engine\Source\Programs\UnrealBuildTool\Executors\UnrealBuildAccelerator\UBAAgentCoordinatorHorde.cs:line 283

at UnrealBuildTool.UBAHordeSession.AddWorkerAsync(Requirements requirements, UnrealBuildAcceleratorHordeConfig hordeConfig, CancellationToken cancellationToken, Int32 activeCores) in E:\sandbox<redacted>\Sync\Engine\Source\Programs\UnrealBuildTool\Executors\UnrealBuildAccelerator\UBAAgentCoordinatorHorde.cs:line 376

at UnrealBuildTool.UBAAgentCoordinatorHorde.<>c__DisplayClass7_0.<b__0>d.MoveNext() in E:\sandbox<redacted>\Sync\Engine\Source\Programs\UnrealBuildTool\Executors\UnrealBuildAccelerator\UBAAgentCoordinatorHorde.cs:line 894`

Hi there,

Can you please describe a bit more how your Horde authentication is configured? For posterity, there is documentation on Authentication debugging here - what’s most important is a scheduler sourced job will mint tokens for Agents.

You may also need to add:

"clusters": [ { "id": "default", // or whatever the cluster you've defined, here "acl": { "entries": [ { "claim": { "type": "http://epicgames.com/ue/horde/role", "value": "agent" }, "actions": [ "AddComputeTasks" ] },

Julian

I’m using horde authentication for now, adding the claim for agent did resolve my issue thank you! Appreciate the link to the troubleshooting article as well, hadn’t found that one before.