Horde <-> Perforce error "Missing 'View' tag when parsing 'ClientRecord'"

I’m trying to setup Horde server and agent on my workstation computer (just for testing purposes)

The agent’s status is stuck on “Updating Workspace”, and the error it’s stuck on is:

Unhandled exception while running conform: Missing 'View' tag when parsing 'ClientRecord'

The full logs are below. I’ve redacted some information:

Running child process: dotnet “C:\Program Files\Epic Games\Horde\Agent\JobDriver\JobDriver.dll” execute conform -AgentId=PC0002 -SessionId=68b021a06935b4a826a52ad2 -LeaseId=68b024bf6935b4a826a531d9 -WorkingDir=C:\HordeAgent\Sandbox -…
Running conform command in driver
Conforming, lease 68b024bf6935b4a826a531d9
Workspaces:
Identifier=Demo, Stream=//Test_Project/main, Incremental=false Method=name=managedWorkspace&preferNativeClient=true Partitioned=false
Identifier=Demo-Inc, Stream=//Test_Project/main, Incremental=true Method=name=managedWorkspace&preferNativeClient=true Partitioned=false
Using native P4 client for ssl:[PERFORCE_SERVER_URL]:1666
Using native P4 client for ssl:[PERFORCE_SERVER_URL]:1666
Keeping directory C:\HordeAgent\Sandbox\Demo
Keeping directory C:\HordeAgent\Sandbox\Demo-Inc
Reverting changes…
Reverting changes… (0.2s)
Completed in 0.2s
Reverting changes…
Reverting changes… (0.2s)
Completed in 0.2s
Queuing workspaces for sync/populate:
Stream=//Test_Project/main RemoveUntrackedFiles=true MetadataDir=C:\HordeAgent\Sandbox\Demo WorkspaceDir=C:\HordeAgent\Sandbox\Demo\Sync ClientName=Horde+PC0002+Demo
Unhandled exception while running conform: Missing ‘View’ tag when parsing ‘ClientRecord’
Fatal error.
Driver finished with exit code 1

I can tell there’s something wrong with my perforce setup, but I don’t have admin rights myself, and even if I did, I don’t really know what’s the problem I’m supposed to fix. Would really appreciate some guidance on this.

Just to give an update for anyone who stumbles across this… I retried the entire setup from scratch on a separate machine on LAN and I didn’t encounter the problem anymore.

There is a separate forum thread on this forum whose solution says that you need to set server.global.client.views to 1, but FYI I didn’t nee to do that (thread in question: Is horde agent able to create P4 workspace? - #2 by Athena_Tennos)

I still have no idea what causes the problem, because I’m using the same P4 account on both computers so it can’t be a permissions problem.

Same problem.

I was able to fix this by changing the permissions on the Perforce user that Horde is using. The conform workspaces started working immediately after.