Jump to content
We've recently updated our Privacy Statement, available here ×
  • Error running initdb.exe -U postgres - E UTF8 -D


    Jim W
    • Features: JasperReports Server Product: JasperReports® Server

    Issue Description:

    You may find the following error trace in the installation.log:

    [toc]
    [13:01:11] Initializing database
    Executing vcredist_x64.exe /q
    Script exit code: 0
    
    Script output:
    
    Script stderr:
    
    Executing initdb.exe -U postgres -E UTF8 -D E:/TEST~1/REPORT~1/REPORT~1/POSTGR~1/data
    Script exit code: SIGABRT
    
    Script output:
    
    Script stderr:
    child killed: SIGABRT
    
    Error running initdb.exe -U postgres -E UTF8 -D E:/VENDOR~1/REPORT~1/REPORT~1/POSTGR~1/data : child killed: SIGABRT
    Executing sc stop
    Script exit code: 1639
    
    Script output:
    DESCRIPTION:
            Sends a STOP control request to a service.
    USAGE:
            sc <server> stop [service name] <reason> <comment>
            <reason> = Optional reason code number for service stop
                       formed with the following elements in the format:
    
                            Flag:Major reason:Minor reason
    
                            [E.g., 1:2:8 means Hardware: Disk (Unplanned)]
    
                            Flag                       Major reason
                       ------------------       ---------------------------
                       1    -   Unplanned       1       -   Other
                       2    -   Custom          2       -   Hardware
                       4    -   Planned         3       -   Operating System
                                                4       -   Software
                                                5       -   Application
                                                64-255  -   Custom
    
                                Minor reason
                       -----------------------------------
                       1            -   Other
                       2            -   Maintenance
                       3            -   Installation
                       4            -   Upgrade
                       5            -   Reconfiguration
                       6            -   Hung
                       7            -   Unstable
                       8            -   Disk
                       9            -   Network Card
                       10           -   Environment
                       11           -   Hardware Driver
                       12           -   Other Driver
                       13           -   Service Pack
                       14           -   Software Update
                       15           -   Security Fix
                       16           -   Security
                       17           -   Network Connectivity
                       18           -   WMI
                       19           -   Service Pack Uninstall
                       20           -   Software Update Uninstall
                       22           -   Security Fix Uninstall
                       23           -   MMC
                       256-65535    -   Custom
    
           <comment> = Optional comment for the reason above (127 characters maximum)
    
    Script stderr:
    Program ended with an error exit code
    
    Error running sc stop  : Program ended with an error exit code
    Executing sc delete
    Script exit code: 1639
    
    Script output:
    DESCRIPTION:
            Deletes a service entry from the registry.
            If the service is running, or another process has an
            open handle to the service, the service is simply marked
            for deletion.
    USAGE:
            sc <server> delete [service name]
    
    Script stderr:
    Program ended with an error exit code
    
    Error running sc delete  : Program ended with an error exit code
    Executing sc stop jasperreportsTomcat
    Script exit code: 1060
    
    Script output:
    [SC] OpenService FAILED 1060:
    
    The specified service does not exist as an installed service.
    

    Resolution:

    The error is usually a result of the system environment.  Check the following:

    1. Log in as local admin to install.

    2. Make sure that the user has full rights to the folder indicated in the error trace.  In the example:

      E:/TEST~1/REPORT~1/REPORT~1/POSTGR~1/data
      
    3. Check and make sure that the postgresql port 5532 is available.  Try netstat -a to check which ports are being used.

    4. If on Windows, go to Control Panel -> System and Security ->Administrative Tools->Services and make sure that there are no reminant postgresql processes running using the same port.

    5. If on Windows, UAC and/or firewall may be preventing initdb.exe to run.  Try turning them off temporarily to see if that is the case.


    Ref. Case #00040955


    User Feedback

    Recommended Comments

    1 -Search and download the Postgresql version15.1, install it and note the user and pw created during install

    2 - install Jasperserver in custom mode

    3 - install bundled apache but not postgresql

    4 - follow instructions for the custom install, note the good path for the bin folder asked 

    5 - next and it must be good

    Link to comment
    Share on other sites



    Guest
    This is now closed for further comments

×
×
  • Create New...