The following error has occurred attempted to perform an unauthorized operation

Attempted to perform an unauthorized operation error when you set up or update SQL Server instances This article helps you resolve the problem where setting up or updating SQL Server instances fails and returns an error message. Applies to: В SQL Server 2019 on Windows, SQL Server 2017 on Windows, SQL Server 2016, SQL […]

Содержание

  1. Attempted to perform an unauthorized operation error when you set up or update SQL Server instances
  2. Symptoms
  3. Cause
  4. Resolution
  5. More information
  6. Attempted to perform an unauthorized operation error when you set up or update SQL Server instances
  7. Symptoms
  8. Cause
  9. Resolution
  10. More information
  11. The following error has occurred attempted to perform an unauthorized operation
  12. Answered by:
  13. Question
  14. Answers
  15. The following error has occurred attempted to perform an unauthorized operation
  16. Answers
  17. All replies

This article helps you resolve the problem where setting up or updating SQL Server instances fails and returns an error message.

Applies to: В SQL Server 2019 on Windows, SQL Server 2017 on Windows, SQL Server 2016, SQL Server 2014, SQL Server 2012
Original KB number: В 4594205

Symptoms

Consider the following scenario:

You have a computer that’s running Windows 10, version 20H2 and the Microsoft Edge browser of any version from 84.0.522.52 through 86.0.622.55.

You try to update an existing instance of Microsoft SQL Server 2012 through 2019, or install a new SQL Server instance together with an update (slipstream).

In this scenario, a failure occurs during the update process, and you receive the following error message:

Attempted to perform an unauthorized operation.

Additionally, an entry is logged in the SQL Server Setup log file, Detail.txt, that indicates that the failure occurred while Attempting to open registry subkey Microsoft Edge.

Cause

The SQL Server Setup process can’t enumerate the following registry subkey:

Resolution

To resolve this problem, use one of the following methods, as appropriate:

Method 1

If you’re running 64-bit Windows 10, version 20H2 (19042.xxx), you must install the Edge browser version 86.0.622.56 or a later version that includes the fix for this problem. To see the version number in Edge, select Settings > About Edge.

To manually update the Edge browser, follow these steps:

Start Microsoft Edge.

Select the Settings (ellipsis) button in the top-right corner.

On the Settings menu, select Help and feedback > About Microsoft Edge.

Edge automatically checks for updates.

To complete the Edge update installation, select Restart.

Method 2

Follow the steps in this method carefully. Serious problems might occur if you modify the registry incorrectly. Before you modify it, back up the registry for restoration in case problems occur.

Add the Full Control permission to the Administrators account. To do this, follow these steps:

Start Registry Editor. To do this, select Start, type regedit, and then select Registry Editor in the Search results.

In Registry Editor, right-click the HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstallMicrosoft Edge subkey, and then select Permissions.

In the Permissions window that opens, select Advanced.

At the top of the Advanced Security Settings window, select Change next to the listed owner.

In the Select User, Computer, Service Account, or Group window, type the name of your Windows user account (or your email address if you have a Microsoft account) in the Enter the object name to select box, and then select Check Names to validate the account name.

Select OK two times.

In the Permissions window, select the Users group, and then select the Allow check box for the Full Control permissions.

To grant permissions to only your user account instead of the Users group, select Add, follow the steps in the Add wizard, and then grant the Full Control permissions to that account.

Select OK to return to the main Registry Editor window.

More information

SQL Server Setup expects administrators to have read/write access permissions on all subkeys that are under HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall , where Setup looks for installed SQL Server updates. However, in some cases, the system provides administrators only read permissions on subkeys-as it does, for example, on Microsoft Edge.

A future SQL Server servicing update will change the access requirement so that Setup will need only read permissions on all subkeys that are under HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall .

Источник

Attempted to perform an unauthorized operation error when you set up or update SQL Server instances

This article helps you resolve the problem where setting up or updating SQL Server instances fails and returns an error message.

Applies to: В SQL Server 2019 on Windows, SQL Server 2017 on Windows, SQL Server 2016, SQL Server 2014, SQL Server 2012
Original KB number: В 4594205

Symptoms

Consider the following scenario:

You have a computer that’s running Windows 10, version 20H2 and the Microsoft Edge browser of any version from 84.0.522.52 through 86.0.622.55.

You try to update an existing instance of Microsoft SQL Server 2012 through 2019, or install a new SQL Server instance together with an update (slipstream).

In this scenario, a failure occurs during the update process, and you receive the following error message:

Attempted to perform an unauthorized operation.

Additionally, an entry is logged in the SQL Server Setup log file, Detail.txt, that indicates that the failure occurred while Attempting to open registry subkey Microsoft Edge.

Cause

The SQL Server Setup process can’t enumerate the following registry subkey:

Resolution

To resolve this problem, use one of the following methods, as appropriate:

Method 1

If you’re running 64-bit Windows 10, version 20H2 (19042.xxx), you must install the Edge browser version 86.0.622.56 or a later version that includes the fix for this problem. To see the version number in Edge, select Settings > About Edge.

To manually update the Edge browser, follow these steps:

Start Microsoft Edge.

Select the Settings (ellipsis) button in the top-right corner.

On the Settings menu, select Help and feedback > About Microsoft Edge.

Edge automatically checks for updates.

To complete the Edge update installation, select Restart.

Method 2

Follow the steps in this method carefully. Serious problems might occur if you modify the registry incorrectly. Before you modify it, back up the registry for restoration in case problems occur.

Add the Full Control permission to the Administrators account. To do this, follow these steps:

Start Registry Editor. To do this, select Start, type regedit, and then select Registry Editor in the Search results.

In Registry Editor, right-click the HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstallMicrosoft Edge subkey, and then select Permissions.

In the Permissions window that opens, select Advanced.

At the top of the Advanced Security Settings window, select Change next to the listed owner.

In the Select User, Computer, Service Account, or Group window, type the name of your Windows user account (or your email address if you have a Microsoft account) in the Enter the object name to select box, and then select Check Names to validate the account name.

Select OK two times.

In the Permissions window, select the Users group, and then select the Allow check box for the Full Control permissions.

To grant permissions to only your user account instead of the Users group, select Add, follow the steps in the Add wizard, and then grant the Full Control permissions to that account.

Select OK to return to the main Registry Editor window.

More information

SQL Server Setup expects administrators to have read/write access permissions on all subkeys that are under HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall , where Setup looks for installed SQL Server updates. However, in some cases, the system provides administrators only read permissions on subkeys-as it does, for example, on Microsoft Edge.

A future SQL Server servicing update will change the access requirement so that Setup will need only read permissions on all subkeys that are under HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall .

Источник

The following error has occurred attempted to perform an unauthorized operation

This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.

Answered by:

Question

In the installation process, i am getting below error for Database engine service,reporting service and integration service.

Feature: Database Engine Services
Status: Failed: see logs for details
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x84BB0001
Error description: Attempted to perform an unauthorized operation.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.2100.60&EvtType=0x21C1C994%400xBB814387&EvtType=0x21C1C994%400xBB81438

64 bit machine,HP probook,I5 processor,windows 8 OS.

  • Moved by Shanky_621 MVP Saturday, May 24, 2014 10:03 AM Related forum for SQL Server setup

Answers

Issue of this kind boils down to fact that the installable was corrupt or missing some files although there can be exception.Can you post total content of summary.txt file. Which version and edition of SQL Server you are trying to install ?

1 Make sure you don’t run setup from the ISO file. Extract the installable file using winzip or winrar to local drive and then start installation from the local drive

2. Make sure you remove previous failed installation from add remove programs completely.

3. Make sure you right click on setup.exe file and select run as administrator when you want to start the SQL Server installation

4.Make sure you stop antivirus running on machine for time being this installation is running

Hope this helps

Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.

Источник

The following error has occurred attempted to perform an unauthorized operation

TITLE: Microsoft SQL Server 2008 R2 Setup
——————————

The following error has occurred:

Attempted to perform an unauthorized operation.

Click ‘Retry’ to retry the failed action, or click ‘Cancel’ to cancel this action and continue setup.

Overall summary:
Final result: SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then rerun SQL Server Setup.
Exit code (Decimal): -2068119551
Exit facility code: 1211
Exit error code: 1
Exit message: SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then rerun SQL Server Setup.
Start time: 2013-01-25 10:59:08
End time: 2013-01-25 11:13:30
Requested action: Install
Log with failure: C:Program FilesMicrosoft SQL Server100Setup BootstrapLog20130125_105747Detail.txt
Exception help link: http%3a%2f%2fgo.microsoft.com%2ffwlink%3fLinkId%3d20476%26ProdName%3dMicrosoft%2bSQL%2bServer%26EvtSrc%3dsetup.rll%26EvtID%3d50000%26ProdVer%3d10.50.1600.1%26EvtType%3d0x6121810A%400x92D13C14

Machine Properties:
Machine name: VARUNGUPTA-PC
Machine processor count: 2
OS version: Windows Vista
OS service pack: Service Pack 2
OS region: United States
OS language: English (United States)
OS architecture: x86
Process architecture: 32 Bit
OS clustered: No

Product features discovered:
Product Instance Instance ID Feature Language Edition Version Clustered
Sql Server 2008 SQLEXPRESS MSSQL10.SQLEXPRESS Database Engine Services 1033 Express Edition 10.3.5500.0 No
Sql Server 2008 SQLEXPRESS MSSQL10.SQLEXPRESS SQL Server Replication 1033 Express Edition 10.3.5500.0 No

Package properties:
Description: SQL Server Database Services 2008 R2
ProductName: SQL Server 2008 R2
Type: RTM
Version: 10
SPLevel: 0
Installation location: d:a716bfc2c0347dcd1c0fc7fcedc92a06x86setup
Installation edition: EXPRESS_ADVANCED

User Input Settings:
ACTION: Install
ADDCURRENTUSERASSQLADMIN: True
AGTSVCACCOUNT: NT AUTHORITYNETWORK SERVICE
AGTSVCPASSWORD: *****
AGTSVCSTARTUPTYPE: Disabled
ASBACKUPDIR: Backup
ASCOLLATION: Latin1_General_CI_AS
ASCONFIGDIR: Config
ASDATADIR: Data
ASDOMAINGROUP:
ASLOGDIR: Log
ASPROVIDERMSOLAP: 1
ASSVCACCOUNT:
ASSVCPASSWORD: *****
ASSVCSTARTUPTYPE: Automatic
ASSYSADMINACCOUNTS:
ASTEMPDIR: Temp
BROWSERSVCSTARTUPTYPE: Disabled
CONFIGURATIONFILE:
CUSOURCE:
ENABLERANU: True
ENU: True
ERRORREPORTING: True
FARMACCOUNT:
FARMADMINPORT: 0
FARMPASSWORD: *****
FEATURES: SQLENGINE,REPLICATION,SSMS
FILESTREAMLEVEL: 0
FILESTREAMSHARENAME:
FTSVCACCOUNT:
FTSVCPASSWORD: *****
HELP: False
IACCEPTSQLSERVERLICENSETERMS: False
INDICATEPROGRESS: False
INSTALLSHAREDDIR: C:Program FilesMicrosoft SQL Server
INSTALLSHAREDWOWDIR: C:Program FilesMicrosoft SQL Server
INSTALLSQLDATADIR:
INSTANCEDIR: C:Program FilesMicrosoft SQL Server
INSTANCEID: MSSQLSERVER
INSTANCENAME: MSSQLSERVER
ISSVCACCOUNT: NT AUTHORITYNetworkService
ISSVCPASSWORD: *****
ISSVCSTARTUPTYPE: Automatic
NPENABLED: 0
PASSPHRASE: *****
PCUSOURCE:
PID: *****
QUIET: False
QUIETSIMPLE: False
ROLE: AllFeatures_WithDefaults
RSINSTALLMODE: FilesOnlyMode
RSSVCACCOUNT: NT AUTHORITYNETWORK SERVICE
RSSVCPASSWORD: *****
RSSVCSTARTUPTYPE: Automatic
SAPWD: *****
SECURITYMODE:
SQLBACKUPDIR:
SQLCOLLATION: Latin1_General_CI_AI
SQLSVCACCOUNT: NT AUTHORITYNETWORK SERVICE
SQLSVCPASSWORD: *****
SQLSVCSTARTUPTYPE: Automatic
SQLSYSADMINACCOUNTS: VarunGupta-PCVarun Gupta
SQLTEMPDBDIR:
SQLTEMPDBLOGDIR:
SQLUSERDBDIR:
SQLUSERDBLOGDIR:
SQMREPORTING: True
TCPENABLED: 0
UIMODE: AutoAdvance
X86: False

Configuration file: C:Program FilesMicrosoft SQL Server100Setup BootstrapLog20130125_105747ConfigurationFile.ini

Detailed results:
Feature: Database Engine Services
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Passed

Feature: SQL Server Replication
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Passed

Feature: Management Tools — Basic
Status: Passed
MSI status: Passed
Configuration status: Passed

Rules with failures:

Scenario specific rules:

Rules report file: C:Program FilesMicrosoft SQL Server100Setup BootstrapLog20130125_105747SystemConfigurationCheck_Report.htm

  • Edited by VARUN GUPTA 1992 Friday, January 25, 2013 5:45 AM
  • Moved by Alberto Morillo MVP Friday, January 25, 2013 1:48 PM More appropriate

Answers

Actually I had no alternative but to FORMAT my OS, which I did and now I have successfully installed SQL Server 2008 R2 with Advanced Services and Visual Studio. As far as i have seen I havn’t found SQL Server 2008 R2 SP2, I guess SP1 is highest available pack.

Thanks for help,

Please share with us the following file:

C:Program FilesMicrosoft SQL Server100Setup BootstrapLog20130125_105747Detail.txt

You can upload it to your public folder on skydrive.live.com, then share the link to the public folder with us.

  • Edited by Alberto Morillo MVP Friday, January 25, 2013 2:47 PM

The file MediaInfo.xml cannot be found:

2013-01-25 21:15:06 Slp: Exception type: System.IO.FileNotFoundException

2013-01-25 21:15:06 Slp: Message:

2013-01-25 21:15:06 Slp: Could not find file ‘d:d04b532bd675378d17MediaInfo.xml’.

Please do not close the installation center while installing SQL Server, there is a bug with MSXML6. For more information:

If the above does not apply in this issue, you can also try to install SQL Server 2008 R2 Express Edition with Advanced Services and SP1 included from the following link:

Hope this helps.

  • Edited by Alberto Morillo MVP Friday, January 25, 2013 4:42 PM

Recently, its giving this error

SQL Server Setup has encountered the following error:

The given key was not present in the dictionary..

Also have attached the new error file

Please download the media again and run SQLEXPRADV_x64_ENU.exe /X to extract the content of the executable into your hard drive. Run setup.exe from the folder where you extracted the content of the media.

Make sure the disk drive is not encrypted or compressed.

If Alberto’s suggestions didn’t solve the problem please share/upload whole SQL Server setup log under

C:Program FilesMicrosoft SQL Server100Setup BootstrapLog20130125_105747

to file sharing service like SkyDrive.com.

FAQ
—-
Regards,
Ahmed Ibrahim
SQL Server Setup Team
My Blog
This posting is provided «AS IS» with no warranties, and confers no rights. Please remember to click «Mark as Answer» and «Vote as Helpful» on posts that help you.
This can be beneficial to other community members reading the thread.

I was finally able to get out of this issue. but later got stuck here with following error

The following error has occurred:

Attempted to perform an unauthorized operation.

Click ‘Retry’ to retry the failed action, or click ‘Cancel’ to cancel this action and continue setup.

Also tried by running as administrator.

It failed to install

Data Engine Services

SQL Server Replication

Full — Text Search

Overall summary:
Final result: SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then rerun SQL Server Setup.
Exit code (Decimal): -2068119551
Exit facility code: 1211
Exit error code: 1
Exit message: SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then rerun SQL Server Setup.
Start time: 2013-01-27 01:11:08
End time: 2013-01-27 01:23:26
Requested action: Install
Log with failure: C:Program FilesMicrosoft SQL Server100Setup BootstrapLog20130127_010951Detail.txt
Exception help link: http%3a%2f%2fgo.microsoft.com%2ffwlink%3fLinkId%3d20476%26ProdName%3dMicrosoft%2bSQL%2bServer%26EvtSrc%3dsetup.rll%26EvtID%3d50000%26ProdVer%3d10.50.2500.0%26EvtType%3d0x6121810A%400x92D13C14

Machine Properties:
Machine name: VARUNGUPTA-PC
Machine processor count: 2
OS version: Windows Vista
OS service pack: Service Pack 2
OS region: United States
OS language: English (United States)
OS architecture: x86
Process architecture: 32 Bit
OS clustered: No

Product features discovered:
Product Instance Instance ID Feature Language Edition Version Clustered
Sql Server 2008 R2 SQLEXPRESS MSSQL10_50.SQLEXPRESS Database Engine Services 1033 Express Edition 10.51.2500.0 No
Sql Server 2008 R2 SQLEXPRESS MSSQL10_50.SQLEXPRESS SQL Server Replication 1033 Express Edition 10.51.2500.0 No
Sql Server 2008 R2 SQLEXPRESS MSSQL10_50.SQLEXPRESS Full-Text Search 1033 Express Edition 10.51.2500.0 No
Sql Server 2008 R2 SQLEXPRESS MSRS10_50.SQLEXPRESS Reporting Services 1033 10.51.2500.0 No
Sql Server 2008 R2 Management Tools — Basic 1033 Express Edition 10.51.2500.0 No

Package properties:
Description: SQL Server Database Services 2008 R2
ProductName: SQL Server 2008 R2
Type: RTM
Version: 10
Installation location: c:c49037ca8dfa571dfe4480d170x86setup
Installation edition: EXPRESS_ADVANCED

Slipstream: True
SP Level 1

User Input Settings:
ACTION: Install
ADDCURRENTUSERASSQLADMIN: True
AGTSVCACCOUNT: NT AUTHORITYNETWORK SERVICE
AGTSVCPASSWORD: *****
AGTSVCSTARTUPTYPE: Disabled
ASBACKUPDIR: Backup
ASCOLLATION: Latin1_General_CI_AS
ASCONFIGDIR: Config
ASDATADIR: Data
ASDOMAINGROUP:
ASLOGDIR: Log
ASPROVIDERMSOLAP: 1
ASSVCACCOUNT:
ASSVCPASSWORD: *****
ASSVCSTARTUPTYPE: Automatic
ASSYSADMINACCOUNTS:
ASTEMPDIR: Temp
BROWSERSVCSTARTUPTYPE: Disabled
CONFIGURATIONFILE:
CUSOURCE:
ENABLERANU: True
ENU: True
ERRORREPORTING: True
FARMACCOUNT:
FARMADMINPORT: 0
FARMPASSWORD: *****
FEATURES: SQLENGINE,REPLICATION,FULLTEXT,RS
FILESTREAMLEVEL: 0
FILESTREAMSHARENAME:
FTSVCACCOUNT: NT AUTHORITYLOCAL SERVICE
FTSVCPASSWORD: *****
HELP: False
INDICATEPROGRESS: False
INSTALLSHAREDDIR: c:Program FilesMicrosoft SQL Server
INSTALLSHAREDWOWDIR: C:Program FilesMicrosoft SQL Server
INSTALLSQLDATADIR:
INSTANCEDIR: c:Program FilesMicrosoft SQL Server
INSTANCEID: VARUNGUPTA
INSTANCENAME: VARUNGUPTA
ISSVCACCOUNT: NT AUTHORITYNetworkService
ISSVCPASSWORD: *****
ISSVCSTARTUPTYPE: Automatic
NPENABLED: 0
PASSPHRASE: *****
PCUSOURCE: c:c49037ca8dfa571dfe4480d170PCUSOURCE
PID: *****
QUIET: False
QUIETSIMPLE: False
ROLE:
RSINSTALLMODE: DefaultNativeMode
RSSVCACCOUNT: NT AUTHORITYNETWORK SERVICE
RSSVCPASSWORD: *****
RSSVCSTARTUPTYPE: Automatic
SAPWD: *****
SECURITYMODE: SQL
SQLBACKUPDIR:
SQLCOLLATION: Latin1_General_CI_AI
SQLSVCACCOUNT: NT AUTHORITYNETWORK SERVICE
SQLSVCPASSWORD: *****
SQLSVCSTARTUPTYPE: Automatic
SQLSYSADMINACCOUNTS: VarunGupta-PCVarun Gupta
SQLTEMPDBDIR:
SQLTEMPDBLOGDIR:
SQLUSERDBDIR:
SQLUSERDBLOGDIR:
SQMREPORTING: True
TCPENABLED: 0
UIMODE: AutoAdvance
X86: False

Configuration file: C:Program FilesMicrosoft SQL Server100Setup BootstrapLog20130127_010951ConfigurationFile.ini

Detailed results:
Feature: Database Engine Services
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Passed

Feature: SQL Server Replication
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Passed

Feature: Full-Text Search
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Passed

Feature: Reporting Services
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Passed

Источник

  • Remove From My Forums
  • Question

  • I am trying to install SQL Server 2008 and i encounter an error ‘The following error has occurred: Attempted to perform an unauthorized operation. Click ‘Retry’ to retry the failed action, or click ‘Cancel’ to cancel this action and continue setup’

    the Log file looks like this;

    Overall summary:
      Final result:                  The patch installer has failed to update the shared features. To determine the reason for failure, review the log files.
      Exit code (Decimal):           -2068709375
      Exit facility code:            1202
      Exit error code:               1
      Exit message:                   A failure was detected for a previous installation, patch, or repair during configuration for features [SQL_Browser_Redist,]. In order to apply this patch package (KB968369),
    you must resolve any issues with the previous operation that failed. View the summary.txt log to determine why the previous operation failed.
      Start time:                    2016-08-19 08:33:04
      End time:                      2016-08-19 08:34:17
      Requested action:              Patch
      Log with failure:              C:Program Files (x86)Microsoft SQL Server100Setup BootstrapLog20160819_083248Detail.txt
      Exception help link:           http%3a%2f%2fgo.microsoft.com%2ffwlink%3fLinkId%3d20476%26ProdName%3dMicrosoft%2bSQL%2bServer%26EvtSrc%3dsetup.rll%26EvtID%3d50000%26ProdVer%3d10.0.2531.0%26EvtType%3d0x7281D40D%400xC2B0B50B%401202%401

    Machine Properties:
      Machine name:                  SSSEBAGGALA-PC
      Machine processor count:       4
      OS version:                    Windows Vista
      OS service pack:               Service Pack 1
      OS region:                     United States
      OS language:                   English (United States)
      OS architecture:               x64
      Process architecture:          32 Bit
      OS clustered:                  No

    Product features discovered:
      Product              Instance             Instance ID                    Feature                
                     Language             Edition              Version         Clustered 
      Sql Server 2008                                                          Management Tools — Basic  
                  1033                 Standard Edition     10.0.1600.22    No        
      Sql Server 2008                                                          Management Tools — Complete  
               1033                 Standard Edition     10.0.1600.22    No        
      Sql Server 2008                                                          Client Tools Connectivity  
                 1033                 Standard Edition     10.0.1600.22    No        
      Sql Server 2008                                                          Client Tools Backwards Compatibility
        1033                 Standard Edition     10.0.1600.22    No        
      Sql Server 2008                                                          Client Tools SDK      
                      1033                 Standard Edition     10.0.1600.22    No        
      Sql Server 2008                                                          Integration Services    
                    1033                 Standard Edition     10.0.1600.22    No        

    Package properties:
      Description:                   SQL Server Database Services 2008
      SQLProductFamilyCode:          {628F8F38-600E-493D-9946-F4178F20A8A9}
      ProductName:                   SQL2008
      Type:                          RTM
      Version:                       10
      SPLevel:                       1
      KBArticle:                     KB968369
      KBArticleHyperlink:            http://support.microsoft.com/?kbid=968369
      PatchType:                     SP
      AssociateHotfixBuild:          0
      Platform:                      x86
      PatchLevel:                    10.1.2531.0
      ProductVersion:                10.0.1600.22
      GDRReservedRange:              10.0.1000.0:10.0.1099.0;10.0.3000.0:10.0.3099.0
      PackageName:                   SQLServer2008-KB968369-x86.exe
      Installation location:         d:83c7b43e2e2ee7cc8x86setup

    User Input Settings:
      ACTION:                        Patch
      ALLINSTANCES:                  False
      CLUSTERPASSIVE:                False
      CONFIGURATIONFILE:             
      HELP:                          False
      INDICATEPROGRESS:              False
      INSTANCENAME:                  <empty>
      QUIET:                         False
      QUIETSIMPLE:                   False
      X86:                           False

    Rules with failures:

    Global rules:

    There are no scenario-specific rules.

    Rules report file:               The rule result report file is not available.

    Exception summary:
    The following is an exception stack listing the exceptions in outermost to innermost order
    Inner exceptions are being indented

    Exception type: Microsoft.SqlServer.Chainer.Infrastructure.ChainerInvalidOperationException
        Message: 

            A failure was detected for a previous installation, patch, or repair during configuration for features [SQL_Browser_Redist,]. In order to apply this patch package (KB968369), you must resolve any issues with the previous operation
    that failed. View the summary.txt log to determine why the previous operation failed.
        Data: 
          ChainerInvalidOperationExceptionData = ProductInstallProperty
          DisableWatson = true
        Stack: 
            at Microsoft.SqlServer.Configuration.MsiExtension.ProductInstallProperty.CheckFailedConfiguration()
            at Microsoft.SqlServer.Configuration.MsiExtension.ProductInstallProperty.CollectProductData()
            at Microsoft.SqlServer.Configuration.FeatureTreeConfigurationBase.LoadFeatureTreeDefinitionAllInstances()
            at Microsoft.SqlServer.Configuration.FeatureTreeConfigurationBase.LoadFeatureTreeDefinition()
            at Microsoft.SqlServer.Configuration.FeatureTreeConfigurationBase..ctor(ServiceContainer context)
            at Microsoft.SqlServer.Configuration.PatchFeatureTree..ctor(ServiceContainer context)
            at Microsoft.SqlServer.Configuration.PatchFeatureTree.InitializePatchFeatureTree(ServiceContainer context)
            at Microsoft.SqlServer.Configuration.SetupExtension.InitializeUIDataAction.ExecuteAction(String actionId)
            at Microsoft.SqlServer.Chainer.Infrastructure.Action.Execute(String actionId, TextWriter errorStream)
            at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.InvokeAction(WorkflowObject metabase, TextWriter statusStream)
            at Microsoft.SqlServer.Setup.Chainer.Workflow.PendingActions.InvokeActions(WorkflowObject metaDb, TextWriter loggingStream)

            

Answers

  • So As I can see you are trying to apppy SQL Server 2008 Sp1. First I would suggest you to apply SQL Server 2008 Sp4 so that your SQL Server is in supported state but before that to comment further I need to you upload output of C:Program
    Files (x86)Microsoft SQL Server100Setup BootstrapLog20160819_083248Detail.txt on shared drive and after doing that paste the link here so that I can see the contents. Dont just paste it here.

    It seems like there is previous broken instance of SQl Server or its component lying on your machine. It would be good
    to first uninstall complete component from your machine then install SQL Server 2008 again and then install Sp4


    Cheers,

    Shashank

    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it

    My TechNet Wiki Articles



    MVP

    • Proposed as answer by

      Monday, August 22, 2016 6:09 AM

    • Marked as answer by
      Lin LengMicrosoft contingent staff
      Friday, September 2, 2016 1:30 AM

  • A failure was detected for a previous installation, patch, or repair during configuration for features [SQL_Browser_Redist,].
    In order to apply this patch package (KB968369), you must resolve any issues
    with the previous operation that failed. View the summary.txt log to determine why the previous operation failed.

    >>As it says clearly the previous installation which was done RTM is not properly being installed in the
    machine & you need to repair it first then try it.

    How to: Repair a SQL Server 2008 R2 Installation
    https://technet.microsoft.com/en-us/library/cc646006%28SQL.105%29.aspx?f=255&MSPPError=-2147217396

    though it is 2008R2 the steps will be same.

    if there is no impact then uninstall clearly then try it again then apply latest Service pack instead repair.


    Regards, S_NO «_»

    • Proposed as answer by
      Lin LengMicrosoft contingent staff
      Monday, August 22, 2016 6:09 AM
    • Marked as answer by
      Lin LengMicrosoft contingent staff
      Friday, September 2, 2016 1:30 AM

Hi,

I’m installing SQL Server 2008 x64 developer edition on Windows Server 2008 x64. I installed the SQL Server 2008 many times with no issues.

But this time I have changed Shared feature directories as below:

Shared feature directory as D:Program Files

Shared feature directory (x86) as D:Program Files(x86)

and now ending up with the below error:

TITLE: Microsoft SQL Server 2008 Setup

——————————

The following error has occurred:

Attempted to perform an unauthorized operation.

Click ‘Retry’ to retry the failed action, or click ‘Cancel’ to cancel this action and continue setup.

Is changing the above directories will be the reason for the SQL Server 2008 installation failure?

Is this allowed to change the above directories Shared feature directory & Shared feature directory (x86) from default directories C:Program Files & C:Program Files(x86)?

I even tried the Repair option and then again getting the same error

Thanks

Vidhya Sagar

SSCrazy Eights

Points: 8216

hmm why do you want 64bit executable’s in 32 bit folder? Can you try to change the path to some other folder and then give a try?

soulesidibe2011

SSC Eights!

Points: 943

is there any fix for this post, i’m having the same issue ?

Andre Guerreiro

SSCertifiable

Points: 7319

Are you using a administrator account to install?

It seems like a restriction on the Windows side to me.

Best regards,

Andre Guerreiro Neto

Database Analyst
http://www.softplan.com.br
MCITPx1/MCTSx2/MCSE/MCSA

SQListic

SSCertifiable

Points: 6904

ppersaud

SSC Enthusiast

Points: 101

I have just had this error

«The following error has occurred:
Attempted to perform an unauthorized operation.
Click ‘Retry’ to retry the failed action, or click ‘Cancel’ to cancel this action and continue setup.»

This failed to work for both SQL 2008 R2 and SQL 2012 Express installations, I had previously disabled the Anti Virus which was Bullguard but had to subsequently completely uninstall the Anti Virus software. Once this had been removed the SQL software installed perfectly.

mohammadsj

Newbie

Points: 2

In-place upgrade System Center 2012 R2 DPM to System Center 2016 on Windows Server 2012 R2 with update SQL Server 2012 to SQL Server 2016Как известно, продукты линейки Microsoft System Center 2012 R2 завершают свой жизненный цикл, так как подходит к концу срок расширенной поддержки, который завершается 11.07.2022. Кроме того, на подходе срок поддержки SQL Server 2012 с той же датой Extended End Date (без учёта расширенной программы Extended Security Update). Поэтому, если вы всё ещё используете старую линейку System Center 2012 R2, то самое время подумать о поднятии её версии.

В данной заметке будет рассмотрен пример обновления System Center 2012 R2 Data Protection Manager (DPM) до уровня System Center 2016 с последующим повышением экземпляра SQL Server, используемого для DPM, с версии SQL Server 2012 до версии SQL Server 2016.

Известные проблемы и выбор пути обновления

На этапе планирования, помимо обязательного чтения официальных рекомендаций от Microsoft, не будет лишним изучить опыт использования новых версий ПО, которым делятся пользователи в Интернете. Удалось найти обсуждения, как минимум, двух проблем, получивших некоторый резонанс:

  1. Проблемы с работой Modern Backup Storage (MBS) поверх ReFS в System Center 2016/2019 DPM, развёрнутом на базе Windows Server 2016/2019. Большую ветку обсуждения можно найти здесь: TechNet Archived Forums : DPM 2016 MBS Performance downward spiral.
    В качестве обходного решения сообщество предлагает использовать для развёртывания DPM 2016 устаревшую ОС Windows Server 2012 R2, так как это исключает возможность безусловного использования файловой системы ReFS под MBS со стороны DPM. Официального же решения этой проблемы со стороны Microsoft, как я понял, нет до сих пор. Учитывая то, что данная ветка обсуждения является архивной, был проведён опрос ряда коллег, работающих с DPM и они подтвердили то, что проблема действительно ещё актуальна.
  2. Процессы DPM 2016 могут вести себя нештатно вести после установки обновления Update Rollup 10: TechNet Archived Forums : DPM 2016 crashes after installing UR10.
    Чтобы обсудить предложенное в обсуждении обходное решение с заменой библиотеки RHL.dll, я связался по электронной почте с Grant Thompson и он пояснил, что описанный им неофициальный патч больше не нужен, так как исправление включено в обновлённую редакцию Update Rollup 10, которая доступна на Windows Update/WSUS.

Таким образом, с учётом первой проблемы, на данном этапе нами выбрано обновление методом In-Place Upgrade до уровня System Center 2016 DPM UR10 на базе уже работающего сервера с Windows Server 2012 R2 с последующим обновлением использующегося под DPM экземпляра SQL Server 2012 SP4 до уровня SQL Server 2016 SP3 (также методом In-Place Upgrade). Ведь «модные фичи» для системы резервного копирования, зачастую гораздо менее важный аргумент, чем стабильность и предсказуемость этой системы.

При планировании обновлений всегда стоит учитывать официальный срок поддержки не только исходных обновляемых версий продуктов, но и целевых версий. SQL Server 2016, на который мы будем обновляться,  может использоваться в продуктивных развёртываниях ещё длительное время, так как срок поддержки для SQL Server 2016 SP3 – 13.06.2026. Однако, если говорить о Windows Server 2012 R2, то стоит помнить, что эта версия ОС тоже уже на завершающем этапе своего жизненного цикла, так как срок её поддержки — 09.10.2023 (без учёта расширенной программы Extended Security Update). Полагаю, что если проблемы с МBS на ReFS в новых версиях DPM & Windows Server не будут решены со стороны Microsoft до последней обозначенной даты, то перед нами встанет резонный вопрос выбора альтернативного продукта резервного копирования.

Общий план обновления

Принципиальным отличием от ранее проводимых обновлений DPM (по выше описанным причинам) будет отсутствие необходимости переустановки ОС и нового развёртывания SQL Server и DPM. По сути, все проводимые обновления мы будем выполнять методом In-Place Upgrade.

В рассматриваемом примере мы будем выполнять обновление двух серверов DPM — первичного и вторичного в контексте Disaster Recovery (DR) с версией SC 2012 R2 DPM Update Rollup 14 (4.2.1603), каждый из которых работает с локальным экземпляром SQL Server 2012 Standard SP4 на базе Windows Server 2012 R2 Standard. В качестве хранения резервных копий защищаемых данных используются исключительно дисковые массивы и поэтому в данной заметке мы не будем упоминать о манипуляциях, связанных с ленточными накопителями.

Ключевым условием задачи по обновлению будет сохранение всех имеющихся бэкапов.

Весь процесс будет состоять из следующей последовательности задач:

1. Обновление вторичного сервера DPM
2. Обновление первичного сервера DPM
3. Обновление агентов DPM на защищаемых системах
4. Актуализация группы защиты первичного и вторичного серверов DPM
5. Обновление пакетов мониторинга DPM в SCOM

Задачи 1 и 2 будут выполняться с одинаковой совокупностью шагов:

  • Шаг 1. Создание резервной копии БД SC 2012 R2 DPM
  • Шаг 2. Изменение режима выполнения служб SQL Server
  • Шаг 3. Обновление SC 2012 R2 DPM UR14 до уровня SC 2016 DPM UR10
  • Шаг 4. Создание резервной копии БД SC 2016 DPM
  • Шаг 5. Остановка и отключение служб SC 2016 DPM
  • Шаг 6. Обновление SQL Server 2012 SP4 до уровня SQL Server 2016 SP3
  • Шаг 7. Удаление остатков SQL Server 2012
  • Шаг 8. Запуск служб и проверка работы SC 2016 DPM

Данное описание не может затронуть всех нюансов перехода на новую версию и не позиционируется, как руководство к действию, а лишь является отражением моего опыта. Поэтому крайне рекомендую перед началом процесса обновления внимательно прочитать публично доступную документацию от Microsoft. Это, как минимум:

  • О нововведениях версии: «What’s new in System Center DPM»
  • Системные требования:
    — «Preparing your environment for System Center Data Protection Manager»
    — «Get DPM installed — Setup prerequisites»
  • Информация о порядке обновления: «Upgrade your DPM installation»

Задача 1. Обновление вторичного сервера DPM

Шаг 1. Создание резервной копии БД System Center 2012 R2 DPM

В первую очередь хочу обратить внимание на то, что серверам DPM потребуется окно обслуживания на весь период проведения ниже описанных мероприятий по обновлению, так как потребуется выполнять несколько перезагрузок сервера, некоторое из которых могут отказаться не вполне контролируемыми администратором.

Предварительно убеждаемся в том, что текущий экземпляр DPM обновлён до последнего уровня – установлен Update Rollup 14

В нашем примере версия 4.2.1603.0 соответствует уровню обновлений — Update Rollup 14 for System Center 2012 R2 DPM

Update Rollup 14 for System Center 2012 R2 DPM check build version 4.2.1603.0

Таблицу версий DPM можно найти в статье Вики:
«Номера версий Microsoft System Center Data Protection Manager»

Перед тем, как приступать к процессу обновления до DPM 2016 нам крайне желательно сделать резервную копию текущей базы данных DPM 2012 R2. Она пригодится нам в том случае, если в ходе обновления что-то пойдёт не так и нам потребуется восстановление DPM 2012 R2 к исходному состоянию.

Резервную копию базы данных DPM можно сделать с помощью утилиты DpmBackup.exe (по умолчанию расположена в каталоге исполняемых файлов сервера DPM C:Program FilesMicrosoft System Center 2012 R2DPMDPMbin). При вызове этой утилиты в качестве входных параметров потребуется указать имя сервера БД, имя экземпляра SQL Server, имя базы данных и каталог для выгрузки резервной копии. Информацию о размещении БД можно подсмотреть, например, в системном реестре Windows в ключе:

HKEY_LOCAL_MACHINESOFTWAREMicrosoftMicrosoft Data Protection ManagerDB

Microsoft Data Protection Manager DPM DB Settings in Registry

В нашем примере у нас должна получиться команда следующего вида:

CD /d "C:Program FilesMicrosoft System Center 2012 R2DPMDPMbin"
DpmBackup.exe -db -sqlServerName "KOM-SCDP01" -instanceName "MSDPM2012" -dpmDbName "DPMDB_KOM_SCDP01" -targetLocation "C:Temp"

Созданный файл резервной копии БД должен появится в указанном нами каталоге.

Backup System Center 2012 R2 DPM Database with DpmBackup tool

Зафиксируем информацию о текущем порядке сортировки (Collation), используемом в экземпляре SQL Server и БД. В нашем случае порядок сортировки и у экземпляра SQL Server и у самой БД DPM — SQL_Latin1_General_CP1_CI_AS.

Check SQL Server DPM Database Collation

Эта информация может нам пригодится в случае, если в ходе обновления что-то пойдёт не так и нам придётся переустанавливать SQL Server с последующим восстановлением БД DPM.

Шаг 2. Изменение режима выполнения служб SQL Server

Ранее описывалась проблема, которая может возникнуть с инсталлятором System Center 2012 R2 DPM и то, как для их обхода этой проблемы изменить режим запуска служб SQL Server (смотрите раздел «Меняем режим выполнения служб SQL Server» этой статьи). Чтобы избежать аналогичных проблем при обновлении в инсталляторе System Center 2016 DPM, предполагается, что у нас уже настроен запуск всех служб SQL Server не от имени локальной системы, а от имени сервисных учётных записей.

В нашем случае в качестве сервисной учётной записи для запуска служб SQL Server вместо классической пользовательской учётной записи используется учётная запись gMSA.

Run SQL Server 2012 services with gMSA accounts

Я не исключаю того, что в инсталляторе System Center 2016 DPM уже исправлена обозначенная ранее проблема и, возможно, всё будет работать даже если службы SQL Server выполняются от имени Local System. Но проверять это только ради спортивного интереса я, конечно же, не стал.

Шаг 3. Обновление System Center 2012 R2 DPM до уровня System Center 2016

Согласно документа «Upgrade your System Center DPM» обновляемый экземпляр DPM должен иметь минимум версию Update Rollup 10, то есть иметь номер версии не ниже 4.2.1473.  В нашем случае используется System Center 2012 R2 DPM Update Rollup 14 (4.2.1603).

Кроме того, следует убедиться в том, что используемая версия SQL Server поддерживается инсталлятором DPM 2016. Согласно документа «Preparing your environment for System Center Data Protection Manager», нам потребуется минимум SQL Server 2012 SP4.

При этом следует учесть замечание из документа «What’s supported and what isn’t for DPM» о том, что SQL Server 2016 SP1 и более позднее не поддерживаются в инсталляторе DPM 2016.

Монтируем образ дистрибутива SC 2016 DPM – файл SW_DVD5_Sys_Ctr_DataCenter_Core_2016_MultiLang_DPM_MLF_X21-21038.ISO, запускаем с правами Администратора файл SC2016_SCDPM.EXE, который по сути является самораспаковывающимся архивом. Укажем временный каталог, в который будет произведена распаковка инсталлятора DPM 2016. После окончания распаковки переходим в этот каталог и запускаем файл Setup.exe.

В разделе Install выбираем пункт Data Protection Manager

System Center 2016 Data Protection Manager Installation

На данном моменте (перед открытием окна программы установки DPM) будет выполнена проверка наличия в системе компонент Visual C++ 2012 x64 и, в случае их отсутствия, может произойти их автоматическая установка с последующей форсированной перезагрузкой системы без каких либо предупреждений. Именно поэтому в самом начале я предупредил о том, что серверу потребуется окно обслуживания на время проведения обновлений.

Если сервер ушёл в перезагрузку, то после загрузки системы повторно запускаем инсталлятор DPM 2016 и доходим до шага с лицензионным соглашением, соглашаемся с этим соглашением и переходим к шагу настройки подключения к БД. Убеждаемся в том, что имя экземпляра SQL Server с текущей базой DPM 2012 R2 указано верно и жмём Check and Install.

Check and Install prereqs for DPM 2016

После этого будет выполнена проверка наличия требуемых для установки программных компонент и предпринята попытка подключения к указанному экземпляру БД.

Если с обнаружением экземпляра SQL Server возникли проблемы, то изучаем лог-файл программы установки:

C:Program FilesMicrosoft System Center 2016DPMDPMLogsDpmSetup.log

В нашем случае, инсталлятор сообщил о том, что в систему была доустановлена недостающая компонента и требуется перезагрузка сервера.

HyperVPowerShell installation for DPM 2016

Жмём кнопку отмены, перезагружаем сервер, снова запускаем из временного каталога уже ранее распакованный инсталлятор DPM 2016 и повторно нажимаем кнопку Check and Install.

Инсталлятор обнаружит существующую БД текущей версии DPM и предупредит нас о том, что будет выполнено обновление этой БД, перед которым нам рекомендуется сделать резервную копию этой БД.

You are upgrading the DPM database message

Резервная копия БД у нас уже создана, поэтому переходим к следующему шагу, где нам будет предложено ввести имеющийся у нас ключ продукта линейки System Center 2016

Product key for System Center 2016 DPM

Изменение каталога установки в нашем случае будет недоступно, так как обнаружив предыдущую версию DPM, инсталлятор перешёл в режим обновления. То есть, при обновлении все исполняемые файлы сервера DPM 2016 фактически будут помещены в текущий каталог DPM 2012 R2:

C:Program FilesMicrosoft System Center 2012 R2DPM

Install DPM 2016 to System Center 2012 R2 DPM folder

Далее на вопрос об использовании Windows Update отвечаем отказом, чтобы сделать дальнейший процесс установки более предсказуемым.

Microsoft Update Opt-In

Жмём кнопку Upgrade и дожидаемся успешного завершения процедуры обновления.

SC 2016 DPM upgraded

Закладка Warning в нашем случае содержит только одно информационное предупреждение о том, что теперь было бы неплохо обновить агентов DPM, связанных с данным сервером.

DPM 2016 Installation Result Warning message

Если на вкладке Status получено сообщение о том, что требуется перезагрузка системы, то прежде, чем приступать к последующему обновлению, лучше выполнить перезагрузку.

Далее мы можем поднять до актуального состояния версию DPM 2016 путём установки последнего кумулятивного обновления Update Rollup 10 for System Center 2016 Data Protection Manager. Это обновление может быть установлено либо через локальные службы WSUS, либо загружено из онлайн каталога Windows Update: KB4578608.

Install Update Rollup 10 for System Center 2016 Data Protection Manager from WSUS

В нашем случае установка UR10 была успешно проведена с сервера WSUS.

После установки обновления снова перезагружаем сервер и убеждаемся в штатной работе консоли System Center 2016 DPM UR10.

Шаг 4. Создание резервной копии БД System Center 2016 DPM UR10

Теперь, фактически имя уже обновлённую версию DPM, мы сделаем резервную копию БД, которая в дальнейшем может пригодиться для восстановления работоспособности DPM после обновления SQL Server на новую версию (опять же, на случай, если такое обновление будет безуспешным).

Перед тем, как создавать резервную копию БД, обратите внимание на то, что в ходе обновления DPM до уровня System Center 2016 произошло изменение имени БД.SCDPM 2016 DPMDB registry settings

Сделать резервную копию БД по аналогии с Шагом 1 с помощью утилиты DpmBackup.exe в DPM 2016 у нас уже не получится, так как в обновлённой версии DPM этой утилиты попросту нет. Поэтому сделать резервную копию БД мы сможем либо через графическую консоль управления SQL Server Management Studio, либо через командную строку командой вида:

cd /d "C:Program FilesMicrosoft SQL Server110ToolsBinn"
sqlcmd -S KOM-SCDP01MSDPM2012 -E -d master -Q "BACKUP DATABASE [DPMDB] TO DISK = N'C:Tempdpmdb_2016.bak'"

Backup DPM DB with sqlcmd tool

Резервная копия БД создана и теперь можно переходить к процедуре поднятия версии SQL Server.

Шаг 5. Остановка и отключение служб System Center 2016 DPM

Перед запуском процесса обновления SQL Server, нам желательно закрыть все открытые консоли DPM Administrator Console и остановить службы службы сервера DPM, чтобы они не обращались к ресурсам SQL Server. Сделать это можно, например, с помощью PowerShell:

Get-Service -DisplayName "DPM*" | Stop-Service

Stop DPM Services via PowerShell

Остановки служб будет недостаточно, так как некоторые службы настроены на автоматический перезапуск после остановки. Поэтому нам потребуется перевести тип запуска этих служб в выключенное состояние на время процедуры обновления SQL Server.

Set-Service -Name "MSDPM" -StartupType Disabled
Set-Service -Name "DPMAMService" -StartupType Disabled
Set-Service -Name "DPMRA" -StartupType Disabled
Get-Service -DisplayName "DPM*" | Stop-Service
Шаг 6. Обновление SQL Server 2012 SP4 до уровня SQL Server 2016 SP3

Согласно документа «Preparing your environment for System Center DPM», SQL Server 2016 поддерживается начиная с DPM 2016 Update Rollup 2. Именно поэтому важно обновлять SQL Server уже после того, как мы провели обновление DPM до самого актуального уровня Update Rollup (в завершении Шага 3).

К тому же, следует иметь в виду, что в документе «What’s supported and what isn’t for DPM» есть информация о том, что SQL Server 2016 SP1 (и более поздней версии) на поддерживаются в инсталляторе DPM 2016.

Ну и разумеется, так как речь идёт об обновлении SQL Server 2012 на SQL Server 2016, следует учитывать замечания документа «Supported version & edition upgrades (SQL Server 2016)», где обозначено то, каков должен быть уровень обновления Service Pack для исходной версии SQL Server.

Supported version & edition upgrades for SQL Server 2016

В нашем случае используется SQL Server 2012 SP4, поэтому мы можем приступать к процессу обновления.

Смонтируем на сервере образ диска с дистрибутивом SQL Server 2016, который поставляется в составе дистрибутивов System Center 2016 (файл SW_DVD9_NTRL_SQL_Svr_Standard_Edtn_2016_64Bit_English_OEM_VL_X20-97264.ISO).

На смонтированном диске запускаем файл инсталлятора setup.exe и в окне SQL Server Installation Center выбираем пункт обновления с предыдущих версий: «Installation» > «Upgrade from a previous version of SQL Server«.

Upgrade from a previous version of SQL Server

В открывшемся мастере обновления SQL Server убедимся в том, что указан лицензионный ключ для SQL Server 2016 Standard (этот ключ вшит в дистрибутив SQL Server, поставляемый в комплекте с System Center 2016)

SQL Server 2016 Standard Product Key

На следующих шагах мастера нам нужно будет принять лицензионное соглашение (здесь мы удостоверимся в том, что устанавливается именно редакция SQL Server 2016 Standard) и определиться с выбором использования Windows Update в ходе установки. В нашем случае у сервера нет полноценного прямого выхода в Интернет, поэтому мы отключаем опцию проверки обновлений.

Windows Update in SQL Server 2016 Installation

Не смотря на выбор опции обновления, инсталлятором может быть предложено сразу установить критический патч KB3164398.

Install KB3164398 in SQL Server 2016 upgrade

Далее инсталлятор SQL Server выполнит предварительные установки Setup files и предложит выбор экземпляра SQL Server, который мы собираемся обновлять. В нашем случае на сервере всего один локальный экземпляр «MSDPM2012«, в котором выполняется база данных нашего уже обновлённого сервера DPM 2016. Имя экземпляра SQL Server на ранее описанном этапе обновления DPM не обновлялось и унаследовано от DPM 2012 R2, поэтому просто жмём «Next«.

Select Instance for in-place upgrade to SQL Server 2016

Выбор устанавливаемых компонент в режиме обновления нам будет недоступен, жмём «Next«.

Select Features for in-place upgrade to SQL Server 2016

На следующем шаге мастера не вносим никаких изменений в конфигурацию экземпляра (не меняем имя экземпляра, чтобы не сломать имеющиеся ссылки на этот экземпляр в DPM) и снова жмём «Next«.

Instance Configuration for in-place upgrade to SQL Server 2016

На следующем шаге просматриваем сводную информацию о предстоящем обновлении экземпляра SQL Server и нажимаем кнопку «Upgrade«.

Run in-place upgrade to SQL Server 2016

В ходе процесса обновления мы словили ошибку вида «The following error has occurred: Attempted to perform an unauthorized operation«:

SQL Server 2016 Setup - The following error has occurred: Attempted to perform an unauthorized operation

Нажатия кнопки «Retry» приводили к повторному появлению этого окна, в итоге была нажата кнопка «Cancel» и, как ни странно, процесс обновления не прервался и пошёл дальше.

Не смотря на появление этой странной ошибки, на конечный результат обновления это не повлияло и всё завершилось без явных проблем.

Upgrade to SQL Server 2016 Complete

Анализ сводного лога по ссылке внизу диалоговой формы не показал наличия каких-либо проблем в ходе обновления, однако «неприятный осадок» всё-таки остался.

Дополнительное изучение детального лога Detail_Local.txt (можно найти в том же каталоге, где расположен сводный лог, и в нашем примере это, соответственно, C:Program FilesMicrosoft SQL Server130Setup BootstrapLog20220224_153544Detail_Local.txt) показало, что в ходе обновления инсталлятор SQL Server 2016 по какой-то причине инициировал остановку одной из служб (SepLpsService) используемого у нас антивирусного клиента Symantec Endpoint Protection.

(01) 2022-02-24 16:15:05 Slp: Sco: Attempting to stop service SepLpsService, stop dependents True
(01) 2022-02-24 16:15:05 Slp: Sco: Service SepLpsService has dependents... stopping dependents first
(01) 2022-02-24 16:15:05 Slp: Sco: Attempting to open SC Manager
(01) 2022-02-24 16:15:05 Slp: Sco: Attempting to open service handle for service SepLpsService
(01) 2022-02-24 16:15:05 Slp: Sco: Attempting to close SC Manager
(01) 2022-02-24 16:15:05 Slp: Prompting user if they want to retry this action due to the following failure:
(01) 2022-02-24 16:15:05 Slp: ----------------------------------------
(01) 2022-02-24 16:15:05 Slp: The following is an exception stack listing the exceptions in outermost to innermost order
(01) 2022-02-24 16:15:05 Slp: Inner exceptions are being indented
(01) 2022-02-24 16:15:05 Slp: 
(01) 2022-02-24 16:15:05 Slp: Exception type: Microsoft.SqlServer.Configuration.Sco.ScoException
(01) 2022-02-24 16:15:05 Slp:     Message: 
(01) 2022-02-24 16:15:05 Slp:         Attempted to perform an unauthorized operation.
(01) 2022-02-24 16:15:05 Slp:     HResult : 0x84bb0001
(01) 2022-02-24 16:15:05 Slp:         FacilityCode : 1211 (4bb)
(01) 2022-02-24 16:15:05 Slp:         ErrorCode : 1 (0001)
(01) 2022-02-24 16:15:05 Slp:     Data: 
(01) 2022-02-24 16:15:05 Slp:       DisableRetry = true
(01) 2022-02-24 16:15:05 Slp:     Inner exception type: System.UnauthorizedAccessException
(01) 2022-02-24 16:15:05 Slp:         Message: 
(01) 2022-02-24 16:15:05 Slp:                 Attempted to perform an unauthorized operation.
(01) 2022-02-24 16:15:05 Slp:         HResult : 0x80070005
(01) 2022-02-24 16:15:05 Slp:         Stack: 
(01) 2022-02-24 16:15:05 Slp: at Microsoft.SqlServer.Configuration.Sco.Service.OpenService()
(01) 2022-02-24 16:15:05 Slp: at Microsoft.SqlServer.Configuration.Sco.Service.ControlService(UInt32 dwControlCode)
(01) 2022-02-24 16:15:05 Slp: at Microsoft.SqlServer.Configuration.Sco.Service.StopService(Boolean bStopDependents)
(01) 2022-02-24 16:15:05 Slp: ----------------------------------------

Разумеется, сделать остановку службы инсталлятор не смог, так как, во первых, у антивирусного ПО имеются механизмы защиты от вмешательства извне, а во вторых, эта служба вообще была отключена в системе. Проверив зависимости между службами, я так и не узрел прямых связей между службами SQL Server и службами антивирусного ПО, поэтому такое странное поведение инсталлятора для меня так и осталось загадкой. Как бы там ни было, при возникновении этой проблемы инсталлятор SQL Server 2016 повёл себя в духе «ну не получилось остановить службу, которая мне показалась зависимой, ну и ладно … продолжаем установку». В итоге я пришёл к выводу, что возникновение вышеописанной ошибки в процессе обновления SQL Server вполне можно проигнорировать.

По окончании процесса установки SQL Server выполняем перезагрузку системы, чтобы убедиться в том, что при старте системы все службы SQL Server 2016 автоматически запускаются в штатном режиме.

В нашем случае было обнаружено, что при запуске системы не стартует в автоматическом режиме служба «SQL Server Agent (MSDPM2012)«. При этом ручной запуск службы проходил успешно. Поэтому для данной службы был изменён тип запуска на автоматический (отложенный) и включён автоматический перезапуск после первой остановки.

SQL Server Agent (MSDPM2012) service recovery settings

Однако позднее было замечено, что не смотря на успешный автоматический или даже ручной запуск, менее, чем через минуту служба всё равно останавливалась с регистрацией ошибки:

Log Name:      Application
Source:        SQLAgent$MSDPM2012
Event ID:      103
Level:         Error
Description:   SQLServerAgent could not be started (reason: Unable to connect to server 'KOM-SCDP01MSDPM2012'; SQLServerAgent cannot start).

Чтобы раньше времени не углубляться в эту проблему, было решено подвести к логическому завершению процедуру обновления исполняемых файлов SQL Server 2016 и выполнить установку всех актуальных обновлений с WSUS/Windows Update. Как минимум, следует произвести установку последнего на текущий момент времени Service Pack 3.

Install SP3 for SQL Server 2016 from WSUS

Здесь нужно иметь ввиду, что установка обновлений SQL Server может выполняться не сразу для всех доступных обновлений, а поэтапно. То есть после того, как система сообщит о необходимости перезагрузки и мы её перезапустим, следует снова проверить доступность обновлений с WSUS/Windows Update и доустановить доступные обновления.

После установки SP3 на SQL Server 2016 выше обозначенная проблема с работой службы SQL Server Agent ликвидировалась сама собой.

Шаг 7. Удаление остатков SQL Server 2012

После обновления до SQL Server 2016 мы можем удалить компоненты старой версии SQL Server 2012. Для этого перейдём в оснастку управления программами, выберем «Microsoft SQL Server 2012 (64-bit)» и воспользуемся пунктом меню «Uninstall/Change«.

Uninistall Microsoft SQL Server 2012 (64-bit) in Add Remove Programms

В небольшой открывшейся форме выбора типа изменений инсталляции SQL

Server выберем пункт «Remove«.

Remove SQL Server 2012

В окне мастера удаления SQL Server 2012 дойдём до шага выбора удаляемых компонент и отметим все компоненты, относящиеся к старой версии.

Remove SQL Server 2012 - Select features

На следующем экране мастера кнопкой «Remove» подтвердим удаление и дождёмся окончания процесса.

Remove SQL Server 2012 Complete

Не смотря на то, что после удаления компонент старой версии SQL Server перезагрузка может не потребоваться, можно всё же выполнить дополнительную перезагрузку для получения уверенности в том, что при запуске системы службы SQL Server 2016 запускаются в автоматическом режиме штатно.

Теперь мы можем вызвать из стартового меню утилиту «SQL Server 2016 Installation Center (64-bit)» и перейти на вкладку «Tools». Здесь с помощью пункта «Installed SQL Server features discovery report» сформируем отчёт о всех зарегистрированных в системе компонентах SQL Server.

Installed SQL Server features discovery report

Убедимся в том, что в отчёте отсутствуют компоненты старой версии SQL Server.

SQL Server 2016 setup discovery report

Как видно в нашем примере, удалённые компоненты старой версии SQL Server 2012 (версии 11.* в столбце «Version») больше не фигурируют в отчёте.

Шаг 8. Запуск служб и проверка работы System Center 2016 DPM

Восстанавливаем в исходное состояние режим запуска служб, которые мы отключали ранее, и сразу запускаем эти службы:

Set-Service -Name "MSDPM" -StartupType Manual
Set-Service -Name "DPMAMService" -StartupType Automatic
Set-Service -Name "DPMRA" -StartupType Manual
Start-Service -Name "MSDPM", "DPMAMService", "DPMRA"

Службы должны успешно запуститься без ошибок.

Start DPM 2016 Services via PowerShell

Теперь можно попробовать открыть графическую консоль DPM Administrator Console и проверить функциональную доступность компонент сервера DPM в разных вкладках консоли.

На вкладке «Reporting» можно обнаружить то, что после обновления SQL Server при попытке формирования любого отчёта возникает ошибка вида:

Failed to load expression host assembly. Details: Could not load file or assembly 'ReportSRV5, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (rsErrorLoadingExprHostAssembly)

SSRS and DPM 2016 - Failed to load expression host assembly. Details: Could not load file or assembly ReportSRV5

Связано это с тем, что в обновлённом наборе файлов SQL Server Reporting Services (SSRS) отсутствуют библиотеки модуля отчётности DPM.

Для быстрого исправления этой проблемы можем воспользоваться вариантом, описанным в ветке обсуждения «Reporting fails to load». То есть, попробуем скопировать файлы:

  • ReportSRV5.dll
  • ru-RUReportSRV5.resources.dll

из каталога предыдущей инсталляции SSRS 2012… 

С:Program FilesMicrosoft SQL ServerMSRS11.MSDPM2012Reporting ServicesReportServerbin

… в каталог новой инсталляции SSRS 2016 …

С:Program FilesMicrosoft SQL ServerMSRS13.MSDPM2012Reporting ServicesReportServerbin

Если по какой-то причине не удаётся найти каталог предыдущей инсталляции SSRS 2012, то эти файлы можно извлечь из дистрибутива DPM 2016 (из подкаталога DPM2012setup).

После добавления файлов потребуется перезапустить службы DPM и SSRS, либо просто перезагрузить сервер.

Это избавит нас от явной ошибки при формировании отчётов, но не решит проблемы окончательно. Отчёты при запуске из консоли DPM может сформироваться, а может и повиснуть в длительном цикле попыток загрузки веб-страницы. Предположительно, проблема в том, что DPM, не учитывая того, что он фактически же работает c SQL Server 2016, формирует ссылки на отчёты в формате близком к SSRS 2012, но не очень годным для SSRS 2016. То есть, например, ссылка в консоли DPM на отчёт «Disk Utilization» будет формироваться в виде:

http://kom-scdp01/ReportServer_MSDPM2012/Pages/ReportViewer.aspx?/DPMReports_a3adccc1-11dc-44c0-8659-a7e12f3743c0/DiskUtilizationReport&rs:Format=HTML4.0&rs:Command=Render

И если убрать из такой ссылки фрагмент «&rs:Format=HTML4.0» или банально запустить отчёт «DiskUtilizationReport«, перейдя по корневой ссылке вида…

http://kom-scdp01/ReportServer_MSDPM2012/

Run SQL reports from ReportServer MSDPM2012

…то отчёт должен успешно сформироваться:

Disk Utilization report from DPM 2016 in SSRS

Конечно, такие «костыли» с отчётами в консоли DPM не очень радуют глаз и мы понимаем, что чистая переустановка DPM 2016 наверняка решит эту проблему. Но, положа руку на сердце, могу сказать, что лично для меня эти проблемы с отчётами в консоли DPM, мягко говоря, второстепенны и не стоят того, чтобы заморачиваться с переустановкой продукта. Ибо ценность базовых отчётов, входящих в состав DPM, увы, как была со времён System Center 2007 близка к нулю, так остаётся на том же уровне и дойдя до System Center 2016. И трудно отрицать тот факт, что базовый набор отчётности DPM за всё время развития продукта практически не получил никакой положительной динамики, и как был в зачаточном состоянии, так в этом состоянии и остался. В общем это то место, где мы смело можем сказать «да и пофиг..» и приступить к следующей задаче – обновлению первичного сервера DPM.

Задача 2. Обновляем первичный сервер DPM

Обновление первичного сервера выполняем по тому же сценарию, что мы использовали для вторичного сервера. Напомним последовательность действий:

        • Шаг 1. Создание резервной копии БД SC 2012 R2 DPM
        • Шаг 2. Изменение режима выполнения служб SQL Server
        • Шаг 3. Обновление SC 2012 R2 DPM до уровня SC 2016 DPM
        • Шаг 4. Создание резервной копии БД SC 2016 DPM
        • Шаг 5. Остановка и отключение служб SC 2016 DPM
        • Шаг 6. Обновление SQL Server 2012 до уровня SQL Server 2016
        • Шаг 7. Удаление остатков SQL Server 2012
        • Шаг 8. Запуск служб и проверка работы SC 2016 DPM

        Задача 3. Обновление агентов DPM на защищаемых системах

        После того как вторичный и первичный серверы DPM обновлены, обновляем всех агентов DPM до текущей версии уровня System Center 2016 DPM UR10 (5.0.622.0). Увидеть всех агентов, требующих обновления и запустить процедуру обновления мы можем в графической консоли DPM Administrator Console на вкладке «Management«.

        Update DPM agents in DPM Administrator Console

        При этом необходимо помнить о том что, в некоторых случаях может потребоваться перезагрузка серверов, на которых будут обновляться агенты, поэтому процесс обновления агентов лучше запланировать на нерабочее время. В нашем случае все агенты DPM 2012 R2 были обновлены на новую версию DPM 2016 без сообщения о необходимости перезагрузки.

        Также стоит помнить про то, что при попытке обновить агента DPM, который является участником кластера, автоматически будет инициировано обновление всех остальных агентов кластера. С такими агентами тоже замечена одна особенность – какой-то один из агентов-участников кластера может начать обновляться, а другой может перейти в состояние ошибки. В такой ситуации лучше не делать резких движений и просто дождаться, когда первый агент обновится и перейдёт в статус «OK», а уже  после этого повторить попытку обновления другого агента-участника кластера.

        DPM Agent needs updating

        В зависимости от версии ОС и серверных ролей защищаемого сервера с агентом DPM может потребоваться установка дополнительных программных компонент, согласно таблицы «Protected workloads» документа «Preparing your environment for System Center Data Protection Manager», а также данных документа «What can DPM back up?». Например, для того, успешно развернуть агента DPM 2016 на старой серверной ОС Windows Server 2008 R2 SP1, предварительно потребуется установить в эту систему пакет Windows Management Framework 5.1, поднимающий версии PowerShell/WinRM/WMI.

        При обновлении агентов DPM на новую версию замечено, что не удаляется один из вспомогательных пакетов старой версии клиента «Microsoft System Center 2012 R2 DPM Support Files«. Как я понял, этот пакет можно удалить вручную и на работе агента новой версии это никак не сказывается.

        Uninstall Microsoft System Center 2012 R2 DPM Support Files

        Задача 4. Актуализация группы защиты на серверах DPM

        Процедуру актуализации групп защиты сначала выполняем на первичном сервере DPM, а затем делаем тоже самое на вторичном сервере DPM.

        После процедур обновления состояние групп защиты может перейти в статус «Replica is inconsistent» и для его исправления достаточно будет запустить стандартную процедуру «Perform consistency check«.

        DPM Perform consistency check

        И даже, если группы защиты после обновления находятся в состоянии «OK«, то всё равно для проверки успешности работы механизмов резервного копирования через обновлённых агентов DPM желательно запустить процедуру consistency check. То есть, по хорошему, итогом выполнения данной задачи должно стать то, что все группы защиты сервера DPM находятся в консистентном состоянии и имеют свежую точку восстановления.

        Задача 5. Обновление пакетов мониторинга DPM в SCOM

        Данная задача является опциональной и необходима лишь в том случае, если в инфраструктуре используется система мониторинга System Center Operations Manager (SCOM). Пакеты мониторинга Management Pack (MP) для DPM, расширяющие функционал SCOM, базово поставляются в составе дистрибутива System Center 2016 DPM. Найти соответствующие файлы MP можно в подкаталоге SC 2016 SCDPMManagementPacksen-US :

        • Microsoft.SystemCenter.DataProtectionManager.2016.Discovery.mp
        • Microsoft.SystemCenter.DataProtectionManager.2016.Library.mp
        • Microsoft.SystemCenter.DataProtectionManager.2016.Reporting.mp

        Эти MP могут быть загружены в Operations Manager из линеек System Center 2012 R2/2016/2019.

        Однако следует учесть, что в составе дистрибутива DPM 2016 эти MP имеют устаревшую версию 5.0.1200.0.

        Более правильным вариантом будет скачивание актуальной версии MP (на текущий момент это версия 5.0.1401.2 от 11.02.2021) c сайта Microsoft Downloads Center.

        Обратите внимание на то, что для успешного импорта MP в SCOM потребуется предварительное удаление всех старых версий MP для DPM.

        Import System Center Operations Manager Management Pack for DPM 2016

        После обновления MP в SCOM мы получим возможность централизованного мониторинга состояния всех серверов DPM.

        System Center 2016 DPM Servers monitoring in SCOM

        На этом процесс обновления можно считать законченным.


        В заключение хочется напомнить про некоторые неочевидные вещи, которые потребуют дополнительного внимания уже после обновления ПО. Например, стоит вспомнить про используемые в инфраструктуре антивирусные решения, где может потребоваться корректировка настроек в связи с появлением на серверах/агентах DPM новых путей к исполняемым файлам. При этом обратите внимание на то, что в описанном нами сценарии обновления каталог исполняемых файлов сервера DPM 2016 остался тем же, что был до обновления в DPM 2012 R2.

        BuildSoft Support

        1. Home

        2. Gateway

        3. SQL


        4. Attempted to perform an unauthorized operation

        Search For

        Searching...

        During the installation of Diamonds/ PowerConnect (version 2017 until 2019r02), you get the error:

        The following error occured:  Attempted to perform an unauthorized operation

        Cause: Bullguard anti-virus

        Solution 1

        • Install Diamonds/PowerConnect/BIM Expert 2020 or more recent. These versions so a different type of database, which no longer requires the installation of an SQL instance.

        Solution 2

        • Uninstall Bullguard.
        • Uninstall all corrupt SQL Server 2014 instances.
        • Install SQL Server 2014.
        • Install Diamonds and/or PowerConnect.
        • Reinstall Bullguard again.

        Related Articles

        • Error 1069: The service did not start due to a logon failure.
        • Setup account privileges failed
        • Error: Could not find the Database Engine startup handle
        • Error: The SQL Server Express 2014 installation ended with exit code – *set of numbers*
        • How to manually remove an SQL database
        • How to manually install an SQL database

        Add A Comment

        You must be logged in to post a comment.


        STAY UP TO DATE! SIGN UP FOR BUILDSOFT NEWSLETTER »

        Get free resources, information about product updates, webinars, event information, promotional offers and more delivered in your mailbox.

        Понравилась статья? Поделить с друзьями:
      • The firmware has detected that a cmos checksum error occurred
      • The firmware has detected that a cmos battery failure occurred как исправить
      • The file specified is not a virtual disk vmware как исправить
      • The file size does not match existing bios size как исправить
      • The file is possibly corrupt как исправить