Backup your database now using the tools provided by your database vendor.Enter [Y] after the backup is complete. YRunning 5 upgrade tasksExecuting upgrade task:Successfully ran upgrade taskExecuting upgrade task:Successfully ran upgrade taskExecuting upgrade task:Successfully ran upgrade taskExecuting upgrade task:..........[10]
org.postgresql.util.PSQLException: ERROR: permission denied to create extension "pgcrypto"Hint: Must have CREATE privilege on current database to create this extension.
VMware Cloud Director 10.6.1
This issue is caused by the fact that the owner of the Cloud Director database named "vcloud" is postgres instead of vcloud.
To resolve the issue to apply the following steps:
/opt/vmware/vcloud-director/bin/cell-management-tool cell -i $(service vmware-vcd pid cell) -ssystemctl stop vmware-vcdsudo -i -u postgres psql\l List of databases Name | Owner | Encoding | Collate | Ctype | Access privileges | Size | Tablespace | Description -----------+----------+----------+---------+-------+-----------------------+---------+------------+--------------------------------------------postgres | postgres | UTF8 | C | C | | 8081 kB | pg_default | default administrative connection databaserepmgr | repmgr | UTF8 | C | C | | 8409 kB | pg_default | vcloud | postgres | UTF8 | C | C | | 91 MB | pg_default |
## In the above output, the user is postgres not vcloud
vcloud, update the owner to vcloud.
alter database vcloud owner to vcloud;