When attempting to upgrade from 8.17 to 8.18.1 the upgrade gets stuck on step 9 of 14 and the error “error: Failedresource key=pak_manager.action_failed, resource args=[run sql db upgrade]" is observed as seen below:
Log /storage/db/vcops/vpostgres/data/serverlog showed:
2024-10-25 16:16:26.687 UTC 671bc45a.5b81 0 23425 8FATAL: could not open log file "/storage/log/postgres/data/postgresql-25.log": Permission denied
in 8.18.x.
VMware Aria Operations 8.x
/storage/log directory did not have the required permissions on the primary node.
Example:
root@CUSTPRIMARY ~ ]# ll /storage drwxrwx--- 5 admin admin 4096 Sep 11 2020 log ######## WORLD READ/EXECUTE PERMISSION MISSING ########
root@LABPRIMARY [ ~ ]# ll /storage
drwxr-xr-x 5 root root 4096 Oct 10 16:05 log
chmod 755 /storage/log