function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jirong HuJirong Hu 

": "mdapiDeployFailed: The metadata deploy operation failed.\

I got this error from this command, any idea why? 
F:\sfdx\bin\sfdx force:mdapi:deploy -u wmcsfdev -c -d force-app-mdapi --testlevel RunLocalTests --json -w 30 -g

"stack": "mdapiDeployFailed: The metadata deploy operation failed.\n    at ALMError (C:\\Windows\\System32\\config\\systemprofile\\AppData\\Local\\sfdx\\client\\7.122.1-5e1c7e6\\node_modules\\salesforce-alm\\dist\\lib\\core\\almError.js:42:19)\n    at MdDeployReportApi._throwErrorIfDeployFailed (C:\\Windows\\System32\\config\\systemprofile\\AppData\\Local\\sfdx\\client\\7.122.1-5e1c7e6\\node_modules\\salesforce-alm\\dist\\lib\\mdapi\\mdapiDeployReportApi.js:354:25)\n    at C:\\Windows\\System32\\config\\systemprofile\\AppData\\Local\\sfdx\\client\\7.122.1-5e1c7e6\\node_modules\\salesforce-alm\\dist\\lib\\mdapi\\mdapiDeployReportApi.js:308:36\n    at tryCatcher
SwethaSwetha (Salesforce Developers) 
HI Jirong,
There could be multiple reasons for this error as it is deployment-specific. Unless the deployment components are investigated, it would be difficult to suggest the exact root cause. 

Found a similar post from past: https://developer.salesforce.com/forums/?id=9060G0000005cLIQAY

If this information helps, please mark the answer as best. Thank you