SystemLink™ Server PostgreSQL Database Fails With Permission Denied on Directory

Updated Oct 19, 2026

Reported In

Software

  • SystemLink Server
  • SystemLink

Issue Details

I configured a new directory path for the PostgreSQL database in NI SystemLink Server. When restarting the services, the PostgreSQLDatabase service fails to start, remaining in an initializing/error state. In the system logs, the following error is reported:

 

PostgreSQLDatabase | ERROR - C:\Program Files\National Instruments\Shared\Skyline\PostgreSQLDatabase\NationalInstruments.PostgresConfig.exe - NationalInstruments.PostgresConfig: Error: "C:\Program Files\National Instruments\Shared\Skyline\PostgreSQLDatabase\pgsql\bin\initdb.exe": "initdb: error: could not change permissions of directory "<Folder Path>": Permission denied"

 

PostgreSQLDatabase | ERROR - C:\Program Files\National Instruments\Shared\Skyline\PostgreSQLDatabase\NationalInstruments.PostgresConfig.exe - NationalInstruments.PostgresConfig: Fatal: The call to "C:\Program Files\National Instruments\Shared\Skyline\PostgreSQLDatabase\pgsql\bin\initdb.exe" exited with code 1.



Solution

This error occurs when the PostgreSQL initialization tool (initdb.exe) does not have sufficient permissions to modify the target database folder.

Follow these steps to grant the necessary permissions:

  1. In Windows File Explorer, navigate to the drive where the new directory is located.
  2. Right-click the new configured database folder and select Properties.
  3. Navigate to the Security tab.
  4. Verify and configure user permissions to ensure that the service account ( have Full Control over the directory.
  5. Open NI SystemLink Server Configuration.
  6. Navigate to the NI SystemLink Service Manager tab and click Restart to restart all services.
  7. Verify that the PostgreSQLDatabase service transitions to the Live state and populates the database directory structure.