0% found this document useful (0 votes)
265 views5 pages

Secret Server Upgrade Checklist v6.0

1. This document provides a checklist for upgrading Secret Server on-premises. It includes steps to check system requirements, back up files and databases, obtain the correct upgrade script from support, run the script, and address any post-upgrade issues. 2. Key pre-upgrade tasks involve verifying requirements, disabling DPAPI, backing up files and databases, and getting the current version. The upgrade script should be run with a transaction and rolled back if errors occur. 3. Potential post-upgrade issues involve version mismatches, database restoration, and IIS configuration. Proper permissions and settings are also outlined.

Uploaded by

Matcha Satish
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
265 views5 pages

Secret Server Upgrade Checklist v6.0

1. This document provides a checklist for upgrading Secret Server on-premises. It includes steps to check system requirements, back up files and databases, obtain the correct upgrade script from support, run the script, and address any post-upgrade issues. 2. Key pre-upgrade tasks involve verifying requirements, disabling DPAPI, backing up files and databases, and getting the current version. The upgrade script should be run with a transaction and rolled back if errors occur. 3. Potential post-upgrade issues involve version mismatches, database restoration, and IIS configuration. Proper permissions and settings are also outlined.

Uploaded by

Matcha Satish
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Secret Server On-Prem Upgrade Checklist

☐ Make sure the environment complies with Secret Server’s system requirements.

• Run the PowerShell command below on each server node and confirm that it has .NET
Framework 4.8 or newer:

(Get-ItemProperty "HKLM:SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full").version

• SQL Express is intended for POC environments only.

• SQL Server and the Secret Server database should be set to the collation
SQL_Latin1_General_CP1_CI_AS.

• Run the SQL query below against the Secret Server database to confirm that the SQL
compatibility level is 110 and above:

USE <YOURSECRETSERVERDB>;
GO
SELECT compatibility_level
FROM sys.databases WHERE name = '<YOURSECRETSERVERDB>';
GO

☐ Check if DPAPI is enabled by navigating to the Administration > Configuration > Security page of
Secret Server. If yes, disable it by clicking on the Decrypt Key Using DPAPI button. Repeat and
perform this step on each server node.

☐ Check if Integrated Windows Authentication is enabled in Secret Server by navigating to the


Administration > Directory Services > Configuration page of Secret Server. If yes, make sure that
ONLY Windows Authentication is enabled, and all other authentication is disabled for the Secret
Server site on all server nodes. Otherwise, both Forms and Anonymous Authentication should be
enabled, and all other authentication is disabled. For steps on how to do so, click here.

☐ Save a full back-up of the application files (C:\inetpub\wwwroot\SecretServer) of each server


node. NOTE: The backed-up encryption.config file should be the unencrypted version.

☐ Save a full back-up of the Secret Server database.

☐ Make sure there is enough disk space on the database server, specifically the drive where the
database and transaction log files are stored.

☐ If the environment has SQL replication, please review page 12 of this documentation.

1 Updated 11/18/22 @delinea.com


☐ Get the current version of the Secret Server instance using the SQL query below, then request for
the upgrade script from Delinea Support. Ensure to provide the exact current version of your
Secret Server instance.

select top 1 VersionNumber as VersionString


,cast(SUBSTRING(
VersionNumber
,0
,CHARINDEX('.',VersionNumber,0)
) as int) as Major
,cast(SUBSTRING(
left(VersionNumber
,charindex('.', VersionNumber, charindex('.', VersionNumber)+1)-1)
,CHARINDEX('.',VersionNumber,0)+1
,LEN(left(VersionNumber
,charindex('.', VersionNumber
,charindex('.', VersionNumber)+1)+1))
) as int) as Minor
,cast(SUBSTRING(
VersionNumber
,LEN(left(VersionNumber
,charindex('.', VersionNumber
,charindex('.', VersionNumber)+1)+1))
,LEN(VersionNumber) - LEN(left(VersionNumber
,charindex('.', VersionNumber, charindex('.', VersionNumber)+1)-1))
) as int) as Build
from tbVersion
order by Major desc, Minor desc, Build desc

☐ Download the correct Secret Server application files and extract ss_update.zip to a temporary
folder on each server node (e.g., Desktop, C:\Temp).

• For the latest release:


https://updates.thycotic.net/secretserver/getlatestversion.aspx?alwayslatest=true

• For General Availability releases:


https://updates.thycotic.net/secretserver/<Version_XX_X_XXXXXX> .zip

• For Early Adopter releases:


https://updates.thycotic.net/secretserver/prerelease/<Version_XX_X_XXXXXX> .zip

• For Rolling patches:


https://updates.thycotic.net/secretserver/patches/RollingPatch/< Version_XX_X_XXXXXX
> .zip

NOTE: Replace <Version_XX_X_XXXXXX> with the corresponding desired version. For example,
https://updates.thycotic.net/secretserver/patches/RollingPatch/ Version_11_3_000001 .zip.

2
☐ Make sure there is an account with the permissions below that can be used at the time of the
upgrade:

• Administrator access on all server nodes.

• Can log in via SQL Server Management Studio.

• Has Write/Alter permission to the Secret Server database.

☐ Open Programs and Features on the server node and make sure Microsoft Monitoring Agent is not
installed. Repeat and perform this step on each server node.

The APM feature in SCOM Agent on the server node causes the IIS application pool to crash. If it is
necessary to have the SCOM Agent on the server node, reinstall it with the “NOAPM = 1” switch
using msiexec.exe to exclude the APM feature.

Don'ts:
1. Do not proceed with the upgrade without a full back-up of the Secret Server application files with
the unencrypted version of encryption.config and database.config files.

2. Do not proceed with the upgrade if you encounter any SQL error when running the upgrade script
against the Secret Server database in SQL Server Management Studio. Take a screenshot of the
error message, then rollback the transaction.

3. If the environment has a SQL High Availability setup, do not run the upgrade script against all
databases. Run it on the primary database or listener.

Do’ s:
1. Stop the Secret Server application pool before starting the upgrade process. If it is a clustered
Secret Server instance, the application pool can be stopped one at a time.

2. Add BEGIN TRANSACTION on top (Line 1) of the upgrade script, search for COMMIT TRAN at the
end of the script and mark it as a comment (i.e., --COMMIT TRAN;). If the upgrade script ran
successfully, proceed with commit by removing the comment tag (i.e., COMMIT TRAN;).
Otherwise, take a screenshot of the error message in SQL Server Management Studio and run
ROLLBACK TRANSACTION in the same query window.

3. After upgrading the database and overwriting the server node’s application files, start the Secret
Server application pool on it and perform an IISRESET. If it is a clustered Secret Server instance,
make sure that Secret Server is accessible on the first server node, then proceed with overwriting
the application files on the second node. Once done, make sure that Secret Server is accessible
on the second node, then repeat the process on the remaining server nodes. Remember to stop

3
the Secret Server application pool, overwrite the application files, start the application pool, and
perform an IISRESET on each server node.

Post upgrade tasks & issues


1. For the "Binary Version Mismatch” error, make sure the Thycotic.ihawu.Business.dll file has the
correct upgraded version.

a. Navigate to the C:\inetpub\wwwroot\SecretServer\bin folder of the server node/s.


b. Right-click on the Thycotic.ihawu.Business.dll file and select Properties.
c. Click on the Details tab and check the File Version.

d. If the version is incorrect, stop the Secret Server application pool and overwrite application
files (C:\inetpub\wwwroot\SecretServer) with the same version as the database.

2. For “The version of your database does not match the version of your application” error, get the
current version of Secret Server in the database by running the SQL query below:

select top 1 VersionNumber as VersionString


,cast(SUBSTRING(
VersionNumber
,0
,CHARINDEX('.',VersionNumber,0)
) as int) as Major
,cast(SUBSTRING(
left(VersionNumber
,charindex('.', VersionNumber, charindex('.', VersionNumber)+1)-1)

4
,CHARINDEX('.',VersionNumber,0)+1
,LEN(left(VersionNumber
,charindex('.', VersionNumber
,charindex('.', VersionNumber)+1)+1))
) as int) as Minor
,cast(SUBSTRING(
VersionNumber
,LEN(left(VersionNumber
,charindex('.', VersionNumber
,charindex('.', VersionNumber)+1)+1))
,LEN(VersionNumber) - LEN(left(VersionNumber
,charindex('.', VersionNumber, charindex('.', VersionNumber)+1)-1))
) as int) as Build
from tbVersion
order by Major desc, Minor desc, Build desc

If the version is incorrect, please do the following:

a. Restore a working back-up copy of the Secret Server database.

b. Run the upgrade script provided by Delinea Support.

3. For IIS errors, make sure the Secret Server application pool on all server nodes has the following
Advanced Settings:

• Managed Pipeline Mode: Integrated


• Start Mode: AlwaysRunning
• Identity: Should be the application pool service account running Secret Server
• Idle Timeout(minutes): 0
• Load User Profile: True
• Regular Time Interval (minutes): 0

4. The application pool service account should have the following required permissions:

• Modify permission on the C:\Windows\Temp and C:\inetpub\wwwroot\SecretServer on all


server nodes

• Computer Configuration > Windows Settings > Security Settings > Local Policies > User
Rights Assignment > “Log on as a batch job” policy

• Computer Configuration > Windows Settings > Security Settings > Local Policies > User
Rights Assignment > “Impersonate a client after authentication” policy

5. Re-enter the application pool service account credentials in case its password has changed.

6. If the server nodes are behind a load balancer and Secret Server is not loading via load-balanced
URL, access Secret Server directly from each server node using localhost.

7. If issue persists, open a support case, and attach a zipped Secret Server logs located in
C:\inetpub\wwwroot\SecretServer\log of the server node(s) having an issue.
5

You might also like