Skip to content

Troubleshooting

Find the likely cause of a common 1.7.0 failure from what you observe, check it, and take the next safe step.

Each entry gives the symptom, the likely cause, how to check it and the next step. Commands run in the Core container unless stated otherwise. Two rules apply everywhere: an admitted request or a missing response does not prove that nothing happened, so inspect before resubmitting; and never delete recovery evidence (a marker, a retained capture, a partial directory) to make a retry look clean.

Sign-in refusals

An OIDC sign-in fails with a reference code

  • Likely cause: the provider answer or the callback was refused; the page shows a public error code and an opaque reference.
  • Check: find the matching line on the live_mem.auth.oidc logger. It holds only the route, the reason and the reference, never a token or claim:

    oidc_refusal route=<install|callback> reason=<code> reference=<reference>
    
  • Next step: act on the reason. auth_time_missing and auth_time_stale are sign-in policy refusals, not outages: sign in again, or review the provider's policy. provider_transport points at network policy or provider status, including an egress allow-list that omits the provider's discovery, token, key or user-info endpoints. proof_invalid points at the connection's issuer, audience or keys. runtime_unavailable means the registry cannot serve; follow the recovery boundaries. The full table is in the OIDC guide.

An imported or pending user cannot complete a first OIDC sign-in

  • Likely cause: the user is not assigned to a connection, or the connection does not allow the domain of their verified email.
  • Check: look for the user's ID under pending_user_connections in the connections file, and the domains that connection allows.
  • Next step: with Core stopped, add the assignment, then restart Core. Or give the person local sign-in with Add local sign-in on their row in Identity & Groups → Users.

The first owner's setup code is lost or expired

  • Likely cause: the one-time code is valid for 24 hours and usable once.
  • Check: the owner has no local credentials yet.
  • Next step: stop Core, issue a replacement, deliver it privately, and restart Core. This revokes earlier unused codes:

    python -m live_mem.auth_install_cli local setup \
      --store-path /data/core/authority.sqlite --user <owner-email>
    

A user who left the organization can still use their agents

  • Likely cause: disabling someone at the identity provider only stops new sign-ins. Credentials already issued stay valid until revoked or expired; 1.7.0 has no directory synchronization.
  • Check: the user's status and linked agents in the Portal.
  • Next step: suspend the user and revoke what remains, following offboarding.

Connector authorization

The browser shows "This connection cannot be completed"

  • Likely cause: the reference code names it. invalid_client: the client is not allowed (unlisted client metadata URL, unknown static ID). invalid_request, invalid_target or invalid_scope: a bad redirect, PKCE, resource or scope. providers: no session and no usable sign-in method. too_long: the request or the consent form is too large to resume.
  • Check: the client registration in the OAuth policy file (AUTH_RUNTIME_OAUTH_POLICY_FILE) and the MCP URL the client uses.
  • Next step: register the client or fix its configuration. See errors people see.

Codex reports "Dynamic client registration not supported"

  • Likely cause: 1.7.0 does not offer Dynamic Client Registration.
  • Check: how the client is configured to register.
  • Next step: use client metadata (CIMD) or a pre-registered client.

A connected client asks to sign in again, or gets 401 invalid_token

  • Likely cause: the connection was revoked, or reached its absolute lifetime. Rotation never extends it.
  • Check: whether an operator or the person revoked it, and the refresh family lifetime in the OAuth policy file.
  • Next step: this is expected. The person signs in again.
  • Likely cause: the user has no space.
  • Next step: grant the user access to a space, then retry.

A client gets 404 on an MCP session, or 503 when opening one

  • Likely cause: a stateful MCP session idle for 30 minutes is closed and answers 404; at 10,000 open sessions a new one gets 503.
  • Next step: the client initializes a new session.

A client request fails with HTTP 413

  • Likely cause: the whole serialized request exceeds MCP_REQUEST_MAX_BYTES (75 MiB by default).
  • Next step: split large batches. If you raise the budget, raise it consistently in the WAF and the application; it increases memory exposure.

Consolidation not running

Automatic consolidation never starts on a space

  • Likely cause: the effective threshold is 0, the space has no current authorization, or the authorized user lost Read, Write or Manage on it. Personal spaces inherit the instance threshold when they have no prior policy.
  • Check: Settings → Automatic consolidation of the space, or space_info, for the effective threshold, its source and the automatic state.
  • Next step: a current manager saves a threshold, as in Turn on automatic consolidation.

Automatic consolidation stopped and stays paused

  • Likely cause: a run was refused permanently, could not be proven, or could not be recovered. In a common space, the consent may also have used its three automatic starts. Its quota persists across restarts.
  • Check: the last automatic result in the panel, and the job with bank_consolidation_status(job_id).
  • Next step: inspect the job, then run a successful manual global consolidation from the Portal under current maintenance rights (it must process at least one note), or a manual compaction. Saving another threshold does not clear an uncertain run.

A consolidation was admitted but nothing completes

  • Likely cause: in authority-store mode, the hivemind-worker service executes queued jobs. Admission is not completion.
  • Check: bank_consolidation_queues for the space's activity, and the worker log on the host:

    docker compose -f docker-compose.yml -f docker-compose.auth17.yml logs --tail=100 hivemind-worker
    
  • Next step: run exactly one worker per deployment, with the same overlays and environment as Core. Do not resubmit an unknown result.

A consolidation stays running and later jobs of its space wait

  • Likely cause: the worker lost the confirmation of one storage write made for this job. The job cannot close until that write is settled, so the space runs nothing else; other spaces continue. A briefly busy authority database is not enough: the worker keeps trying to record a verified write for 15 seconds. The job is held when the database stayed busy longer, when the worker lost its lease meanwhile, or when storage gave no clear answer. The running worker then reads that write back from storage itself, about a minute after the hold, and the job leaves running: a job that stays held for minutes waits for a deletion to be settled by an operator, or for storage to answer. The held job runs no further step, but the bank may be partly updated: bank files it rewrote before the hold keep their new content, notes it had already consolidated may be gone from SHORT, and the unconfirmed write may have landed too.
  • Check: the Space overview of the Portal shows the consolidation as Needs attention, and GET /health reports degraded with services.jobs.held_jobs above zero once the job has been held for five minutes. In bank_consolidation_queues, the space's lane keeps the same running_job, whose last_activity_at no longer changes, with queued jobs behind it. bank_consolidation_status(job_id) for that job reports status: running with diagnostic: {cause: effect_unsettled, category: intervention, phase: settlement}. The worker log, read with the command of the previous entry, has the line Durable job held: reason=effect_unsettled space=<space-id> job=<job-id> …. When the confirmation could not be recorded, an earlier warning names the write and the reason: Memory effect settlement failed: producer=worker job=<job-id> space=<space-id> attempt=<event-id> … error=<code> … tries=<n>. With error=conflict, the database stayed busy for the whole 15 seconds: look for what held it at that time. A line Memory effect settlement retried: … at info level means a write was recorded after a short wait and needs nothing.
  • Next step: if the worker log has Worker DELETE needs operator settlement for this job, a restart does not help: settle that event as described at the end of this entry. If it has Worker recovery cannot read storage evidence or Worker effect reconciliation deferred, fix that first; the worker tries again every 15 seconds. Otherwise, restart the worker cleanly, allowing it the 45 seconds it needs to stop:

    docker compose -f docker-compose.yml -f docker-compose.auth17.yml stop -t 45 hivemind-worker
    docker compose -f docker-compose.yml -f docker-compose.auth17.yml start hivemind-worker
    

    Until the stopped worker's lease expires, up to one minute after the stop, the new worker exits with worker_already_active in its log and Compose restarts it; this is expected. Once the lease and a 40-second quarantine have passed, about two minutes after the stop at most, the worker reads each unconfirmed write back from storage before it runs any job. A write whose stored bytes match is recorded as committed; a missing or different object is recorded as refused. The held job then leaves running. Confirm with bank_consolidation_status(job_id); the job ends in one of three ways:

    • its consolidation result had been saved: it reports succeeded, and its compaction reports cancelled with recovery_required;
    • it carries a valid continuation checkpoint: it runs again from its verified progress, then reports succeeded after processing its remaining notes, or failed if it cannot continue, for example with error: worker_failed and diagnostic cause recovery_required;
    • otherwise it reports failed with error: lease_expired.

    Notes the job did not consolidate stay in SHORT for a later consolidation. Once the held job has ended, bank_consolidation_queues shows the next queued job of the space running or finished.

    The restart stops job execution for every space of the deployment, and a job running in another space at that moment stops as on any worker stop.

    The restart does not release the space when the unconfirmed write was a deletion: storage cannot show who removed the object. The worker leaves it unsettled and logs Worker DELETE needs operator settlement: space=<space-id>, job=<job-id>, event=<event-id>. Settle that event with the online memory pause and settlement procedure. If the worker logs Worker recovery cannot read storage evidence, it runs no job: fix storage access first. Never edit the job, its audit records or storage objects to force progress.

    Once the deletion is settled and the space resumed, the held job leaves running within about a minute and ends in one of the three ways above. With a continuation checkpoint it runs again from its verified progress. When the note named by the settled deletion is gone from SHORT, the job treats it as consolidated by its batch, which keeps the exact note, and continues; when the note is still there, the job deletes it again. A refused settlement is the expected decision for a worker deletion: the service accepts no other outcome for it.

A job ends in dead_letter (reported as failed)

  • Likely cause: three failed attempts, or a cause recognized as permanent. A job interrupted without a continuation checkpoint reports error: lease_expired and is never replayed.
  • Check: the bounded error code in the job status. When the cause is recovery_required, the worker log has one line per failed attempt naming the check that stopped it: Consolidation continuation refused: space=<space-id> job=<job-id> attempt=<n> check=<check> key=<object> marker=<batch-id> event=<event-id> code=<code>.
  • Next step: fix the underlying service first. Follow the durable worker guide for unresolved evidence. When the dead job had already written batches to the bank, the next consolidation of the same agent in that space finishes them without a new model call: it removes their remaining notes from SHORT, even if other agents have changed the bank meanwhile, and consolidates each note only once.

MID writes fail with auth17_commit_unqualified

  • Likely cause: the storage witness Core runs at startup failed. Core keeps serving, but refuses MID writes. /health does not report it.
  • Check: python -m live_mem.core.maintenance_cli status and its storage_qualification field, or the Core log line storage_qualification code=… step=….
  • Next step: fix the storage backend, then restart Core.

Long memory unavailable

long_status reports reindex_required

  • Likely cause: the space's embedding identity no longer matches the configured provider or model.
  • Next step: keep writers stopped and run one manage-authorized long_reindex(space_id) in a maintenance window, as in the bounded reindex procedure. Never delete the old collection as a shortcut.

MID archive captures are paused (PAUSED in the CLI)

  • Likely cause: three invalid_output cycles, or an inference_timeout after at least three unresolved failed cycles. Sources are retained.
  • Check: long_status.mid_archive_projection (blocked, error, rejection_reason, diagnostic), or Indexing diagnostic and Pending files in the Portal's LONG Overview. readable: false means the backlog itself could not be read.
  • Next step: resolve the cause, then use Retry shown captures…. accepted means the retry was scheduled, not that indexing finished. See memory operations.

Graph does not start, or Core refuses readiness after an upgrade

  • Likely cause: on S3, S3_ENDPOINT_URL or S3_BUCKET_NAME is missing from the environment shared by Core and Graph; or the Graph transport credential was never copied to the Core volume; or the authority store is nested below /data/core (core_volume_layout); or the operational volume was never provisioned (ordinary startup never creates it); or the internal credential was revoked or expired.
  • Check: the Core and Graph logs, and the Core volume layout.
  • Next step: set the S3 variables; run the adoption job from the upgrade page; keep the store directly in /data/core; provision a never-created operational volume as on the upgrade page, or restore a lost one from the operational snapshot of a recovery point (Back up and restore), never by reprovisioning it. A revoked internal credential is an explicit stop: a restart does not reactivate or replace it. Rotate it offline following the credential lifecycle.

Degraded health

/health looks fine but consolidation or ingestion fails at the provider

  • Likely cause: /health and system_health only discover models. A listed model is not proof of credentials, quota or working inference.
  • Check: signed in to the Portal as a deployment operator, run the inference_self_test request from that browser session, as described in Choose inference providers: verify. The Portal has no button for it, and every agent credential receives auth17_operator_unqualified whatever its grants. It makes at most one request per configured role and may spend provider budget.
  • Next step: fix the provider configuration. Never mix LLMAAS_* and INFERENCE_* settings to work around a failed startup. See readiness without spending.

Every request fails, including health, but the container is running

  • Likely cause: the application's lifespan died after startup. The process keeps listening and refuses requests; Compose's restart policy does not trigger because the process has not exited.
  • Next step: restart or recreate the container, or run a health-aware supervisor.

Core takes about a minute to serve again after a crash

  • Likely cause: one serving lease per deployment (15 seconds) plus an effect quarantine.
  • Next step: wait. Only if Core is confirmed stopped can you skip the wait. That assertion is audited, and a suspended old process could still submit a late write, a risk you accept:

    python -m live_mem.core.maintenance_cli core-lease break \
      --store-path /data/core/authority.sqlite --confirm-core-stopped
    

Core refuses to start: operational_binding_missing or operational_instance_mismatch

  • Likely cause: the bucket or the operational volume is not the one this instance was bound to.
  • Next step: see Back up and restore before any rebind.

The Portal access inventory answers 503 control_capacity

  • Likely cause: the response would exceed 450,000 JSON bytes; the inventory is not paginated.
  • Next step: use the operator native surface for larger deployments.

Still stuck

Collect the Hivemind version, the normalized error code, the relevant non-secret limits and a minimal synthetic reproduction. Never share credentials, private endpoints, notes or bank contents. The FAQ covers common agent and token errors.