This article describes common errors that may occur when attaching a foundation to VMware Tanzu Hub using the Automated attach workflow, and provides resolution steps.
When attaching a foundation through the Tanzu Hub UI, one of the following errors may be displayed:
“Foundation already exists with this name”
“Invalid passcode”
“Invalid Foundation credential”
Tanzu Hub
After entering a value in Foundation Name, the UI displays:
Foundation already exists with this name
This can be confusing because the foundation may not appear in the Foundations list under the Overview tab.
A previous attach attempt already created a foundation record in Tanzu Hub (including pending/failed attach states). In some failure scenarios, the foundation record may not be visible in the Overview list but is still present under the Manage connection view.
In Tanzu Hub UI, navigate to Foundations.
Click Manage connection.
Look for an existing entry corresponding to the foundation name.
If the foundation is listed in Manage connection, use that entry to continue/repair the connection rather than creating a new one with the same name.
If the foundation is stuck in a failed/partial state, remove/detach it from Manage connection (if supported in your environment), then retry the attach.
After entering the passcode, the UI displays:
Invalid passcode
One of the following:
The passcode entered is incorrect.
The passcode has expired (time-limited token).
Generate a new passcode from the foundation side (per your attach process) and retry.
Ensure the passcode is copied exactly (avoid whitespace, truncation, clipboard issues).
After entering/uploading the certificate for the foundation credential, the UI displays:
Invalid Foundation credential.
A frequent underlying cause is TLS hostname verification failure, for example when the certificate presented by the foundation endpoint does not include the hostname in its Subject Alternative Name (SAN).
This often presents in backend logs as a Java exception similar to:
java.security.cert.CertificateException: No name matching <hostname> found
To determine the exact cause, review Tanzu Hub GraphQL/provider logs.
Prerequisite: Access to Tanzu Hub Kubernetes pod logs.
See: KB: How to access Kubernetes pod logs in Tanzu Hub for troubleshooting
SSH into the registry VM in the Tanzu Hub deployment (the VM preconfigured with kubectl and permissions).
Identify the provider pod (commonly in the tanzusm namespace):
graphql-rest-provider-service-*
Follow logs while reproducing the attach attempt:
Retry the attach operation in the Tanzu Hub UI and observe the log output.
If logs show No name matching <hostname> found:
The certificate presented by the foundation endpoint does not include the hostname Hub is using.
Fix by ensuring the foundation endpoint presents a server/leaf certificate with SAN including the exact URL hostname entered in the attach workflow (for example opsmgrXX-...example.net).
Confirm using:
If logs show unable to find valid certification path to requested target:
Tanzu Hub is unable to build a trusted certificate chain between the foundation endpoint’s server certificate and the CA certificate provided during automated attach.
This typically indicates that an incorrect or unrelated CA certificate was supplied (for example, a CA from a different foundation or an incomplete certificate chain).
Provide the correct CA certificate (and any required intermediate certificates) that signed the foundation endpoint’s server certificate.
During automated foundation attach, the attach operation fails with the following error:
hub collector is already installed: hub-tas-collector-####################
Tanzu Hub detected that the Platform Services component responsible for deploying the Hub collector is already installed on the target foundation.
Although the error message references the collector directly, the underlying condition is that the Platform Services tile is already present on the foundation.
Tanzu Hub detected that Platform Services, which is responsible for deploying the Hub collector, is already installed on the target foundation.
This can occur when:
A previous automated attach attempt partially succeeded.
Platform Services was installed manually.
The collector deployment was removed, but the Platform Services tile remains installed.
Check whether Platform Services is already installed on the foundation (for example, in the Ops Manager installation dashboard).
If Platform Services is present and a fresh automated attach is required, remove the Platform Services tile, apply changes, and retry the attach.
Alternatively, reuse or repair the existing foundation connection rather than creating a new one.
The error message is misleading. A more accurate message would be:
“Platform Services is already installed: hub-tas-collector-####################”