Try to upgrade sql 2012 sp1 to sp2. Using 'SQLServer2012SP2-KB2958429-x64-ENU.exe' to update sql server 2012. We have TDE encryption turn on for the databases and this server has replication. Running the service pack and when reboot the sql server database engine did not restart and will not start. Try to use the sql server installation to repair but did not work. Later I check on the error log the master data is corrupted. Why a simple upgrade corrupt the master database?
Below is part of the error log:
'2015-08-05 15:42:13.71 spid4s Performing replication job security meta-data upgrades...
2015-08-05 15:42:14.05 spid4s Attempting to load library 'xprepl.dll' into memory. This is an informational message only. No user action is required.
2015-08-05 15:42:14.06 spid4s Using 'xprepl.dll' version '2011.110.2100' to execute extended stored procedure 'xp_repl_encrypt'. This is an informational message only; no user action is required.
2015-08-05 15:42:14.50 spid4s Error: 3906, Severity: 16, State: 1.
2015-08-05 15:42:14.50 spid4s Failed to update database "Azxxxxxxx_SS_20150709134853" because the database is read-only.
2015-08-05 15:42:14.50 spid4s Error: 912, Severity: 21, State: 2.
2015-08-05 15:42:14.50 spid4s Script level upgrade for database 'master' failed because upgrade step 'msdb110_upgrade.sql' encountered error 3906, state 1, severity 16. This is a serious error condition which might interfere with
regular operation and the database will be taken offline. If the error happened during upgrade of the 'master' database, it will prevent the entire SQL Server instance from starting. Examine the previous errorlog entries for errors, take the appropriate corrective
actions and re-start the database so that the script upgrade steps run to completion.
2015-08-05 15:42:14.51 spid4s Error: 3417, Severity: 21, State: 3.
2015-08-05 15:42:14.51 spid4s Cannot recover the master database. SQL Server is unable to run. Restore master from a full backup, repair it, or rebuild it. For more information about how to rebuild the master database, see SQL
Server Books Online.
2015-08-05 15:42:14.51 spid4s SQL Server shutdown has been initiated
2015-08-05 15:42:14.51 spid4s SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.