To change the password for the PostgreSQL account:
- Open command prompt and navigate to the
%JASPER_HOME%\postgresql\bin
directory. - Run the following commands:
psql -U postgres -d jasperserver
alter user postgres with password '<new password>';
The default password for the postgres user isagiliance
. - Open command prompt again, making sure you select Run as Administrator.
- Run the following commands:
set PGPASSWORD=<new password>
set ks= %JASPERREPORTS_HOME%\config_ks
set ksp= %JASPERREPORTS_HOME%\config - If you have changed the Postgres database password, open the
%JASPER_HOME%\buildomatic\default_master.properties
file using a text editor and perform the following:- Enter the database password in the following property:
dbPassword=<password>
The
<password>
must be entered in clear text Delete the following property:
encrypt.done=true property
Add the following property:
encrypt=true
- Enter the database password in the following property:
Open command prompt, navigate to the
%JASPER_HOME%\buildomatic
directory, and run the commandjs-ant refresh-config.
- Open the Report Server. Replace
external.jdbc.password
with the generated encrypted password from the%JASPER_HOME%\buildomatic\default.master.properties
file to the%JASPER_HOME%\apache-tomcat\webapps\jasperserver-pro\WEB-INF\js.externalAuth.properties
- Restart the jasperreportsTomcat and jasperreportsPostgreSQL services to apply the changes.
- Perform the following steps on the Application server:
Encrypt the postgresSQL password using
%AGILAINCE_HOME%\install\toolbox\bin\encrypt.cmd
Copy the encrypted postgresSQL password, and open the
%AGILIANCE_HOME%\config\agiliance.properties
file and set the below mentioned properties:jasper.database.password
database.jasper.admin.password.encrypted
Note: These values are the encrypted password.
To copy the passwords from the Report server to Application server, perform the following:
Go to the
%JASPER_HOME%\buildomatic\build_conf\default
directory and copy thejs.jdbc.properties
password properties for postgresSQL metadata.Replace the copied properties onto
js.jdbc.properties
file in the%AGILIANCE_HOME%\buildomatic\build_conf\default
directory.Restart the RiskVision Tomcat service to apply the changes successfully.