SystemLink TestMonitor Error: No Password Has Been Provided

Updated Oct 29, 2024

Reported In

Software

  • SystemLink Server
  • SystemLink Test Module

Issue Details

  • The TestMonitor service on my SystemLink Service always fails to start. In my error logs I see that TestMonitor failed because No password has been provided but the backend requires one.
  • On my SystemLink Server, the TestMonitor service errors. In the Skyline logs, I see that there is a fatal error related to the password. How can I fix this?
  • I see the below errors in my SystemLink Skyline logs. What causes this?

 

TestMonitor | ERROR - [Fatal] A connection to PostgreSQL was configured, but the service was unable to connect to the specified database. Error (Npgsql.NpgsqlException): No password has been provided but the backend requires one (in SASL/SCRAM-SHA-256)

TestMonitor | ERROR - TestMonitor.InvalidDatabaseConfiguration: Invalid database configuration. Please check TestMonitor.json in the Config directory.

 

TestMonitor error.PNG

Solution

This error occurs because the PostgreSQLDatabase service is missing a password in the configuration file. The TestMonitor service is dependent on PostgreSQLDatabase, which causes this error to appear.

 

To verify if your PostgreSQLDatabase service is missing a password:

 

  1. In a text editor, open C:\ProgramData\National Instruments\Skyline\Config\PostgreSQLDatabase.json
  2. If a password is missing, the Postgres.Password and Postgres.ConnectionString fields will appear similar to below.

 

postgresqldatabase json.PNG

To resolve the issue, follow the steps in SystemLink TestMonitor Error: Password Authentication Failed. Although this article references a different error, the solution is the same.