CSNAPC-7861:将SnapCenter升级到6.0后、SCSQL备份因"目标主体名称不正确"而失败
问题描述
- 在SnapCenter从5.0升级到6.0之后、如果在SQL服务器端将强制加密设置为True、则SCSQL备份作业始终会因
"The target principal name is incorrect"
错误而失败。 SmSql_<jobid>_{_}<date>_{_}<time>.log
显示:
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.)