Loading

Errors "Tableau Server initialization failed" and "initdb: could not execute command" During Installation

Udgivelsesdato: Feb 26, 2025
Beskrivelse

During Tableau Server installation, the following error may occur:

Tableau server initialization failed

See install log at C:\ProgramData\Tableau\Tableau Server\logs

Additionally, the tabadmin.log file may contain the following error:

  • creating template1 database in pgsql/data/base/1 ...  
    initdb: could not execute command ""C:/Program Files/Tableau/Tableau Server/<version>/pgsql/bin/postgres.exe" --boot -x1 -F ": No error  
    initdb: removing data directory "pgsql/data"

Cause

This issue occurs during the PostgreSQL database initialization process. The postgres.exe process relies on executing several commands via the Windows command prompt (C:\Windows\System32\cmd.exe). If the signed-in Windows user lacks permission to access this location, or if the ComSpec environment variable is incorrectly set and does not point to cmd.exe, these errors will occur.

Løsning
Try the following troubleshooting options:
  • Check user permissions for the computer on which Tableau Server is being installed:
    • Confirm that the user signed in to Windows has administrator permissions to the drive C, the C:\WIndows and C:\Windows\System32 folders, and the cmd.exe file, even if Tableau Server is not being installed on the drive C.
    • Verify the ownership of the above objects. Sometimes the TrustedIInstaller account takes ownership from the Administrators group, causing permissions issues.
    • Even if it appears that cmd.exe is correctly inheriting the permissions from the C:\Windows\System32 folder, re-establish cmd.exe permissions inheritance.
  • Check the ComSpec environment variable to make sure it is pointing to the cmd.exe file, and does not contain extra symbols in the path:
  1. In Control Panel, click System, and then click Advanced System Settings.
  2. Click Environment Variables.
  3. Under System variables, confirm the ComSpec path.
Yderligere ressourcer

 
Vidensartikelnummer

001473807

 
Indlæser
Salesforce Help | Article