Symptoms:
- Similar entries below found in /opt/vmware/var/log/vami/updatecli.log:
res=1
echo 'Script /etc/bootstrap/postupdate.d/09-90-prepare-psql failed, error status 1'
exit 1
rm -f /tmp/postupdate-err-log
exit 1
trapfunc
excode=1
test 1 -gt 0
vami_update_msg set post-install 'Post-install: failed'
test -x /usr/sbin/vami-update-msg
/usr/sbin/vami-update-msg set post-install 'Post-install: failed'
sleep 1
test 1 -gt 0 -o 0 -gt 0
vami_update_msg set update-status 'Update failed (code 0-1). Check logs in /opt/vmware/var/log/vami or retry update later.'
test -x /usr/sbin/vami-update-msg
/usr/sbin/vami-update-msg set update-status 'Update failed (code 0-1). Check logs in /opt/vmware/var/log/vami or retry update later.'
exit
03/02/2019 00:48:28 [ERROR] Failed with exit code 256
- Similar entries below found in /var/log/bootstrap/postupdate.log
2019-02-03 00:48:26 PSQL perform base backup for this replica
Located file '/etc/vr/psql/db.env' to preset current environment settings for the database.
[2019-02-03 00:48:26] [root] [INFO] Default settings are overridden!
[2019-02-03 00:48:26] [root] [INFO] <psql-set-replica> Replication user is: <vcac_replication>
[2019-02-03 00:48:26] [root] [INFO] <psql-set-replica> Alter current Postgres user role for replication
[2019-02-03 00:48:26] [root] [INFO] <psql-set-replica>: locking psql-set-replica command
[psql]: Service vpostgres stopping...
Stopping VMware vPostgres: pg_ctl: directory "/var/vmware/vpostgres/current/pgdata" is not a database cluster directory
Last login: Sun Feb 3 00:48:08 UTC 2019
pg_ctl: directory "/var/vmware/vpostgres/current/pgdata" is not a database cluster directory
Last login: Sun Feb 3 00:48:26 UTC 2019
[psql]: Service vpostgres stopping DONE!
cp: cannot stat `/var/vmware/vpostgres/current/pgdata/postmaster.opts': No such file or directory
cp: cannot stat `/var/vmware/vpostgres/current/pgdata/pg_log': No such file or directory
[2019-02-03 00:48:26] [root] [INFO] [psql-util]: Reading confirmation, confirm mode is set to:
pg_basebackup: initiating base backup, waiting for checkpoint to complete
pg_basebackup: checkpoint completed
transaction log start point: 460/99000028 on timeline 1
pg_basebackup: starting background WAL receiver
pg_basebackup: could not get transaction log end position from server: ERROR: could not open file "./postgresql.conf_backup.Nov-28-2018": Permission denied
Last login: Sun Feb 3 00:48:26 UTC 2019
Script /etc/bootstrap/postupdate.d/09-90-prepare-psql failed, error status 1
pg_basebackup: replication stream was terminated before stop point