When using the health check function, the database (SQL Server) connection check results in "UnHealthy"
Answer¶
Please edit the UserConnectionString parameter settings in "Rds.json".
Overview¶
In the case of a health check response as shown below、By adding Encrypt=false; to the setting value of the UserConnectionString parameter in Rds.json, it may result in a (Healthy) response.
Response¶
{
"status": "Unhealthy",
"totalDuration": "00:00:00.2663513",
"entries": {
"sqlserver": {
"data": {},
"description": "The connection to the server was successfully established, but an error occurred during login (provider: SSL Provider, error: 0 - The certificate chain was issued by an untrusted authority.)",
"duration": "00:00:00.1871996",
"exception": "The connection to the server was successfully established, but an error occurred during login (provider: SSL Provider, error: 0 - The certificate chain was issued by an untrusted authority.)",
"status": "Unhealthy",
"tags": []
}
}
}
UserConnectionString¶
Before editing¶
"UserConnectionString": "Server=(local);Database=#ServiceName#;UID=#ServiceName#_User;PWD=SetUsersPWD;Connection Timeout=30;"
After editing¶
"UserConnectionString": "Server=(local);Database=#ServiceName#;UID=#ServiceName#_User;PWD=SetUsersPWD;Connection Timeout=30;Encrypt=false;"
Installation Instructions¶
- Open App_Data/Parameters/Rds.json.
- Edit the setting value of the UserConnectionString parameter.
- Restart the Pleasanter application.
- Access the health check endpoint.