Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

docs(troubleshooting): replace the nonexistent `xerj support-bundle` with real diagnostics (#1433)

xerj-org11d22da14c91
diff --git a/landing/docs/troubleshooting.html b/landing/docs/troubleshooting.html
index fbd4bada9..7ae1e721b 100644
--- a/landing/docs/troubleshooting.html
+++ b/landing/docs/troubleshooting.html
@@ -268,15 +268,15 @@ INFO xerj_cluster::raft: Higher term observed — stepping down to follower</pre
<p><strong>Fix:</strong> check <code class="inline">GET /_xerj/wal_tap/_stats</code> for gaps and retry backoff, then lower <code class="inline">poll_interval_ms</code> or raise <code class="inline">max_batch_docs</code>. There are no replicas to be stale on a single node — search reads the active memtable plus segments, so local results are always current.</p>
<h2>Getting help</h2>
- <p>Collect diagnostics before filing a bug. This command builds a self-contained tarball with the config, recent logs, and a metrics snapshot:</p>
-<pre class="code">$ xerj support-bundle --out /tmp/xerj-support-$(date +%s).tar.gz
-wrote /tmp/xerj-support-1745000000.tar.gz (384 KiB)
-contents:
- config.toml
- logs/xerj.log.gz
- metrics.txt
- cluster-health.json
- indices-stats.json</pre>
+ <p>Collect diagnostics before filing a bug. There is no single bundle command; these five read what a report needs into one directory you can attach to the issue. Ports and paths are the defaults from the <a href="/docs/operations">production guide</a> — adjust them if your config differs:</p>
+<pre class="code">$ mkdir xerj-report &amp;&amp; cd xerj-report
+$ export XERJ_API_KEY=$(sudo cat /var/lib/xerj/admin.key)
+$ xerj --version &gt; version.txt
+$ curl -s http://127.0.0.1:8080/v1/health &gt; health.json
+$ curl -s -H "Authorization: ApiKey $XERJ_API_KEY" http://127.0.0.1:8080/v1/metrics &gt; metrics.txt
+$ curl -s -H "Authorization: ApiKey $XERJ_API_KEY" http://127.0.0.1:9200/_cluster/health &gt; cluster-health.json
+$ journalctl -u xerj --since "1 hour ago" --no-pager &gt; xerj.log</pre>
+ <p>Leave the config file and <code class="inline">admin.key</code> out of the report — the key is the node's admin credential. Paste the relevant <code class="inline">[section]</code> of the config by hand instead.</p>
<p class="source-note">Source · engine/crates/xerj-server/src/main.rs · engine/crates/xerj-common/src/metrics.rs</p>