Skip to content

Diagnostics, Backup, and Recovery ​

ReMe recovery protects user-owned workspace files and rebuilds catalogs, indexes, and graphs from those sources. Never delete or rewrite user memory merely to repair derived state.

Quick diagnosis ​

These commands inspect a running service. For a new deployment, first start it as shown in Quick Start. From another terminal, run these in order:

bash
reme find_reme
reme version
reme health_check
reme status
reme app_config
  • find_reme confirms the actual host, port, and PID;
  • version verifies that the CLI reaches the service;
  • health_check reports component health;
  • status estimates stateful component memory and process RSS;
  • app_config returns the effective configuration with secrets redacted.

Job execution status ​

Query the running service from another terminal:

bash
reme job_status
reme job_status name=dream_cron limit=10
reme job_status status=running

Results map Job names to execution lists, newest first, with at most limit records per Job (default 20). Each record includes an application-local id, UTC started_at/finished_at, status, a bounded error summary, step_path, step_started_at, and failed_step. Status is running, succeeded, failed, stopped (cooperative background shutdown), or cancelled. A failed response also records a failure even when no exception was raised. Terminal ERROR chunks also mark a run as failed; notifications with will_retry=true remain recoverable. Completed records clear the active step path; failures retain the innermost failed step path.

Background Jobs record each body invocation, including supervisor restarts. Cron Jobs record each nonempty init_steps execution and each scheduled trigger separately; waiting for a schedule does not create an execution. A tracked Job that has not run returns an empty list. Watcher Jobs remain running while waiting for changes; a path such as ["watch_changes_step", "update_index_step"] shows an active handler and returns to ["watch_changes_step"] afterward. Step paths describe invocation boundaries, not progress inside a Step. Executor-backed Jobs finish their records when the worker body exits, even if the outer Future was cancelled earlier.

Background/cron tracking is on by default; base/stream tracking is opt-in through jobs.<name>.track_execution. The job_status query itself is untracked by default. Records contain no request payloads or full responses, live only in application memory, and retain the latest 100 completed executions per Job by default. Configure job_history_limit to change that limit; active executions are always retained.

The Python evaluation helper check_job_count(name, app.context) reports cumulative starts, including failed and cancelled calls. Its count is independent of execution tracking, query filters, and history retention.

Logs and common symptoms ​

log_to_console and log_to_file control logging. For startup failures, inspect the first exception rather than later client connection errors.

SymptomCheck first
CLI cannot find ReMereme find_reme, process state, startup directory, and port
Automatic memory failsLLM backend, model, API key, and base URL
Search is BM25-onlyWhether an embedding store is connected to file_store
New files are absentDirectory, extension, watcher, and health_check
Studio fails but API worksInstalled web extra, static path, and browser console
Installed plugin is unavailablePython interpreter, plugins configuration, and service restart

Index maintenance ​

bash
reme reindex scope=all
reme reindex scope=bm25
reme reindex scope=embedding

reindex rebuilds BM25 and/or embedding indexes from the current file_chunks. It does not scan the workspace, rechunk files, or rebuild the wikilink graph. Diagnose the watcher first when ingestion is the problem.

When a ReMe upgrade or chunker configuration change alters chunking behavior, existing chunks do not refresh automatically. To apply the new behavior, follow Recover derived state.

Rebuild a daily index page separately:

bash
reme daily_reindex date=2026-09-04

Backup ​

Stop writes or stop the service, then back up the complete workspace. The most important sources are:

  • session/ for conversation sources;
  • resource/ for external resources;
  • daily/ for daily memory;
  • digest/ for consolidated memory.

metadata/ contains indexes, graphs, and catalogs. Backing it up accelerates restoration, but it is not the sole source of truth.

Use an explicit, stable absolute workspace_dir for durable deployments rather than relying on an incidental .reme/ under the current directory.

Migrate a workspace ​

  1. Stop the old service to prevent writes during the copy.
  2. Copy the complete workspace while preserving timestamps.
  3. Start with the new absolute path:
bash
reme start workspace_dir=/new/location/reme-memory
  1. Run health_check, status, and a representative search.
  2. Rebuild embeddings if their model or dimensions changed.

Do not push a workspace containing private conversations to a public repository.

Recover derived state ​

Do not remove anything until a backup exists. Then:

  1. preserve session/, resource/, daily/, and digest/;
  2. record the effective configuration and component backends;
  3. verify that the failure is limited to metadata/;
  4. stop the service, so shutdown persistence cannot write the old in-memory state back over the cleanup;
  5. move only the affected store's derived state to an isolated backup location, preserving unrelated catalogs;
  6. restart with the same configuration and let watchers rebuild the files in their configured watch scope;
  7. validate search, graph traversal, and daily indexes.

The internal layout of metadata files is not a public automation contract.

Concurrent editing ​

When Studio or an editor saves a complete file, pass the mtime from stat as save.expected_mtime. A save then fails if another actor changed the file after it was opened, avoiding silent overwrites.

File Jobs enforce workspace containment and per-path locking. Do not bypass them to write arbitrary absolute paths.

Released under the Apache-2.0 License.