Symptoms:
Failed to start log bundle collection: ('Connection aborted.', error(111, 'Connection refused')
Exception occurred while applying selfpatch.
<Date> 09:32:06,404 - __main__ - ERROR : 259 - ('Command execution of all commands did not finish within the defined timeout time.\nCommand execution result:\nCommand id: <ID_number>\n Type: upgrade-management-agent\n Node id: <id_Number>\n Node host: ComponentNodeFQDN\n Result: \n Result description: \n Status: QUEUED\n\n', 'Error executing command')
VAMI is loading Manager Service host...
<Date>T14:38:27.919762-04:00 vraFQDN [database-failover-agent][3876]:
<Date> 14:38:27 GetMasterStatus(): error querying database (localhost): x509: certificate has expired or is not yet valid
[UTC:YYYY-MM-DD 08:36:45 Local:2021-09-29 10:36:45] [Error]: [sub-thread-Id="8" context="" token=""] DynamicOps.Common.Client.HtmlResponseException: Internal Server Error (500)
Request:
GET https://<FQDN>:5480/config/nodes/<Node_Id>/commands/next-command
Response:
Failure: Internal server error.
Error running list-nodes: Get http://localhost/api/node?components=: dial unix /var/run/vra-command-agent.sock: connect: connection refused
service psql-manager stop; service vcac-server stop; service horizon-workspace stop; service vco-server stop; service vco-configurator stop
service psql-manager stop; service vco-server stop; service vco-configurator stop
. /usr/lib/vmware-bootstrap-vrva-base/certificates.inc
certificate_generate --key "/tmp/server.key" --cert "/tmp/server.crt"
cp /storage/db/pgdata/server.crt /tmp/server.crt.bak
cp /storage/db/pgdata/server.key /tmp/server.key.bak
cp /tmp/server.crt /storage/db/pgdata/server.crt
cp /tmp/server.key /storage/db/pgdata/server.key
chown postgres:users /storage/db/pgdata/server.key /storage/db/pgdata/server.crt
chmod 600 /storage/db/pgdata/server.key
chmod 644 /storage/db/pgdata/server.crt
ln -f /storage/db/pgdata/server.crt /storage/db/root.crt
chmod 644 /storage/db/root.crt
service vpostgres stop; service vpostgres start
rm -rf /tmp/psql-set-replica
vcac-vami psql-set-replica -M PrimaryFQDN
service psql-manager start
service horizon-workspace start && \
base64 -d <<< "IyEvYmluL2Jhc2gKZWNobyAnV2FpdGluZyBmb3IgaG9yaXpvbiBzZXJ2aWNlIHRvIHN0YXJ0Li4uJwpmb3IgaSBpbiB7MS4uMTIwfQpkbwogICBzdGF0dXNfY29kZT1gY3VybCAtLW1heC10aW1lIDMwIC1vIC9kZXYvbnVsbCAtcyAtdyAiJXtodHRwX2NvZGV9XG4iICdodHRwOi8vbG9jYWxob3N0OjgwODAvU0FBUy9BUEkvMS4wL1JFU1Qvc3lzdGVtL2hlYWx0aCdgCiAgIFtbICIke3N0YXR1c19jb2RlfSIgPT0gIjIiKiBdXSAmJiBicmVhawogICBlY2hvICJIb3Jpem9uIGlzIHN0aWxsIHN0YXJ0aW5nLi4uIgogICBzbGVlcCA1CmRvbmUKCmlmIFtbICIke3N0YXR1c19jb2RlfSIgPT0gIjIiKiBdXTsKdGhlbgogICBlY2hvICdIb3Jpem9uIHNlcnZpY2Ugc3RhcnRlZCBzdWNjZXNzZnVsbHkhJwplbHNlCiAgIGVjaG8gJ0hvcml6b24gc2VydmljZSBkaWQgbm90IHN0YXJ0IHdpdGhpbiB0aGUgZXhwZWN0ZWQgcGVyaW9kLiBDaGVjayBzdGF0dXMgb2YgaG9yaXpvbi13b3Jrc3BhY2Ugc2VydmljZSBhbmQgbG9ncyBpbiAvdmFyL2xvZy92bXdhcmUvaG9yaXpvbi8gZm9yIG1vcmUgZGV0YWlscy4nCiAgIGV4aXQgMQpmaQo=" | sh - && \
service vco-server start && \
service vco-configurator start && \
service vcac-server start
service vco-server start; service vco-configurator start
The validity of the current certificate can be verified by running this command:
openssl x509 -in /storage/db/pgdata/server.crt -text -noout | more