Jump to content
We've recently updated our Privacy Statement, available here ×

Error on reinstalling


gcorder

Recommended Posts

I am reinstalling JR on a computer that had the server software uninstalled.  I downloaded JR server cp 4.7.0 and iReport 5.0.  iReport 5.0 installed fine but I am getting a error during installation for the server.  What can I do to get past this?  I don't see an existing tomcat running as a service.  I have chosen to install the bundled version of tomcat and postgresql during install.

2012-12-05_163152.png.939d7afb8e91382ef163b1fd0c3c2821.png

 

Log started 12/05/2012 at 16:29:03
Preferred installation mode : win32
Trying to init installer in mode win32
Mode win32 successfully initialized
Preparing to Install
Preparing to Install
[16:29:33] Log: PostgreSQL version 9
Creating directory C:Program Filesjasperreports-server-cp-4.7.0
Creating directory C:Program Filesjasperreports-server-cp-4.7.0postgresql
Creating directory C:Program Filesjasperreports-server-cp-4.7.0postgresqllib
Creating directory C:Program Filesjasperreports-server-cp-4.7.0postgresqllibplugins
Creating directory C:Program Filesjasperreports-server-cp-4.7.0postgresqlStackBuilder
Creating directory C:Program Filesjasperreports-server-cp-4.7.0postgresqlStackBuildershare
Creating directory C:Program Filesjasperreports-server-cp-4.7.0postgresqlStackBuildersharei18n
Creating directory C:Program Filesjasperreports-server-cp-4.7.0postgresqlStackBuildersharei18nzh_CN
Creating directory C:Program Filesjasperreports-server-cp-4.7.0postgresqlStackBuildersharei18nfr_FR
Creating directory C:Program Filesjasperreports-server-cp-4.7.0postgresqlStackBuildersharei18nsv_SE
Creating directory C:Program Filesjasperreports-server-cp-4.7.0postgresqlStackBuildersharei18ntr_TR
Creating directory C:Program Filesjasperreports-server-cp-4.7.0postgresqlStackBuildersharei18nja_JP
Creating directory C:Program Filesjasperreports-server-cp-4.7.0postgresqlStackBuildersharei18nde_DE
Creating directory C:Program Filesjasperreports-server-cp-4.7.0postgresqlStackBuildersharei18nru_RU
Creating directory C:Program Filesjasperreports-server-cp-4.7.0postgresqlshare
Creating directory C:Program Filesjasperreports-server-cp-4.7.0postgresqlsharepljava
Creating directory C:Program Filesjasperreports-server-cp-4.7.0postgresqlsharetsearch_data . . . . . . . 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  break  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unpacking C:Program Filesjasperreports-server-cp-4.7.0postgresqlbinecpg.exe
Unpacking C:Program Filesjasperreports-server-cp-4.7.0postgresqlbinpgAdmin3.exe
Unpacking C:Program Filesjasperreports-server-cp-4.7.0postgresqlbinpg_dump.exe
Unpacking C:Program Filesjasperreports-server-cp-4.7.0postgresqlbinstackbuilder.exe
Unpacking C:Program Filesjasperreports-server-cp-4.7.0postgresqlbinmsvcr90.dll
[16:31:12] Creating C:Program Filesjasperreports-server-cp-4.7.0/postgresql/data
[16:31:12] C:Program Filesjasperreports-server-cp-4.7.0/postgresql/data OK
[16:31:12] Before running cacls
[16:31:13] postgres_grantedPermissions = 
[16:31:13] postgres_deniedPermissions = 
[16:31:13] Running cacls
Executing cacls "C:Program Filesjasperreports-server-cp-4.7.0/postgresql/data" /e /c /t /p gcorder:c
Script exit code: 0
 
Script output:
 processed dir: C:Program Filesjasperreports-server-cp-4.7.0postgresqldata
 
Script stderr:
 
 
[16:31:15] cacls "C:Program Filesjasperreports-server-cp-4.7.0/postgresql/data" /e /c /t /p gcorder:c"
[16:31:15] postgres_grantedPermissions = delete file_append_data file_execute file_generic_execute file_generic_read file_generic_write file_read_attributes file_read_data file_read_ea file_write_attributes file_write_data file_write_ea read_control standard_rights_execute standard_rights_read standard_rights_write synchronize
[16:31:15] postgres_deniedPermissions = 
[16:31:15] Running setWindowsACL
[16:31:15] postgres_grantedPermissions = delete file_append_data file_execute file_generic_execute file_generic_read file_generic_write file_read_attributes file_read_data file_read_ea file_write_attributes file_write_data file_write_ea read_control standard_rights_execute standard_rights_read standard_rights_write synchronize
[16:31:15] postgres_deniedPermissions = 
[16:31:15] Initializing database
Executing initdb.exe -U postgres -E UTF8 -D C:/PROGRA~1/JASPER~1.0/POSTGR~1/data
Script exit code: 1
 
Script output:
 
 
Script stderr:
 Program ended with an error exit code
 
Error running initdb.exe -U postgres -E UTF8 -D C:/PROGRA~1/JASPER~1.0/POSTGR~1/data : Program ended with an error exit code
Executing sc stop 
Script exit code: 1639
 
Script output:
 DESCRIPTION:
        Sends a STOP control request to a service.
USAGE:
        sc stop [service name]
        = 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
 
        = 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 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.
 
 
Script stderr:
 Program ended with an error exit code
 
Error running sc stop jasperreportsTomcat : Program ended with an error exit code
Executing sc delete jasperreportsTomcat
Script exit code: 1060
 
Script output:
 [sC] OpenService FAILED 1060:
 
The specified service does not exist as an installed service.
 
 
Script stderr:
 Program ended with an error exit code
 
Error running sc delete jasperreportsTomcat : Program ended with an error exit code
 

 

Link to comment
Share on other sites

  • 7 months later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • 3 weeks later...

I had an identical issue. The way to work around that was:

 

1. Either "Run as Administrator" when you invoke the setup

2. If that doesn't work, upon the failure of the installation, the folder in the ProgramFiles will already have been created. It will have an Installation.log file. Delete that file, and then add "Everyone" with Full Rights to the jasperreports-server-cp-5.2.0 folder. Re-run your setup, and you'll be fine.

The core of the issue is that postgreSQL is trying to invoke NTFS permissions right onto the folder itself, and if it fails for some reason - the whole install fails. By granting full rights to "Everyone", you're avoiding that problem. Of course - be aware of possible security implications of running through such course, and adjust your strategy accordingly.

Good luck!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...