Gitlab back up failed

I am setting up a new Gitaly cluster as per Configure Gitaly Cluster | GitLab documentation. the setup works fine, but the GitLab backup fails for repositories and gives the below error.

manager: list refs: rpc error: code = Unknown desc= full method name not found: /gitaly.RefService/ListRefs\n",“pid”:2987352,“time”:“2022-07-11T22:22:08.741Z”}
rake aborted!
Backup::Error: gitaly-backup exit status 1

It looks like the gitlab backup command cannot find the repository paths.