CSNAPC-7861: SCSQL backup fails due to "The target principal name is incorrect" after upgrading SnapCenter to 6.0
Issue
- After SnapCenter was upgraded to 6.0 from 5.0, SCSQL backup jobs always fail due to the error
"The target principal name is incorrect"
when Force Encryption is set to True on the SQL server side. SmSql_<jobid>_{_}<date>_{_}<time>.log
shows:
Connection fails with ErrorMessage (The user 'demo\administrator' does not have required permission to connect to the SQL instance 'sql1\SQLEXPRESS'.
Error: A connection was successfully established with the server, but then an error occurred during the login process.
(provider: SSL Provider, error: 0 - The target principal name is incorrect.))
2025-02-13T03:00:26.6914133-08:00 DEBUG SmSql_314 PID=[5552] TID=[87] Connecting to SQL Server: [sql1\SQLEXPRESS]
2025-02-13T03:00:26.6914150-08:00 DEBUG SmSql_314 PID=[5552] TID=[87] Getting SQL server connection with user: demo\administrator
2025-02-13T03:00:26.7094818-08:00 DEBUG SmSql_314 PID=[5552] TID=[87] Setting connection timeout in SQL server connection as 60
2025-02-13T03:00:26.7716397-08:00 ERROR SmSql_314 PID=[5552] TID=[87] ConnectionFailureException: Failed to connect to server sql1\SQLEXPRESS. A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The target principal name is incorrect.). The target principal name is incorrect.
2025-02-13T03:00:26.7716640-08:00 ERROR SmSql_314 PID=[5552] TID=[87] ErrorCode (10010), ErrorMessage (The user 'demo\administrator' does not have required permission to connect to the SQL instance 'sql1\SQLEXPRESS'. Error: A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The target principal name is incorrect.))
2025-02-13T03:00:26.7717047-08:00 ERROR SmSql_314 PID=[5552] TID=[87] Failed to connect to SQL instance 'sql1\SQLEXPRESS'. Error: The user 'demo\administrator' does not have required permission to connect to the SQL instance 'sql1\SQLEXPRESS'. Error: A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The target principal name is incorrect.)