Below are some errors I have come across when upgrading or installing SharePoint and some suggestions on how they may be resolved.
Failed to connect to the configuration database. Access Denied
System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException ex)
Ensure you are logged in and running the wizard with an account that has dbcreator and dbsecurity access on your SQL instance as well as being a local admin.
Also, make sure you have applied all SharePoint updates to match those applied to other servers in the farm you are attching to.
Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException was thrown. Additional exception information: Failed to upgrade SharePoint Products and Technologies
Check that the web.config file exists in the layouts directory of the hive (post)
SyncUpgradeTimerJob: sleeping for 10 seconds (repeating and causing wizard to hang)
Kill the wizard (process) if it is hanging and open Central Admin to see whether the server has been added to the farm. If it has you can try executing: psconfig -cmd upgrade -inplace b2b -wait -force on the server or if that doesn’t work remove the server from the farm using Central Admin- Opertaions – Servers in Farm – Remove. Re-run the configuration wizard and chose to remove the server from the farm. Ensure all updates applied to the farm servers have been applied to the server and then re-run the config wizard. When complete, rebbot the server.