Installing PostgreSQL server:
/opt/apigee/apigee-setup/bin/setup.sh -p ps -f /tmp/apigee.conf
Getting an error:
================================================================================ Package Arch Version Repository Size ================================================================================ Installing: apigee-postgresql noarch 9.4.11-0.0.1092 apigee-release 31 k Transaction Summary ================================================================================ Install 1 Package Total download size: 31 k Installed size: 79 k Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction cp: cannot stat ‘pg_hba.conf’: No such file or directory cp: cannot stat ‘postgresql.conf’: No such file or directory error: %pre(apigee-postgresql-9.4.11-0.0.1092.noarch) scriptlet failed, exit status 1 Error in PREIN scriptlet in rpm package apigee-postgresql-9.4.11-0.0.1092.noarch Verifying : apigee-postgresql-9.4.11-0.0.1092.noarch 1/1 Failed: apigee-postgresql.noarch 0:9.4.11-0.0.1092 Complete! Error: setup.sh: /opt/apigee/apigee-service/bin/apigee-service exited with unexpected status 1
I think RPM is broken
Hi Marat,
Can you provide more information about the platform that this is being run on, i.e. 'cat /etc/os-release' and/or run 'uname -a'? Also, is this for a new installation or an upgrade -- if it's an upgrade what version of apigee-postgresql is currently installed?
thanks
-doug
It's CentOS Linux release 7.4.1708 (Core) (AWS) Linux ip-10-4-1-70.ec2.internal 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
I am facing the same issue on 4.17.09 installation on Red Hat Enterprise Linux Server release 7.1 (Maipo). Has anyone found a solution for this.
/opt/apigee/apigee-setup/bin/setup.sh -p sax -f /tmp/config.txt
@Aswin Segu - could you post your config.txt file (without passwords..)
@Marat Salimzianov I am having the team look at it.
This can be replicated if there is an older version of postgresql-libs on the machine
Installing : postgresql94-server-9.4.14-1PGDG.rhel7.x86_64 3/5 Installing : postgresql94-contrib-9.4.14-1PGDG.rhel7.x86_64 4/5 cp: cannot stat ‘pg_hba.conf’: No such file or directory cp: cannot stat ‘postgresql.conf’: No such file or directory error: %pre(apigee-postgresql-9.4.11-0.0.1092.noarch) scriptlet failed, exit status 1 Error in PREIN scriptlet in rpm package apigee-postgresql-9.4.11-0.0.1092.noarch Verifying : postgresql94-libs-9.4.14-1PGDG.rhel7.x86_64 1/5 Verifying : postgresql94-9.4.14-1PGDG.rhel7.x86_64 2/5 Verifying : postgresql94-server-9.4.14-1PGDG.rhel7.x86_64 3/5 Verifying : postgresql94-contrib-9.4.14-1PGDG.rhel7.x86_64 4/5 Verifying : apigee-postgresql-9.4.11-0.0.1092.noarch 5/5 Dependency Installed: postgresql94.x86_64 0:9.4.14-1PGDG.rhel7 postgresql94-contrib.x86_64 0:9.4.14-1PGDG.rhel7 postgresql94-libs.x86_64 0:9.4.14-1PGDG.rhel7 postgresql94-server.x86_64 0:9.4.14-1PGDG.rhel7 Failed: apigee-postgresql.noarch 0:9.4.11-0.0.1092 Complete! Error: setup.sh: /opt/apigee/apigee-service/bin/apigee-service exited with unexpected status 1 [root@scratch apigee-config-files]# rpm -qa | grep postgresql postgresql94-server-9.4.14-1PGDG.rhel7.x86_64 postgresql94-libs-9.4.14-1PGDG.rhel7.x86_64 postgresql93-libs-9.3.10-1PGDG.rhel7.x86_64 postgresql94-contrib-9.4.14-1PGDG.rhel7.x86_64 postgresql94-9.4.14-1PGDG.rhel7.x86_64
Notice here there is a postgresql93-libs package installed (I did this on purpose to verify what I suspected)
Fixed by :
yum remove -y postgresql*
rpm -e $(rpm -qa | egrep "apigee-|edge-")
then re-installing.
Ran into the same issue while re running the setup with the updated conf file.
Deleting the /opt/apigee/data/apigee-postgresql/pgdata fixed the issue.