Symptoms:
Fleet Management > Lifecycle section displays the message: VCF Operations Fleet Management is not Ready.(vpostgres.service) fails to start after the appliance reboots.journalctl -xeu vpostgres.service reveals a fatal error:<hostname> postgres[11273]: <TimeStamp> [11273] FATAL: data directory "/var/vmware/vpostgres/current/pgdata" has invalid permissions<hostname> postgres[11273]: <TimeStamp> [11273] DETAIL: Permissions should be u=rwx (0700) or u=rwx,g=rx (0750).The system journal contains "Permission denied" errors related to the PostgreSQL process ID (PID) file, which is located at: /var/vmware/vpostgres/current/pgdata/postmaster.pid./var/log/vrlcm/vmware_vrlcm.log on the Fleet Management Appliance:Caused by: org.hibernate.exception.JDBCConnectionException: Unable to open JDBC Connection for DDL execution at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:112)Caused by: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:319)VCF Operations Fleet Management Appliance 9.0.1
Note: Before implementing the resolution steps, a snapshot of the VCF Operations Fleet Management appliance must be taken. For detailed instructions, refer to Managing snapshots in vSphere Web Client.
chmod 700 /var/vmware/vpostgres/current/pgdata//opt/vmware/vlcm/certserver.crt.<timestamp>).mv server.key.<timestamp> server.key mv server.crt.<timestamp> server.crtcap_init service and reload the systemd manager configuration:systemctl disable cap_init systemctl daemon-reloadsystemctl restart nginxsystemctl restart vrlcm-server.servicesystemctl status vrlcm-server.servicetail -f /var/log/vrlcm/vmware_vrlcm.logNOTE: A reboot of the SDDC Manager appliance may be required if the services do not reconnect cleanly. In this state, the user interface may remain visible but will not function as expected.