While deploying agent in one of the target server for OEM 12c cloud control , got error like
Agent Clone Failed Exit Code:1.

Solution:

Get the inventory location

Go to oraInventory location, check the the permissions on the directory.

 

We can see that oracle user has no permission on backup directory. So grant 777 to backup directory.

 

 

Now try to redeploy the agent. It should work suceesfully.