Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Confluence

Aspire 5
Results will update as you type.
  • What is Aspire?
  • Getting Started
  • Generative AI
  • Crawling Features
  • Rest API Usage
  • Configuration
  • How-to articles
    • Configuring a Certificate Store
    • How to update Aspire 5
    • Using Aspire via HTTPS
    • Troubleshooting Aspire on Kubernetes
  • Connectors
  • Publishers
  • Workflows
  • Aspire Tools
    Calendars

You‘re viewing this with anonymous access, so some content might be blocked.
/
Troubleshooting Aspire on Kubernetes
Published Sept 08

    Troubleshooting Aspire on Kubernetes

      Common problems seen when running an Aspire 5.5 manager + worker deployment on Kubernetes, and how to identify and fix each one. Symptoms are grouped so you can jump straight to the one you are seeing. Values shown as <namespace>, <pod-ip>, etc. are placeholders.

      Where to look first

      • Manager logs – the manager brokers cluster operations and proxies node consoles, so most cross-node errors surface here: kubectl logs deploy/<manager-deploy> -n <namespace>

      • Elasticsearch aspire-log index – every node writes structured logs here. Each document carries log.server.name (the node's advertised hostname), log.severity and log.message. Query it to see what name a node registered under and to read errors from nodes whose pod logs have rotated.

      • Node registry – Aspire nodes discover each other through the shared Elasticsearch registry (heartbeat), not Hazelcast/Zookeeper. If a node is missing from the cluster view, check that it can reach Elasticsearch and that ASPIRE_JWT_SECRET matches across nodes.

      Environment variable reference

      Aspire reads each setting from a Java system property or the matching environment variable. The env form replaces dots with underscores — e.g. property com.accenture.aspire.server.hostname is set via env var com_accenture_aspire_server_hostname. Both the underscore and dotted env forms are accepted.

      Environment variable

      Property

      Purpose

      Environment variable

      Property

      Purpose

      ASPIRE_MANAGER_NODE / ASPIRE_WORKER_NODE

      —

      Selects the node role. Set exactly one to true per pod.

      com_accenture_aspire_server_hostname

      com.accenture.aspire.server.hostname

      The hostname a node advertises to its peers and the registry. Peers build backend URLs from this value, so it MUST be resolvable by the other pods and present in the TLS certificate SANs. If unset it falls back to the OS hostname (on K8s that is the non-resolvable pod name).

      com_accenture_aspire_server_ip

      com.accenture.aspire.server.ip

      Overrides the advertised IP address (defaults to the detected host address).

      ASPIRE_PORT

      org.osgi.service.http.port(.secure)

      Node HTTP/HTTPS port. Default 50505.

      ASPIRE_SSL_KEYSTORE / ASPIRE_SSL_KEYSTORE_PASS

      org.apache.felix.https.keystore(.password)

      JKS keystore (and password) used to enable Felix/Jetty HTTPS on the node.

      ASPIRE_SSL_CA

      —

      CA certificate imported into the JVM truststore so nodes trust each other's server certs.

      ASPIRE_ES_CA_FILE

      —

      Elasticsearch CA certificate imported into the JVM truststore for outbound HTTPS calls to ES.

      ASPIRE_JWT_SECRET

      —

      Shared secret used to sign/validate Aspire's internal JWTs. MUST be identical on every node.

      org.apache.felix.https.ssl.sni.hostCheck

      (same)

      Jetty SNI host check. Set false to accept requests whose Host header is not in the certificate SANs (e.g. behind a load balancer).

      1. Node console / "remote debug" panel is blank (proxy 502)

      Symptom: From the cluster-management view you open a node's debug console (the /aspire/_api/remote_aspire/… URL) and it stays blank or returns HTTP 502. Other UI pages work; your login is valid.

      How to identify: The manager log shows a proxy error naming a hostname that is not a real DNS name:

      ERROR [/CFManager/Manager] Error proxying GET https://<pod-name>:50505/aspire/ ... Error executing request to url /aspire/

      Cause: The node console is a manager-side reverse proxy. The manager builds the backend URL from the target node's advertised hostname. When com_accenture_aspire_server_hostname is not set, the node registers under its OS hostname — on Kubernetes that is the bare pod name (e.g. aspire-worker-xxxxx), which is not resolvable, so the proxy connection fails.

      Fix: Give every node a resolvable, SAN-matching advertised name. On Kubernetes the pod DNS name works well because it is always resolvable and can be covered by a wildcard cert SAN. Set it from the pod IP in the container entrypoint:

      # POD_IP and POD_NAMESPACE injected via the Downward API export com_accenture_aspire_server_hostname="${POD_IP//./-}.${POD_NAMESPACE}.pod.cluster.local" # => e.g. 10-0-3-220.my-namespace.pod.cluster.local

      Ensure the TLS certificate carries a matching SAN (e.g. *.<namespace>.pod.cluster.local), then restart the manager and worker. Confirm the fix by checking that log.server.name in the aspire-log index is the pod DNS name — not the pod name or a raw IP.

      If nodes run in a ConfigMap-mounted entrypoint, make sure the live ConfigMap actually contains this logic. Drift between the repo and the deployed ConfigMap is a common cause: the node silently falls back to the pod name.

      2. Manager ↔ worker (or load balancer) HTTPS returns 400

      Symptom: Peer-to-peer HTTPS calls, or requests through a load balancer, fail with HTTP 400 even though TLS negotiates.

      How to identify: Jetty returns 400 Bad Request for any request whose Host header (a raw pod IP, an ELB DNS name, or a domain) is not listed in the server certificate's SANs.

      Cause: Felix/Jetty enforces an SNI host check by default.

      Fix (either):

      • Disable the check: set org.apache.felix.https.ssl.sni.hostCheck=false in the node's Felix properties. This is the simplest fix behind a load balancer that forwards arbitrary Host headers.

      • Or add every name that will appear in a Host header (pod DNS wildcard, load-balancer DNS name, public domain) to the certificate SANs.

      A load-balancer health check that sends Host: <pod-IP> can also trip this and be marked unhealthy. Either disable the host check as above, or allow both 200 and 400 as healthy response codes on the target group.

      3. A node does not appear in the cluster

      Symptom: A started worker (or manager) never shows up in the cluster-management view.

      How to identify: Check the node's pod log / the aspire-log index for Elasticsearch connection errors, and confirm a heartbeat document is being written.

      Cause & fix:

      • The node cannot reach Elasticsearch — discovery is entirely through the shared ES registry. Verify network reachability and that ASPIRE_ES_CA_FILE is imported so the HTTPS call to ES succeeds.

      • ASPIRE_JWT_SECRET differs between nodes — it must be an identical, fixed value everywhere, or inter-node calls are rejected.

      • Wrong role — confirm exactly one of ASPIRE_MANAGER_NODE / ASPIRE_WORKER_NODE is true.

      4. Certificate / TLS trust errors on outbound calls

      Symptom: A node throws a certificate-path / PKIX error when calling Elasticsearch or another node over HTTPS.

      Cause: The relevant CA is not in the JVM truststore.

      Fix: Import the CA at container start. Point ASPIRE_ES_CA_FILE at the Elasticsearch CA and ASPIRE_SSL_CA at the Aspire self-signed CA; the entrypoint imports them into cacerts. A single shared CA + server cert (with the wildcard pod SAN from problem 1) covers manager↔worker traffic.

      See Configuring a Certificate Store

      5. Settings or license changes do not take effect

      Symptom: You edited settings.json (or the license) but nodes still behave as before.

      Cause: settings.json and the license are uploaded to Elasticsearch once by a bootstrap step (aspire.sh -us / -ul) and then read by every node at startup. Editing the file on disk alone does nothing.

      Fix: Re-run the bootstrap upload, then restart the manager and worker so they re-read the new configuration. Also confirm any mounted ConfigMaps/Secrets were re-applied — deployed-vs-repo drift is a frequent cause.

       

      Copyright © 2024 Accenture

      Contact Us: SCAAssetsSupport@accenture.com

      {"serverDuration": 54, "requestCorrelationId": "64a1db4b426f423a93cb70bb705afc36"}