I had the same issue. But I have noticed that some of my folders within whmcs was owned by root and some by apache user
so I ran this command on my Centos 7 server and update went fine and with no errors:
sudo chown -R apache:apache whmcs_folder
Happy hosting!
Tomas