The BOSH Director persistent disk (/var/vcap/store) reaches 100% capacity or experiences high disk usage in VMware Tanzu Application Service for VMs (TAS for VMs). Inspection reveals that /var/vcap/store/blobstore accounts for most of the consumed space, and maintenance commands like bosh clean-up --all fail or reclaim minimal space.
During deployment tasks or release uploads, operations fail while uploading compiled packages or release blobs to the Director's internal WebDAV blobstore with an HTTP 500 error similar to:
Task 35154 | 12:12:27 | Creating new compiled packages: garden-idmapper/xyzxyz for ubuntu-jammy/1.1298 (00:00:00)
L Error: Failed to upload blob, code 1, output: 'Error running app - Putting dav blob xxx-yyy-x-zz: Wrong response code: 500; body: <html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx</center>
</body>
</html>
', error: ''
Task 35154 | 12:12:27 | Error: Failed to upload blob, code 1, output: 'Error running app - Putting dav blob xyzxyzxyz: Wrong response code: 500; body: <html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx</center>
</body>
</html>
', error: ''
Foundation Core 3.x
This occurs because log bundles generated during troubleshooting or system diagnostics are stored directly in the Director blobstore. Log bundles are retained for up to 10 days by default and are only pruned asynchronously when subsequent log requests occur. In environments with frequent log extractions or large log archives, persistent disk space can become exhausted before the default retention window expires.
Customers can utilize the cleanup script referenced in this article to clear stale log bundles.
Here is the relevant code, fetch_logs.rb, where the retention period is set.
In order to run the script, you must be logged into the BOSH Director VM as the 'vcap' user.
while read -r id
do
/var/vcap/packages/postgres-13/bin/psql -th 127.0.0.1 -p 5432 bosh -c "delete from log_bundles where blobstore_id = '"$id"';"
if [ -f /var/vcap/store/blobstore/store/??/"$id" ]
then
rm /var/vcap/store/blobstore/store/??/"$id"
fi
done < <(/var/vcap/packages/postgres-13/bin/psql -th 127.0.0.1 -p 5432 bosh -c "select blobstore_id from log_bundles where log_bundles.timestamp <= now() - interval '5 days';" | sed '/^$/d;s/^ //')Multiple PostgreSQL package binaries (such as postgres-13 and postgres-15) often coexist in /var/vcap/packages/ to facilitate seamless database schema upgrades across BOSH Director releases. Always target the package path corresponding to the active database daemon.