Public Beta. This content is updated as features change.

Troubleshooting

An index from symptoms to causes for Harnessforce setup. Covers the first session not arriving, harnessforce login failing, /harnessforce:setup stopping, past sessions not being imported, and more, with the page that has the fix.

View as Markdownllms.txt
Claude Code install commands
/plugin marketplace add lambda-script/harnessforce-agent
/plugin install harnessforce@harnessforce-agent
/harnessforce:setup

This page is an index for when Harnessforce setup gets stuck: start from the symptom, find the cause, then follow the link to the page with the fix. Headings quote the exact text shown on screen or in the terminal, so search this page for the message you see. The steps for each fix live on the linked page.

The first session doesn't arrive

The waiting screen, opened from "Wait for the first session" in the Home checklist, stays at "Waiting for telemetry. It arrives about a minute after you send a prompt in a session started after restarting Claude Code." Telemetry doesn't arrive right after a prompt (When telemetry arrives). If nothing arrives within 15 minutes of the first ingest key being issued, the waiting screen shows "Things to check."

Things to checkCauseWhere to fix it
Is the endpoint correct?OTEL_EXPORTER_OTLP_ENDPOINT and HARNESSFORCE_ENDPOINT don't match the endpoint shown on screenDistribute with managed settings, Install
Is the ingest key valid?The key in OTEL_EXPORTER_OTLP_HEADERS and HARNESSFORCE_INGEST_KEY has been revokedDistribute with managed settings, Configure Claude Code
Is the plugin enabled?The Harnessforce plugin isn't enabledInstall
Is Node.js 18 or later installed?node --version is below 18, or Node.js is missingConfigure Claude Code
Did you restart Claude Code?No prompt was sent in a session started after setupInstall
Is Codex set up?Codex wasn't restarted, or the SessionStart hook wasn't trusted with /hooksInstall
Is telemetry being sent somewhere else?Managed settings override the agent's OpenTelemetry settings with another destinationDistribute with managed settings
Is a higher-priority managed settings source in use?A source with higher priority than the managed settings file (server-managed settings, MDM) is in use, so the file's settings are ignoredDistribute with managed settings
Does a repository setting turn off the exporters?env in the repository's .claude/settings.json or .claude/settings.local.json sets an exporter to noneConfigure Claude Code
Does your network require a proxy?The machine can only reach the internet through a proxyConfigure Claude Code
Does the sender's email match your account?Claude Code has no user.email, or it doesn't match your account's email addressInstall

"You don't have a developer seat, so the telemetry you send is not stored."

Cause: Telemetry from people without a developer seat is discarded after it's received. Even with a correct setup, the waiting screen keeps showing "Waiting for telemetry."

Fix: See the developer seat notes in Getting started.

"No ingest key has been issued yet."

Cause: The workspace has no ingest key.

Fix: See Install.

"Telemetry from {agent} is being received, but it is not aggregated into sessions because the session ID is unavailable."

Cause: The telemetry received has no session ID, so it isn't grouped into sessions. {agent} is replaced by the agent's name.

Fix: What makes a session is explained in Sessions.

harnessforce login fails

When harnessforce login fails, it prints one of the messages below and exits with a nonzero code. What to do about each message is in Configure Claude Code.

The OS keychain is unavailable, so the ingest key cannot be saved

Cause: The OS keychain can't be used. On Linux, when neither the Secret Service nor the kernel keyring is available, it continues with a line starting Neither the Secret Service (GNOME Keyring or KWallet) nor the kernel keyring is available. This is most common in containers that block the kernel keyring.

Fix: See Configure Claude Code.

There are too many ingest keys in the keychain, so `harnessforce login` cannot run

Cause: The keychain holds more than 100 ingest keys. A message starting There are too many ingest keys or login entries in the keychain means more than 100 ingest keys or login entries.

Fix: These docs don't describe a fix yet. See Configure Claude Code for what the command does.

Cannot read the Claude Code user settings

Cause: The Claude Code user settings file can't be read as a JSON object, or env or enabledPlugins isn't an object.

Fix: See Configure Claude Code.

Communication with Harnessforce failed. Run `harnessforce login` again

Cause: Harnessforce couldn't be reached. This also happens on networks that only reach the internet through a proxy.

Fix: See Configure Claude Code.

Could not start waiting for the login. Stop the process using port <port>, or specify another port with `harnessforce login --port`

Cause: The port for waiting on the login couldn't be opened.

Fix: See Configure Claude Code.

The login did not complete in time. Run `harnessforce login` again

Cause: The browser login didn't finish within 5 minutes of the command starting to wait. This also happens where the browser can't reach the machine, such as on a machine you're connected to over SSH.

Fix: See Configure Claude Code.

The login was denied

Cause: You declined consent in the browser.

Fix: See Configure Claude Code.

You are not a member of any Workspace. Create a Workspace or accept an invitation, then run `harnessforce login` again

Cause: There's no workspace to choose. This appears when you cancel creating a workspace on the login page.

Fix: See Configure Claude Code.

The login failed. Run `harnessforce login` again

Cause: The login result wasn't received, or the login code was invalid.

Fix: See Configure Claude Code.

The view-only role cannot issue an ingest key. Contact a Workspace administrator

Cause: Your role in the chosen workspace is Viewer, which can't issue ingest keys.

Fix: See Configure Claude Code.

The number of active ingest keys has reached the limit. Ask members to revoke unused keys in My ingest keys on their account page

Cause: The workspace has reached its limit of active ingest keys. Members see The ingest key limit has been reached. Contact a Workspace administrator instead.

Fix: See Configure Claude Code.

Could not apply the change on the receiving side. Nothing was changed. Try again

Cause: The change couldn't be applied on the receiving side. Nothing was changed.

Fix: See Configure Claude Code.

Could not save the ingest key. Run `harnessforce login` again

Cause: The issued ingest key couldn't be saved to the keychain or user settings. If Codex's config.toml couldn't be written, the message is Could not write the Codex configuration. Run `harnessforce login` again instead.

Fix: See Configure Claude Code.

/harnessforce:setup stops partway

When /harnessforce:setup stops partway, its last line is Harnessforce setup stopped at step {n} ({name}). Fix the cause shown above, then run `/harnessforce:setup` again. Steps already done are safe to repeat. How to rerun it is in Install.

Harnessforce hooks require Node.js 18 or later

Cause: Node.js is missing or older than 18. Setup ends without installing the CLI.

Fix: See Install.

Setup stops while installing the CLI

Cause: The CLI install command failed. If npm can't write to its global install location (EACCES), setup adds a line starting npm cannot write to its global install location. If the installed CLI is older than the plugin needs, setup shows Harnessforce plugin needs CLI … or later, but CLI … is installed. Update it: … and stops without updating the CLI. The session after the restart checks the same and stops with the same line.

Fix: See Install.

Setup stops while connecting (harnessforce login)

Cause: harnessforce login failed. Its messages are listed under harnessforce login fails. A failed harnessforce login doesn't change the keychain or settings files.

Fix: See Configure Claude Code.

Importing past sessions failed. Run `harnessforce import` later.

Cause: Importing past sessions failed. Setup doesn't stop and moves on, because telemetry setup doesn't need the import.

Fix: See Install and Past sessions aren't imported on this page.

You are not logged in to Harnessforce. Run `harnessforce login`

Cause: The status check (harnessforce status) found no login on this machine. Setup moves on without stopping and shows the Home URL instead of the remaining steps.

Fix: See Install.

Could not read the Harnessforce status because communication with Harnessforce failed. Try again.

Cause: The status check (harnessforce status) couldn't reach Harnessforce. The login on this machine is unchanged. Setup moves on without stopping and shows the Home URL instead of the remaining steps.

Fix: See Install.

Harnessforce setup, part 1 of 2, is done.

Cause: This isn't a failure. Setup runs twice, with a Claude Code restart in between. The second run ends with Harnessforce setup is complete.

Fix: The full flow is in Install.

Past sessions aren't imported

harnessforce import prints how many sessions it imported as Sessions imported: <count>. If some sessions weren't imported, it follows with a line starting Sessions not imported: that counts them by reason.

No GitHub repository is assigned to a project

Cause: The workspace has no repository that is connected through the GitHub App and assigned to a project. Harnessforce stores only sessions from repositories assigned to a project, so only those sessions are imported.

Fix: Connect the GitHub App, then assign the repository to a project in step 3 of the Home checklist. Run harnessforce import again.

The session's repository is not assigned to a project

Cause: The session's repository isn't connected to the GitHub App, or isn't assigned to a project. During setup, the message is This repository is not assigned to a project, so its sessions were not imported.

Fix: Connect the GitHub App, then assign the repository to a project in step 3 of the Home checklist. Run harnessforce import again.

Sessions outside the import period

Cause: outside the period on the Sessions not imported: line counts sessions that ended before the import period. The import period is 14 days on Free and 30 days on Team. Claude Code deletes records older than 30 days by default, so older records may no longer be on the machine. Sessions outside the period can't be imported.

Fix: See Configure Claude Code.

Sessions outside a Git repository

Cause: outside a git repository counts sessions whose working directory isn't a Git repository or has no remote. These sessions aren't imported.

Fix: See Configure Claude Code.

A warning appears when a session starts

When telemetry can't be sent, the hooks show one of the lines below when a session starts. In Codex, session registration stops rather than telemetry, so telemetry is not being sent reads sessions are not being registered. The explanation is in Configure Claude Code.

Harnessforce cannot find its CLI (command not found), so telemetry is not being sent. If you changed your Node.js version, run `/harnessforce:setup` again

Cause: The hooks can't find the harnessforce CLI on PATH or in the CLI's fixed location. This happens after you switch Node.js versions with nvm or mise and remove the version you installed the CLI into (mise prune, nvm uninstall). Only Claude Code shows this.

Fix: Run /harnessforce:setup again. It installs the CLI into the current Node.js version. See Configure Claude Code.

Claude Code cannot run the Harnessforce otelHeadersHelper (command not found), so telemetry is not being sent. If you changed your Node.js version, run `/harnessforce:setup` again

Cause: Claude Code can't run the otelHeadersHelper that harnessforce login wrote to your user settings, so it sends no telemetry. This happens when the setting names harnessforce and the CLI is no longer on PATH, or when the CLI the fixed location points to was removed. Only Claude Code shows this.

Fix: Run /harnessforce:setup again. See Configure Claude Code.

Harnessforce cannot find your ingest key, so telemetry is not being sent. Run `harnessforce login`

Cause: There's no ingest key in the keychain. This happens on Linux when a reboot or similar clears the kernel keyring, or when you haven't run harnessforce login.

Fix: See Configure Claude Code.

Harnessforce could not read your ingest key from the OS keychain, so telemetry may not be sent. Unlock the keychain or run `harnessforce login`

Cause: The ingest key couldn't be read, for example because the keychain is locked.

Fix: See Configure Claude Code.

Telemetry is not being sent because the Harnessforce destination differs from the one saved by `harnessforce login`. Check this repository's settings or run `harnessforce login` again

Cause: The destination differs from the one harnessforce login saved with the ingest key. This happens when the repository's .claude/settings.json or a similar file points to another destination. Codex shows Sessions are not being registered because the Harnessforce destination differs from the one saved by `harnessforce login`. Run `harnessforce login` again.

Fix: See Configure Claude Code.

Claude Code telemetry for Harnessforce is not configured. Run `harnessforce login`

Cause: The telemetry settings that harnessforce login wrote to your user settings are missing. Only Claude Code shows this.

Fix: See Configure Claude Code.

Harnessforce plugin needs CLI … or later, but CLI … is installed. Update it: …

Cause: The installed CLI is older than the oldest version that has every command the plugin runs. Only the Claude Code plugin shows this line, at the start of every new session, even when NO_UPDATE_NOTIFIER or CI is set. Sending doesn't stop.

Fix: Run the command at the end of the line. See Keep Harnessforce up to date.

Codex is sending telemetry to Harnessforce every second. Start Codex with `harnessforce run -- codex` to send it every minute

Cause: Codex was started without harnessforce run, so it sends telemetry every second while it has events to send. Only Codex shows this. Sending doesn't stop and your event count doesn't change.

Fix: See Set up Codex with the CLI.

This Harnessforce plugin version is no longer supported, so nothing is being sent to Harnessforce. Update it: …

Cause: This version is older than the oldest version Harnessforce accepts, usually after a security fix. CLI in place of plugin means the CLI is the old one. While this line appears, nothing is sent to Harnessforce, but your session keeps running.

Fix: Run the command at the end of the line. See Keep Harnessforce up to date.

A security update for Harnessforce plugin is available. This version stops sending on … (00:00 UTC). Update it: …

Cause: A security fix was released. From the date shown, this version sends nothing to Harnessforce. A line that says stops sending on without the security notice means the version uses something Harnessforce stops accepting on that date.

Fix: Run the command at the end of the line before that date.

Harnessforce plugin … is available. Update it: …

Cause: A newer version exists. This line appears at most once a day, and not at all when NO_UPDATE_NOTIFIER or CI is set. It doesn't appear for the plugin while automatic updates are on.

Fix: Run the command at the end of the line when convenient.

The Claude Code status line shows nothing

Cause: An early version of the CLI wrapped the status line in the harnessforce usage-limits command with harnessforce usage-limits on, and later versions removed that command.

Fix: See Configure Claude Code.

Could not back up the Claude Code user settings, so the status line left by the retired `harnessforce usage-limits` command was not changed. Run `harnessforce login` again to retry

Cause: harnessforce login couldn't copy your Claude Code user settings file as a backup, so it left the status line unchanged. It wrote the other settings.

Fix: See Configure Claude Code.

Adding the marketplace fails

Cause: The marketplace repository name is wrong. The marketplace is a separate repository from the main Harnessforce repository, and the main repository isn't public, so entering harnessforce as the name fails. Also, the plugin is fetched with npm, so on a machine without Node.js 18 or later (including npm), installing the plugin fails with a Claude Code error.

Fix: The install commands at the top of Install add the marketplace under the right name.

/harnessforce:setup only replies Run `/harnessforce:setup`

Cause: If /harnessforce:setup isn't expanded as a command and reaches the agent as plain text, the setup steps don't run and the agent may reply that you should run /harnessforce:setup.

Fix: See Install.

Another plugin's hook error appears around setup

Cause: It's an error from another plugin's hook. Harnessforce hooks exit with code 0 even when they fail and never stop the session. Except on machines without Node.js, Harnessforce hooks don't show hook error. Setup doesn't stop because of it.

Fix: For machines without Node.js, see Configure Claude Code.

A checklist step doesn't complete

The checklist marks a step done only after confirming, each time it's shown, that the step actually holds. The main cases where a step stays unfinished after you've done it:

StepWhy it isn't doneWhere to fix it
Connect the GitHub App and choose repositoriesThe connection is still "Pending approval" or "Suspended." A suspended connection isn't done until it's unsuspended on GitHub and becomes activeConnect the GitHub App
Assign repositories to a projectThe repository doesn't belong to any project, so the source isn't syncingGetting started
Set up telemetryNo accepted telemetry is within the retention period. Rejected requests don't countInstall, Distribute with managed settings
Set up telemetry, Wait for the first sessionFor Members, only their own telemetry counts. They have no developer seat, or their user.email doesn't match their account's email addressThe first session doesn't arrive