ARTESCA Registration with Maestro Fails

Problem Description

Registering an ARTESCA cluster with a Maestro application fails and the UI displays a single generic message Failed to register the cluster that does not identify the cause.

Potential causes can be:

  • An incorrect Maestro endpoint.

  • An incorrect or expired Maestro join token.

  • A Maestro CA certificate that does not match the one the endpoint presents.

  • A network path that blocks the request.

Relevant Alerts and Errors

The UI reports a single generic message for every failure mode, while the maestro-agent log on the ARTESCA cluster records the underlying error.

The log line looks as follows:

level=ERROR msg="JoinToken cannot be used to register this cluster" error="<real cause>"

The error= attribute carries the real cause. Refer to Interpret the Error Value for more information.

Root Cause

The registration check tests the endpoint, the certificate, and the join token in a single step. The UI does not expose the underlying cause when the check fails.

Problem Resolution

Identify the cause from the error= value, then correct the configuration that the value points to.

When the value points to the web application firewall (WAF) or to TLS, you must review the certificate provided in the Maestro remote configuration.

Interpret the Error Value

The following table maps each error= value to the layer where the registration fails and to its cause.

error= Value

Failure Step

Cause

failed to append provided certificate to Root CA pool

Local

The certificate provided in Privacy Enhanced Mail (PEM) format is malformed. This failure occurs before any network call.

failed to get bearer token: 403 Forbidden (also seen as 406, 429, or 503)

WAF

The WAF blocked the request outright, and the request never reached Maestro remote.

failed to decode bearer token response: invalid character '<' looking for beginning of value

WAF

The WAF answered with an HTTP 200 response containing an HTML block or a challenge page. This is the strongest WAF fingerprint.

tls: failed to verify certificate: x509: certificate signed by unknown authority

TLS

The WAF terminates TLS with its own certificate, not the certificate provided in the form.

dial tcp ...: i/o timeout or connection refused

Transport

The request never got through to the WAF or to Maestro remote.

Review the Certificate

The WAF and Maestro remote must both accept the public part shipped in the connection details. In the Maestro remote configuration, set the WAF endpoint and the certificate that matches the case in the following table.

WAF Certificate

Certificate to Provide in the Maestro Remote Configuration

Self-signed

The WAF’s own certificate

Issued by a public CA (such as Let’s Encrypt or DigiCert)

The CA certificate, either the root certificate or the root and intermediate certificates

Issued by the company’s internal CA

The internal CA certificate

Note

Once the certificate is reviewed, a new connection-details.json file matching every component is generated, so no further per-component change is required.