I have this problem upgrading from ArcGIS Server 10.5 to 10.7.1. I also saw other threads (1, 2) related to this but their solutions did not work in my case. Also, there's a patch to solve this problem for previous versions but not for 10.7.1.
I am on a Windows Server 2016 Standard OS.
After the AGS installation has completed, I need to click a button in the browser to continue the upgrade, but I receive the error Upgrade step 2 of 2 : Failed. Refresh auto-deployed services during upgrade.
No matter what, I still cannot proceed with the upgrade.