Well, it’s a lot of information there, I wouldn’t know where to begin looking.
As I see it presently whmcs 8.1 (twenty-one) is installed and working but cloudserver is not.
Switcching to cloudserver theme creates a connection problem.
The upgrade is not functioning, why?
Are you stating it’s one of the whmcs settings within the admin control panel?