I got exactly the same error on-pre kubernetes gitlab with this command:
kubectl -n gitlab exec – backup-utility --restore -t
And the error was fixed with this command:
kubectl -n gitlab exec -it – backup-utility --restore -t
You need to add “-it” option for kubectl exec command since “backup-utility --restore” command requires yes/no prompt.