There is an error in the SDDC Manager UI when logging in as the same SSO user :
status 500 error
And while changing the password of VCF getting error : "Failed to start Postgres".
From the SDDC VM console login with root credential and check the partition :
df -h
VMware Cloud Foundation 5.x
Note : Please take the snapshot of SDDC VM before start the activity.
To resolve the issue, manually clear the messages log and auth.log files:
echo > /var/log/messages
echo > /var/log/audit/audit.log
echo > /var/log/auth.log
To resolve the auto log rotation issue:
Update the permissions of syslog under /etc/logrotate.d :
chown root:root syslog
chmod 644 syslog
Initiate the log rotation
logrotate -f /etc/logrotate.conf
While running the command logrotate -f /etc/logrotate.conf if error came as: -
error: destination /var/log/audit/audit.log-20241203.gz already exists, skipping rotation
error: destination /var/log/nginx/access.log-20241203.gz already exists, skipping rotation
error: destination /var/log/nginx/error.log-20241203.gz already exists, skipping rotation
To resolve the issue, manually remove the above files from the directory then again try running logrotate -f /etc/logrotate.conf.