Docs/Resources/Troubleshooting

Troubleshooting

Common failure modes and how to recover from them.

The NxtOne SDK runs inside your application's own process, so every problem shows up in your service — its logs, its environment, its network — not in a separate NxtOne component. Most issues fall into one of three buckets: the SDK is not loaded, the SDK has no API key, or its events cannot leave your network. Identifying the bucket first is what makes everything else fast — the three have almost nothing in common, and the fixes never overlap.

1. Start with your service's logs

The SDK writes to your application's stderr, so its lines appear wherever your service's logs already go. Filter for them:

bash
# Docker Compose docker compose logs payment-service | grep -i nxtone # Kubernetes kubectl logs deployment/payment-service | grep -i nxtone
RuntimeA healthy start looks like
Javanxtone: agent attached (pid=…), then nxtone: application ready — capture window open
Node.jsNXTONE_SESSION_ID=<uuid>
PythonThe SDK logs at warn by default. Set NXTONE_LOG_LEVEL=debug to see what it is doing.
What you seeWhat it meansGo to
No NxtOne lines at all (Java, Node.js)The SDK never loaded. Bucket 1.Section 2, check 1
A hint that the API key is missingThe SDK is running as a no-op: your app works normally, but nothing is sent. Bucket 2.Section 2, check 2
Healthy startup lines, but an empty dashboardEvents are not leaving your network (bucket 3), or they are filed under a project you are not viewing.Section 6, then section 3
Check from inside the failing environment — the container, the pod, the CI job. What matters is the environment your running process received, not your laptop's shell or the file you edited.

2. Nothing is appearing in the dashboard

By far the most common report, and almost always one of five things. Work down the list — each step rules out everything above it:

#CheckHowIf this is it
1Is the SDK loaded?Look for the startup lines in section 1.Java: the Spring Boot starter must be on the runtime classpath; outside Spring Boot, Nxtone.attach() must be the first line of main(). Python: the @nxtone.NxtOneAgent decorator (or nxtone.run(main)) must wrap your entry point. Node.js: start with node --import @nxtone/agent/register, or call await nxtone.init() before the server listens.
2Does the process have a key?Test the variable inside the running container (below).NXTONE_API_KEY is set somewhere that is not the running process. Without it the SDK is a silent no-op — it never crashes your app, which is exactly why this is easy to miss.
3Can it reach NxtOne?Test outbound HTTPS from inside the container (section 6).Egress to the NxtOne API or Amazon S3 on port 443 is blocked, or a proxy is intercepting TLS.
4Are you looking at the right project?Compare NXTONE_PROJECT_ID with the project selected in the UI.The variable is unset, so events are filed under the SDK's fallback project — see section 3.
5Is the traffic excluded?Review NXTONE_EXCLUDE and any exclusions in your SDK config file.An over-broad exclusion silently drops everything interesting. Narrow it and restart.

Check the key without printing it:

bash
# Prints "set" or "missing" — never the key itself docker compose exec payment-service sh -c 'test -n "$NXTONE_API_KEY" && echo set || echo missing' kubectl exec deployment/payment-service -- sh -c 'test -n "$NXTONE_API_KEY" && echo set || echo missing'
Partial data is a different problem from no data. If some services appear and others do not, stop looking at the platform — it is shared. Look at what is different about the missing ones: a missing SDK dependency in that service, a missing NXTONE_API_KEY on that deployment, a different start command, or an exclusion that matches only their package names.

3. Services merged into one project

NXTONE_PROJECT_ID groups execution flows. When it is not set, the SDK falls back to a default that is not service-specific, so separate services can collapse into a single project:

RuntimeFallback when NXTONE_PROJECT_ID is unset
Javaunknown
Node.jsunknown
PythonThe project root folder name — services built from images that share a working directory such as /app can all resolve to the same name.

Set it explicitly on every service:

yaml
# On your application's own container env: - name: NXTONE_PROJECT_ID value: payment-service

Spring Boot applications can use the nxtone.project-id property instead, and Node.js can pass projectId to nxtone.init().

4. The SDK does not start in a hardened container

Read-only root filesystem (Java and Python)

The Java SDK copies its JAR into the JVM's temp directory (/tmp by default) at startup; if it can't, it logs nxtone: agent attach failed and the service runs uninstrumented. The Python SDK creates a nxtone/ directory under the system temp directory at startup. If these services run with a read-only root filesystem, mount an emptyDir (or a tmpfs in Docker) at /tmp. The Node.js SDK writes nothing to disk, so Node.js services need no change:

yaml
spec: containers: - name: payment-service securityContext: readOnlyRootFilesystem: true volumeMounts: - name: tmp mountPath: /tmp volumes: - name: tmp emptyDir: {}
Java specifics
SituationWhat to do
JDK 21 or laterAdd -XX:+EnableDynamicAgentLoading to your java command.
Shaded uber-JARSet NXTONE_AGENT_JAR to the path of the SDK JAR. Passing -javaagent also works, but is never required.

5. Last events missing after a deploy or restart

The SDK batches events in memory and flushes them when your process exits. If the orchestrator kills the process before that flush finishes, the last batch is lost. Use the exec form of CMD/ENTRYPOINT so your app is PID 1 and receives SIGTERM directly, then check the flush budget against your grace period:

RuntimeFlush budget at shutdownWhat to check
JavaUp to 5 s (NXTONE_SHUTDOWN_TIMEOUT_SECONDS)Fits within Docker's 10-second and Kubernetes' 30-second defaults.
Node.jsFixed at 5 sStart your app with node directly — npx nxtone run does not forward SIGTERM to it.
PythonUp to 60 s by default (NXTONE_SHUTDOWN_TIMEOUT)Longer than Docker's 10-second and Kubernetes' 30-second defaults: raise stop_grace_period / terminationGracePeriodSeconds, or lower the timeout. The SDK installs no SIGTERM handler — it flushes at interpreter exit or on ASGI lifespan shutdown — so your server must handle SIGTERM and exit normally.

6. Proxies and firewall egress

The SDK makes outbound HTTPS connections only. It opens no ports and needs no ingress rule. The destination is built into public SDK builds and cannot be redirected with an environment variable, so allow these hosts rather than trying to point the SDK elsewhere:

DirectionDestinationPortRequired
EgressNxtOne API — api.nxtone.ai (Java), www.api.nxtone.ai (Python, Node.js)443Yes.
EgressAmazon S3443Yes — the SDK uploads large values through presigned S3 URLs.
EgressPackage registries443Build time only. Never needed at run time.
Inbound——None. The SDK never listens.

Test from inside the container:

bash
# Any HTTP status code means the connection works; # a timeout or a certificate error means it does not. curl -sS -o /dev/null -w '%{http_code}\n' https://api.nxtone.ai # Java curl -sS -o /dev/null -w '%{http_code}\n' https://www.api.nxtone.ai # Python, Node.js

If your services reach the internet through a forward proxy, the proxy must allow these destinations.

TLS interception

If your proxy re-signs TLS, the SDK sees an untrusted certificate. Add your internal CA to the trust store your runtime uses rather than disabling verification:

bash
# Java — point the JVM at a trust store that includes your internal CA java -Djavax.net.ssl.trustStore=/etc/ssl/certs/internal-truststore.jks -jar app.jar # Node.js export NODE_EXTRA_CA_CERTS="/etc/ssl/certs/internal-ca.crt"
When NxtOne is unreachable
RuntimeWhat happens to events
JavaRetried. If NXTONE_SPOOL_DIR is set, batches that exhaust their retries are written there; spooling is off by default.
PythonWritten to a nxtone/ directory under the system temp directory when memory is full or sends fail.
Node.jsHeld in memory only; there is no spool.

7. Collecting logs for support

There are no separate NxtOne logs to find — the SDK writes to your application's stderr. Collect them from the failing environment:

EnvironmentHow to collect
Dockerdocker compose logs <your-service> > nxtone.log
Kuberneteskubectl logs deployment/<your-service> --tail=2000 > nxtone.log
Local / CI./start-your-app 2> nxtone.log

On Python, set NXTONE_LOG_LEVEL=debug before reproducing (the default is warn). Debug logging is verbose — turn it back down afterwards.

Your service's logs can contain request metadata from your own application. Review the file before sharing it, and prefer the dashboard upload over email.

8. Still stuck

Open a support ticket from the dashboard with the logs attached. A report that includes the SDK's startup lines, the SDK version from your build file, your runtime and its version, and how the SDK is activated (Spring Boot starter, Nxtone.attach(), decorator, or --import) resolves in a single round trip; one without them usually costs a day asking for exactly those things.