The problem is that I did not have permission to write to the cmi directory. So first I had to be given write permission for the cmi directory.