Problem Description
The Enterprise Workload Agent activation failed with the following error message:
Error:
Failed to activate. Resource not found.
Error in discovering URLs.
Error in discovering service PhoenixSyncServer using activation token: Service Unavailable: invalid character '<' looking for beginning of value.
Log Snippet:
level=error ts=2024-10-15T13:32:09.4648453Z filename=discoverysvcutil.go:116 method=DiscoverURLsByActivationToken message="Failed to Discover Service: PhoenixSyncServer" Error="Post https://globalapis.druva.com:443/directorysvc/v1/services/PhoenixSyncServer/deviceToken: x509: certificate signed by unknown authority"
level=error ts=2024-10-15T13:32:09.7170319Z filename=discoverysvcutil.go:120 method=DiscoverURLsByActivationToken message="Failed to Discover Service: by activation Token PhoenixSyncServer" Error="Service Unavailable: invalid character '<' looking for beginning of value"
Cause
The issue occurred because the server’s certificate store lacked the root and intermediate certificates for the Druva service URL: https://globalapis.druva.com
.
Resolution
Step 1: Export the Missing Certificates
Access the Druva service URL:
https://globalapis.druva.com
.Click on the padlock icon in the browser’s address bar and select View Certificates.
Navigate to the Details tab, click Copy to File, and save the certificate as Base-64 encoded X.509 (.CER).
Step 2: Import the Certificates
Open Microsoft Management Console (MMC) as an administrator.
Navigate to File > Add/Remove Snap-in > Certificates > Computer Account > Finish.
Expand Certificates > Trusted Root Certificate Authorities (for root certificates) or Intermediate Certificate Authorities (for intermediate certificates).
Right-click, select All Tasks > Import, and follow the import wizard to add the exported certificates.
Step 3: Restart Druva Services
After importing the certificates, restart the Druva Enterprise Workload Agent service.
Attempt to activate the agent again.