[#6766] - Unable to silent installtion --mode unattended --postgres_password

Category:
Bug report
Priority:
Urgent
Status:
New
Project: Severity:
Critical
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:
0

Unable to install jasper-server while trying to do it silently.

using below command

--mode unattended --prefix /dev/shm/test/jasperreports-server-cp-6.2.0 --jasperLicenseAccepted yes --postgres_password password

[root@ip-10-10-2-157 test]# ./jasperreports-server-cp-6.2.0-linux-x64-installer.run\?r\=http\:%2F%2Fcommunity.jaspersoft.com%2Fproject%2Fjasperreports-server%2Freleases --mode unattended --prefix /dev/shm/test/jasperreports-server-cp-6.2.0 --jasperLicenseAccepted yes --postgres_password postgres
There has been an error.
Error running su postgres -s /bin/sh -c "\"/dev/shm/test/jasperreports-server-cp-6.2.0/postgresql/bin/psql\" -U postgres -c \"ALTER USER postgres PASSWORD '****'\"": child process exited abnormally

It is not taking postgress_password tried various passwords tough.

goldbrickdhruv's picture
Joined: Jan 18 2016 - 3:37am
Last seen: 5 years 3 months ago

2 Comments:

#1

I confirm the bug

#2

This bug have been reproduced with jasperserver 6.4.0.

To workaround it, set <postgresql_passwd> to PGPASSWORD environment variable or store it into file referenced by PGPASSFILE before execute jasper installation

export PGPASSWORD=<postgresql_passwd>
/jasperreports-server-cp-6.2.0-linux-x64-installer.run --mode unattended ....

Feedback
randomness