Common setup, runtime, and development issues with solutions.
Troubleshooting Guide
Setup Wizard Issues
Wizard shows “No TTY detected” when using curl pipe
Problem: Running curl ... | bash without a terminal redirects stdin, so the interactive wizard cannot receive keyboard input.Solution:
# Option A: Run install.sh first, then the wizard manuallycurl -sSL https://raw.githubusercontent.com/albinotonnina/echos/main/install.sh | bash# Follow the printed instructions to run: cd ~/echos && pnpm wizard# Option B: Download first, then run (preserves TTY)curl -sSL https://raw.githubusercontent.com/albinotonnina/echos/main/install.sh -o /tmp/install-echos.shbash /tmp/install-echos.sh
API key validation fails but key is correct
Problem: The wizard rejects an API key during live validation even though the key works.Solutions:
Check network connectivity — the wizard makes outbound HTTPS requests to api.anthropic.com, api.openai.com, api.telegram.org
Use --skip-validation to bypass live checks: pnpm wizard --skip-validation
Corporate proxies or firewalls may block API calls — configure HTTPS_PROXY env var before running wizard
”I have Claude Pro/Max subscription - can I use it for EchOS?”
Problem: Confusion about Anthropic subscription plans vs API access.Answer: ❌ No, subscription plans cannot be used for EchOS.
Claude Pro/Max subscriptions ($20-$200/month) are for using Claude through Anthropic’s web, desktop, and mobile apps only
They do NOT provide API access for programmatic integration
EchOS requires a separate Anthropic API account with pay-as-you-go billing
API costs are typically much lower than subscriptions for automated use cases (often ~$5/month for typical personal use)
TELEGRAM_BOT_TOKEN=your_token_from_botfatherALLOWED_USER_IDS=123456789,987654321# Anthropic:ANTHROPIC_API_KEY=sk-ant-your-key-here# or another provider (e.g. Groq):# LLM_API_KEY=gsk_...# DEFAULT_MODEL=groq/llama-3.3-70b-versatile
Get your Telegram user ID:
Message @userinfobot on Telegram
Add your ID to ALLOWED_USER_IDS
Verify the file loads (Node 20.6+):
# The start script uses --env-file flagpnpm start
Runtime Issues
Telegram Bot Conflicts
Problem: Multiple bot instances trying to poll Telegram simultaneously.Symptoms:
GrammyError: Call to 'getUpdates' failed! (409: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running)
Solution:Only one instance can poll Telegram updates at a time. The conflict can come from:
Local processes on your machine
Remote deployments (VPS, cloud instances, etc.)
Docker containers
Another developer’s machine using the same bot token
Step 1: Check local processes
ps aux | grep "tsx.*index.ts"# Or more broadlyps aux | grep echos# If only the grep command appears, no local instances are running
Step 2: Check Docker containers
docker ps | grep echos# If no output, no containers running
Step 3: Check bot webhook status
./scripts/check-telegram-bot.sh status# Look for "url" field - should be empty "" for polling
Step 4: Clear webhook and pending updates
./scripts/check-telegram-bot.sh delete-webhook# This drops pending updates and allows polling
Step 5: Check remote deployments
If you deployed to a remote server, check there:
# SSH to your serverssh user@your-server# Check for running processesps aux | grep echos# Check Docker containersdocker ps# Stop if founddocker compose down# Or kill the processpkill -f "tsx.*index.ts"
Step 6: Wait for timeout
If another instance was recently stopped, Telegram may still have an active long-polling connection (30 second timeout). Wait 30-60 seconds then try again.
docker compose ps shows echos as unhealthy even though it’s working
Problem: Prior to this fix, the Docker healthcheck did fetch('http://localhost:3000/health'), which is served by the web interface (packages/web). If ENABLE_WEB=false (e.g. Telegram-only deployments), nothing ever listens on port 3000, so the healthcheck failed permanently — even on a perfectly healthy container. This made docker compose ps useless for spotting real problems, since “unhealthy” was the permanent baseline rather than a meaningful signal.Fix: The healthcheck now checks a liveness heartbeat file (/tmp/echos-heartbeat, written every 15s by src/heartbeat.ts) instead of the web interface’s /health endpoint. This works regardless of ENABLE_WEB/ENABLE_TELEGRAM/ENABLE_MCP and still catches a wedged event loop (a hung process stops writing the heartbeat, same as it would stop responding to HTTP).If you’re still seeing “unhealthy” after upgrading:
# Confirm the container's own process can see a recent heartbeatdocker compose exec echos node -e "const fs=require('fs');console.log(Date.now()-fs.statSync('/tmp/echos-heartbeat').mtimeMs, 'ms old')"# If docker exec itself fails ("cannot exec in a stopped state") while docker inspect# still reports Running=true, the container is likely wedged (e.g. after an OOM kill# on a memory-constrained host) and Docker hasn't detected the exit. Force-recreate it:docker compose up -d --force-recreate echos
On low-memory hosts (e.g. Oracle Cloud’s free-tier VM.Standard.E2.1.Micro, 1GB RAM / no swap), a wedged-but-still-”Running” container after an OOM kill is the most common root cause. Check dmesg -T | grep -i oom on the host for confirmation, and add swap so transient spikes (e.g. the backup job’s tar/cp work) don’t trigger the OOM-killer:
sudo fallocate -l 2G /swapfilesudo chmod 600 /swapfilesudo mkswap /swapfilesudo swapon /swapfileecho '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstabecho 'vm.swappiness=10' | sudo tee /etc/sysctl.d/99-swappiness.confsudo sysctl --system
Manually added/edited markdown file not appearing in search
Problem: You added a .md file directly to the knowledge/ directory (or edited one in an external editor), but the agent can’t find it via search.How sync works:
On startup, EchOS reconciles all markdown files with SQLite and LanceDB automatically
While running, a file watcher picks up any add, change, or unlink events in real time (debounced 500 ms)
If a file isn’t being found:
Check the file has a valid id in frontmatter — files without an id field are silently skipped:
---id: some-unique-idtype: notetitle: My Notecreated: 2026-02-17T12:00:00.000Zupdated: 2026-02-17T12:00:00.000Ztags: []links: []category: uncategorized---
If you added the file while the app was stopped — just restart. The startup reconciler will pick it up:
pnpm start
If you added the file while the app is running — the file watcher should index it within ~1 second. If it doesn’t appear after a few seconds, check the logs:
pnpm start | pnpm exec pino-pretty# Look for "File watcher: upserted" or "Reconciler:" log lines
Enable debug logging to see all reconciler/watcher events:
LOG_LEVEL=debug pnpm start
Search results show stale content after editing a note externally
Problem: You edited a markdown file in VS Code or Obsidian, but the agent still returns the old content.The content hash prevents unnecessary re-indexing, so re-indexing only happens when the body text of the note changes (not just frontmatter). If the watcher picked up the change but content looks stale, wait a moment for the debounce window (500 ms) then retry.If the issue persists after restarting the app, check that the file has a valid id in its frontmatter — files without an ID are skipped by both the reconciler and the watcher.
Memory Issues
Memory stored but not recalled after /reset
Problem: You told the agent to remember something, then after /reset it doesn’t know the fact.How memory works:
remember_about_me stores facts permanently in SQLite (survives /reset)
On every new session, the top 15 memories by confidence are injected into the system prompt automatically
Additional memories beyond the top 15 are searchable via recall_knowledge
If a memory isn’t being recalled:
It may be beyond position 15 — ask explicitly: “recall what you know about X” to trigger recall_knowledge
The search uses keyword matching — use related terms: “recall what you know about my birthday” or “recall birth year”
Increase confidence when storing important facts: the agent can be told “remember this with high confidence”
To see all stored memories: ask “list everything you remember about me” — the agent will use recall_knowledge to retrieve all entries.
Content Status Issues
Article shows up in knowledge search even though I haven’t read it:
Articles saved via save_article start with status: saved (reading list), not status: read (knowledge)
If the agent is mixing them, remind it: “distinguish between saved articles and things I’ve actually read”
You can filter: “show only what I’ve actually read about X”
Reading list shows nothing:
Ask: “show my reading list” — the agent calls list_notes(status="saved")
Articles saved before this feature was introduced may have status: null — they won’t appear in filtered lists; use update_note or mark_content to set their status
Agent marks article as read when I didn’t ask:
This is intentional: when you begin actively discussing a saved article, the agent auto-marks it read
To prevent this, tell the agent you’re just asking about the topic in general, not discussing that specific article
save_conversation creates too much noise:
save_conversation is only called when you explicitly ask (“save this conversation” or “save what we discussed about X”)
It is never called automatically
CLI Issues (pnpm echos)
Empty response — agent runs but prints nothing
Most likely cause: The configured model is deprecated and the API returns an empty response.Check: Look for a deprecation warning in the output. If you see The model '...' is deprecated, update DEFAULT_MODEL in .env to a current model (e.g. claude-haiku-4-5-20251001).Debug: Run with logging enabled to see what happens:
LOG_LEVEL=info pnpm echos "hello"
Startup logs cluttering the output
By default the CLI suppresses all logs below warn. If you’re seeing INFO logs:
Check whether LOG_LEVEL is exported in your shell: echo $LOG_LEVEL
Unset it or set it to warn: unset LOG_LEVEL
Shell parse errors (zsh: parse error near '\n')
Special characters (?, >, *, !, &) in arguments are interpreted by the shell before echos sees them. Always quote arguments:
# Wrong — zsh interprets `?` and `>`pnpm echos what notes do I have about TypeScript?# Correctpnpm echos "what notes do I have about TypeScript?"
History not persisting between sessions
The history file is ~/.echos_history. If it doesn’t persist:
Check write permissions: ls -la ~/.echos_history
The file is created on the first clean exit (exit / quit / Ctrl+D). Kills via kill -9 skip the save.
YouTube Transcript Issues
”Unable to save this video” / YouTube transcript fails
Problem: The YouTube plugin uses youtube-transcript-api-js (pure JS) to fetch transcripts. Failures are usually caused by the server IP being blocked by YouTube.Symptoms:
Bot responds with “I was unable to save this video”
Use your base Webshare username — without the -rotate suffix. The app appends -rotate automatically to enable IP rotation. If you copy the username directly from the Webshare dashboard and it already ends in -rotate, remove that suffix before pasting it here.
When set, transcript requests and audio downloads route through p.webshare.io:80.
Whisper transcribes audio in the wrong language
Problem: When a YouTube video has no captions and falls back to Whisper transcription, or when you send a Telegram voice message, Whisper may misidentify the language — e.g. transcribing English audio as Welsh or another language.Symptoms:
Transcript output is garbled or in the wrong language
Voice message responses don’t match what you said
Fix: Pin the transcription language by setting WHISPER_LANGUAGE in your .env:
WHISPER_LANGUAGE=en
This accepts an ISO-639-1 two-letter code (e.g. en, fr, de, es, it, ja). When set, Whisper skips auto-detection and transcribes in the specified language. If unset, Whisper auto-detects (which can fail on short clips or accented speech).
Twitter / X Issues
”Unable to save this tweet” / Tweet fetch fails
Problem: The Twitter plugin uses the free FxTwitter API (api.fxtwitter.com). If the tweet is unavailable or the API is temporarily down, the save will fail.Symptoms:
Agent responds with “I wasn’t able to save that tweet” or similar
Logs show: save_tweet failed with an error message
Fixes:
Check the URL format — the plugin accepts these formats:
Check that the tweet exists and is public — private/protected accounts and deleted tweets cannot be fetched.
Enable debug logging to see the full error from the FxTwitter API:
LOG_LEVEL=debug pnpm echos "save this tweet: https://x.com/..."
FxTwitter rate limiting — the FxTwitter API is a free public service and may occasionally rate-limit requests. Wait a moment and try again.
Agent uses create_note instead of save_tweet
Problem: The agent creates a generic note when given a Twitter URL instead of calling save_tweet.Fix: The system prompt includes explicit URL routing. If this happens, it may indicate the system prompt wasn’t applied to the session. Try resetting the session:
Telegram: Send /reset
CLI: Exit and restart (exit or Ctrl+D)
The routing rules in the system prompt direct twitter.com and x.com URLs to save_tweet, not create_note.
MCP Server Issues
MCP server not starting
Problem: ENABLE_MCP=true is set but no “MCP server started” log line appears.Solution: Check for a port conflict on MCP_PORT (default 3939):
lsof -ti:3939
Kill the conflicting process or change MCP_PORT in .env, then restart the daemon.
Claude Code shows the MCP server as disconnected
Problem: The echos server appears in Claude Code but shows as disconnected or errors on use.Solution:
Confirm the daemon is running (pnpm start or check your service manager).
Verify the URL in .claude.json matches MCP_PORT in .env.
If MCP_API_KEY is set, confirm the Authorization header value matches exactly.
Unauthorized errors from the MCP server
Problem: Requests return 401 Unauthorized.Solution: The bearer token in your client config does not match MCP_API_KEY. Regenerate and update both:
openssl rand -hex 32 # copy this value# Update MCP_API_KEY in .env and the Authorization header in your client config# Restart the daemon
Getting Help
If you’re still stuck:
Check the logs: EchOS uses Pino for structured logging
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"EchOS","colors":{"primary":"#C4863A","light":"#D9A05C","dark":"#A86E2D"},"favicon":"https://mintcdn.com/echos/Ca3mo61xNw5OdbLD/favicon.svg?fit=max\u0026auto=format\u0026n=Ca3mo61xNw5OdbLD\u0026q=85\u0026s=da213942c65de358eba688769da5038d","logo":{"light":"https://mintcdn.com/echos/HnP32vHYfS02An2V/logo/light.svg?fit=max\u0026auto=format\u0026n=HnP32vHYfS02An2V\u0026q=85\u0026s=7568891b34454ff8f2f1c31c61cedaef","dark":"https://mintcdn.com/echos/HnP32vHYfS02An2V/logo/dark.svg?fit=max\u0026auto=format\u0026n=HnP32vHYfS02An2V\u0026q=85\u0026s=a97fc152660f723cc5b698cdb5c17970"},"background":{"decoration":null,"color":{"light":null,"dark":"#0A0A0A"}},"navbar":{"links":[{"label":"GitHub","href":"https://github.com/albinotonnina/echos"}],"primary":{"type":"button","label":"Install","href":"/distribution"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"echos","hasAudioNarration":false,"actualSubdomain":"echos","customDomains":["docs.echos.sh"],"gitSource":{"type":"github","owner":"albinotonnina","repo":"echos","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":"","_id":"6b10d5729ffae5051c40cea5"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae94863a0daa1d41e02aeba:success","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"Features","count":8},{"language":"default","tag":"Operations","count":5},{"language":"default","tag":"Getting Started","count":5},{"language":"default","tag":"Architecture","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"global.css","content":".nav-logo{height:3.5rem!important}"}]}
{"page":{"pagePath":"troubleshooting","slug":"/troubleshooting","pageMetadata":{"title":"Troubleshooting","description":"Common setup, runtime, and development issues with solutions.","href":"/troubleshooting"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Common setup, runtime, and development issues with solutions.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,hr:`hr`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`troubleshooting-guide`,children:`Troubleshooting Guide`}),`\n`,_jsx(Heading,{level:`2`,id:`setup-wizard-issues`,children:`Setup Wizard Issues`}),`\n`,_jsx(Heading,{level:`3`,id:`wizard-shows-“no-tty-detected”-when-using-curl-pipe`,children:`Wizard shows “No TTY detected” when using curl pipe`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: Running `,_jsx(_components.code,{children:`curl ... | bash`}),` without a terminal redirects stdin, so the interactive wizard cannot receive keyboard input.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solution`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Option A: Run install.sh first, then the wizard manually`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -sSL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://raw.githubusercontent.com/albinotonnina/echos/main/install.sh`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` bash`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Follow the printed instructions to run: cd ~/echos \u0026\u0026 pnpm wizard`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Option B: Download first, then run (preserves TTY)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -sSL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://raw.githubusercontent.com/albinotonnina/echos/main/install.sh`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -o`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /tmp/install-echos.sh`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bash`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /tmp/install-echos.sh`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`api-key-validation-fails-but-key-is-correct`,children:`API key validation fails but key is correct`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: The wizard rejects an API key during live validation even though the key works.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solutions`}),`:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Check network connectivity — the wizard makes outbound HTTPS requests to api.anthropic.com, api.openai.com, api.telegram.org`}),`\n`,_jsxs(_components.li,{children:[`Use `,_jsx(_components.code,{children:`--skip-validation`}),` to bypass live checks: `,_jsx(_components.code,{children:`pnpm wizard --skip-validation`})]}),`\n`,_jsxs(_components.li,{children:[`Corporate proxies or firewalls may block API calls — configure `,_jsx(_components.code,{children:`HTTPS_PROXY`}),` env var before running wizard`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`”i-have-claude-pro/max-subscription-can-i-use-it-for-echos”`,children:`”I have Claude Pro/Max subscription - can I use it for EchOS?”`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: Confusion about Anthropic subscription plans vs API access.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Answer`}),`: ❌ `,_jsx(_components.strong,{children:`No, subscription plans cannot be used for EchOS.`})]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Claude Pro/Max subscriptions (`,`$20-$`,`200/month) are for using Claude through Anthropic’s web, desktop, and mobile apps only`]}),`\n`,_jsxs(_components.li,{children:[`They `,_jsx(_components.strong,{children:`do NOT provide API access`}),` for programmatic integration`]}),`\n`,_jsx(_components.li,{children:`EchOS requires a separate Anthropic API account with pay-as-you-go billing`}),`\n`,_jsx(_components.li,{children:`API costs are typically much lower than subscriptions for automated use cases (often ~$5/month for typical personal use)`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`What you need`}),`:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Sign up for Anthropic API access at `,_jsx(_components.a,{href:`https://console.anthropic.com/`,children:`https://console.anthropic.com/`})]}),`\n`,_jsx(_components.li,{children:`Add credits or set up billing`}),`\n`,_jsx(_components.li,{children:`Generate an API key under Settings → API Keys`}),`\n`,_jsxs(_components.li,{children:[`Use that key in EchOS `,_jsx(_components.code,{children:`.env`}),` file`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`See`}),`: the `,_jsx(_components.a,{href:`https://www.anthropic.com/pricing`,children:`Anthropic pricing page`}),` for a comparison of subscription vs API plans.`]}),`\n`,_jsxs(Heading,{level:`3`,id:`wizard-exits-immediately-in-non-interactive-mode`,children:[`Wizard exits immediately in `,_jsx(_components.code,{children:`--non-interactive`}),` mode`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: Missing required env vars.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Required variables for non-interactive mode`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`ALLOWED_USER_IDS`})}),`\n`,_jsxs(_components.li,{children:[`At least one LLM key: `,_jsx(_components.code,{children:`ANTHROPIC_API_KEY`}),` or `,_jsx(_components.code,{children:`LLM_API_KEY`})]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Anthropic`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ANTHROPIC_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`sk-ant-...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ALLOWED_USER_IDS`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`123456789`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` wizard`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --non-interactive`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Other provider (e.g. Groq)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`LLM_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`gsk_...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` DEFAULT_MODEL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`groq/llama-3.3-70b-versatile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ALLOWED_USER_IDS`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`123456789`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` wizard`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --non-interactive`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`env-file-has-wrong-permissions`,children:`.env file has wrong permissions`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: Other users on the system can read your API keys.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Fix`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`chmod`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0600`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .env`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ls`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -la`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .env`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # should show: -rw------- 1 you ...`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The wizard sets `,_jsx(_components.code,{children:`0600`}),` automatically, but if you created `,_jsx(_components.code,{children:`.env`}),` manually, set it yourself.`]}),`\n`,_jsx(Heading,{level:`3`,id:`”no-env-file-found-run-pnpm-wizard”-on-startup`,children:`”No .env file found. Run: pnpm wizard” on startup`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: `,_jsx(_components.code,{children:`pnpm start`}),` exits immediately with this message.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solution`}),`: Run the setup wizard:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` wizard`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Or for CI environments:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ANTHROPIC_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ALLOWED_USER_IDS`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`...`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` wizard`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --non-interactive`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --skip-validation`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# or with a non-Anthropic provider:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`LLM_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` DEFAULT_MODEL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`groq/llama-3.3-70b-versatile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ALLOWED_USER_IDS`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`...`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` wizard`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --non-interactive`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --skip-validation`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`build-and-installation-issues`,children:`Build and Installation Issues`}),`\n`,_jsx(Heading,{level:`3`,id:`cannot-find-package-‘@echos/shared’-or-other-@echos/-packages`,children:`Cannot find package ‘@echos/shared’ (or other @echos/* packages)`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: Workspace packages aren’t built or aren’t being resolved by tsx.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Symptoms`}),`:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@echos/shared'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solutions`}),`:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Build all packages first`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` build`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`If build fails, clean and rebuild`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` clean`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` build`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Verify path mappings`}),`: The root `,_jsx(_components.code,{children:`tsconfig.json`}),` includes these mappings for tsx:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"paths\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"@echos/shared\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"./packages/shared/src/index.ts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"@echos/core\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"./packages/core/src/index.ts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // ... etc`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`lancedb-native-module-errors`,children:`LanceDB Native Module Errors`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: LanceDB native bindings missing for your platform.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Symptoms`}),`:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Error: Cannot find module '@lancedb/lancedb-darwin-x64'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Error: Cannot find module '@lancedb/lancedb-darwin-arm64'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solutions`}),`:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Intel Macs (darwin-x64)`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`The project is configured to use LanceDB `,_jsx(_components.code,{children:`0.22.3`}),` (last version with Intel Mac support)`]}),`\n`,_jsxs(_components.li,{children:[`This is set in `,_jsx(_components.code,{children:`packages/core/package.json`})]}),`\n`,_jsxs(_components.li,{children:[`If you see this error, run: `,_jsx(_components.code,{children:`pnpm install --force`})]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Apple Silicon Macs (darwin-arm64)`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Should work with LanceDB `,_jsx(_components.code,{children:`0.26.2+`})]}),`\n`,_jsxs(_components.li,{children:[`If issues persist, try: `,_jsx(_components.code,{children:`pnpm install --force`})]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Linux/Windows`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`LanceDB should auto-install the correct native binding`}),`\n`,_jsxs(_components.li,{children:[`Run: `,_jsx(_components.code,{children:`pnpm install --force`}),` if needed`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Check what’s installed`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ls`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` node_modules/.pnpm/@lancedb`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`*`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/`})]}),`\n`]})})}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`configuration-errors`,children:`Configuration Errors`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: Missing required environment variables.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Symptoms`}),`:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`5`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Error: Invalid configuration:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` telegramBotToken: Required`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` allowedUserIds: Required`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` anthropicApiKey: Required`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solution`}),`:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Copy the example file:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`cp`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .env.example`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .env`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Edit `,_jsx(_components.code,{children:`.env`}),` and fill in required values:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TELEGRAM_BOT_TOKEN`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`your_token_from_botfather`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ALLOWED_USER_IDS`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`123456789,987654321`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Anthropic:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ANTHROPIC_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`sk-ant-your-key-here`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# or another provider (e.g. Groq):`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# LLM_API_KEY=gsk_...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# DEFAULT_MODEL=groq/llama-3.3-70b-versatile`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Get your Telegram user ID:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Message @userinfobot on Telegram`}),`\n`,_jsxs(_components.li,{children:[`Add your ID to `,_jsx(_components.code,{children:`ALLOWED_USER_IDS`})]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Verify the file loads (Node 20.6+):`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# The start script uses --env-file flag`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` start`})]}),`\n`]})})}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`runtime-issues`,children:`Runtime Issues`}),`\n`,_jsx(Heading,{level:`3`,id:`telegram-bot-conflicts`,children:`Telegram Bot Conflicts`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: Multiple bot instances trying to poll Telegram simultaneously.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Symptoms`}),`:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`4`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GrammyError: Call to 'getUpdates' failed! (409: Conflict: `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`terminated by other getUpdates request; make sure that only `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`one bot instance is running)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solution`}),`:`]}),`\n`,_jsx(_components.p,{children:`Only one instance can poll Telegram updates at a time. The conflict can come from:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Local processes on your machine`}),`\n`,_jsx(_components.li,{children:`Remote deployments (VPS, cloud instances, etc.)`}),`\n`,_jsx(_components.li,{children:`Docker containers`}),`\n`,_jsx(_components.li,{children:`Another developer’s machine using the same bot token`}),`\n`]}),`\n`,_jsx(Heading,{level:`4`,id:`step-1-check-local-processes`,children:`Step 1: Check local processes`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ps`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` aux`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` grep`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tsx.*index.ts\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Or more broadly`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ps`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` aux`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` grep`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` echos`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# If only the grep command appears, no local instances are running`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`step-2-check-docker-containers`,children:`Step 2: Check Docker containers`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`docker`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ps`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` grep`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` echos`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# If no output, no containers running`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`step-3-check-bot-webhook-status`,children:`Step 3: Check bot webhook status`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`./scripts/check-telegram-bot.sh`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` status`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Look for \"url\" field - should be empty \"\" for polling`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`step-4-clear-webhook-and-pending-updates`,children:`Step 4: Clear webhook and pending updates`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`./scripts/check-telegram-bot.sh`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` delete-webhook`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# This drops pending updates and allows polling`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`step-5-check-remote-deployments`,children:`Step 5: Check remote deployments`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`If you deployed to a remote server`}),`, check there:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# SSH to your server`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ssh`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` user@your-server`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Check for running processes`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ps`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` aux`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` grep`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` echos`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Check Docker containers`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`docker`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ps`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Stop if found`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`docker`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` compose`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` down`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Or kill the process`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pkill`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tsx.*index.ts\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`step-6-wait-for-timeout`,children:`Step 6: Wait for timeout`}),`\n`,_jsxs(_components.p,{children:[`If another instance was recently stopped, Telegram may still have an active long-polling connection (30 second timeout). `,_jsx(_components.strong,{children:`Wait 30-60 seconds`}),` then try again.`]}),`\n`,_jsx(Heading,{level:`4`,id:`step-7-stop-all-instances`,children:`Step 7: Stop all instances`}),`\n`,_jsx(_components.p,{children:`If the conflict persists:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Stop local processes`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pkill`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tsx.*index.ts\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Stop Docker`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`docker`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` compose`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` down`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Clear webhook`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`./scripts/check-telegram-bot.sh`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` delete-webhook`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Wait 60 seconds`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`sleep`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 60`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Restart`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` start`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`For Production`}),`: Use webhooks instead of long-polling to avoid conflicts:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Set webhook URL (HTTPS required)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:' \"https://api.telegram.org/bot${'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TELEGRAM_BOT_TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}/setWebhook\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"url=https://your-domain.com/telegram/webhook\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"secret_token=your_random_secret_here\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Verify webhook`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:' \"https://api.telegram.org/bot${'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TELEGRAM_BOT_TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}/getWebhookInfo\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Configure in `,_jsx(_components.code,{children:`.env`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TELEGRAM_WEBHOOK_URL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`https://your-domain.com/telegram/webhook`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TELEGRAM_WEBHOOK_SECRET`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`your_random_secret_here`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Note`}),`: Implementing webhook support requires code changes in `,_jsx(_components.code,{children:`packages/telegram/src/index.ts`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`redis-connection-errors`,children:`Redis Connection Errors`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: Cannot connect to Redis.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Symptoms`}),`:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Error: connect ECONNREFUSED 127.0.0.1:6379`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solutions`}),`:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Use the Redis management script`}),` (recommended):`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Check status`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` redis:status`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Start Redis (auto-detects platform)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` redis:start`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Verify connection`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` redis:health`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Manual platform-specific start`}),` (if script fails):`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# macOS`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`brew`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` services`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` start`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` redis`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Linux (systemd)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`sudo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` systemctl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` start`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` redis`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Docker`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`docker`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -p`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 6379:6379`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --name`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` echos-redis`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` redis:7-alpine`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Check Redis URL`}),` in `,_jsx(_components.code,{children:`.env`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`REDIS_URL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`redis://localhost:6379`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Verify Redis is running`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`redis-cli`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ping`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Should return: PONG`})}),`\n`]})})}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Note`}),`: Redis is required for EchOS. If Redis is not running at startup, EchOS will exit with an error.`]}),`\n`,_jsx(Heading,{level:`3`,id:`database/storage-errors`,children:`Database/Storage Errors`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: SQLite or LanceDB initialization failures.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Symptoms`}),`:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Error: unable to open database file`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Error: ENOENT: no such file or directory`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solutions`}),`:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Create data directories`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`mkdir`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -p`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` data/db`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` data/knowledge`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` data/sessions`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Check permissions`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ls`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -la`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` data/`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Ensure directories are writable`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Check paths in `,_jsx(_components.code,{children:`.env`})]}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`KNOWLEDGE_DIR`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`./data/knowledge`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`DB_PATH`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`./data/db`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`SESSION_DIR`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`./data/sessions`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Clean state (CAUTION: deletes all data)`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`rm`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -rf`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` data/`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`mkdir`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -p`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` data/db`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` data/knowledge`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` data/sessions`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` start`})]}),`\n`]})})}),`\n`]}),`\n`]}),`\n`,_jsxs(Heading,{level:`3`,id:`docker-compose-ps-shows-echos-as-unhealthy-even-though-it’s-working`,children:[_jsx(_components.code,{children:`docker compose ps`}),` shows echos as unhealthy even though it’s working`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: Prior to this fix, the Docker healthcheck did `,_jsx(_components.code,{children:`fetch('http://localhost:3000/health')`}),`, which is served by the web interface (`,_jsx(_components.code,{children:`packages/web`}),`). If `,_jsx(_components.code,{children:`ENABLE_WEB=false`}),` (e.g. Telegram-only deployments), nothing ever listens on port 3000, so the healthcheck failed permanently — even on a perfectly healthy container. This made `,_jsx(_components.code,{children:`docker compose ps`}),` useless for spotting real problems, since “unhealthy” was the permanent baseline rather than a meaningful signal.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Fix`}),`: The healthcheck now checks a liveness heartbeat file (`,_jsx(_components.code,{children:`/tmp/echos-heartbeat`}),`, written every 15s by `,_jsx(_components.code,{children:`src/heartbeat.ts`}),`) instead of the web interface’s `,_jsx(_components.code,{children:`/health`}),` endpoint. This works regardless of `,_jsx(_components.code,{children:`ENABLE_WEB`}),`/`,_jsx(_components.code,{children:`ENABLE_TELEGRAM`}),`/`,_jsx(_components.code,{children:`ENABLE_MCP`}),` and still catches a wedged event loop (a hung process stops writing the heartbeat, same as it would stop responding to HTTP).`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`If you’re still seeing “unhealthy”`}),` after upgrading:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Confirm the container's own process can see a recent heartbeat`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`docker`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` compose`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` exec`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` echos`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` node`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -e`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"const fs=require('fs');console.log(Date.now()-fs.statSync('/tmp/echos-heartbeat').mtimeMs, 'ms old')\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# If docker exec itself fails (\"cannot exec in a stopped state\") while docker inspect`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# still reports Running=true, the container is likely wedged (e.g. after an OOM kill`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# on a memory-constrained host) and Docker hasn't detected the exit. Force-recreate it:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`docker`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` compose`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` up`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --force-recreate`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` echos`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`On low-memory hosts (e.g. Oracle Cloud’s free-tier `,_jsx(_components.code,{children:`VM.Standard.E2.1.Micro`}),`, 1GB RAM / no swap), a wedged-but-still-”Running” container after an OOM kill is the most common root cause. Check `,_jsx(_components.code,{children:`dmesg -T | grep -i oom`}),` on the host for confirmation, and add swap so transient spikes (e.g. the `,_jsx(_components.code,{children:`backup`}),` job’s `,_jsx(_components.code,{children:`tar`}),`/`,_jsx(_components.code,{children:`cp`}),` work) don’t trigger the OOM-killer:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`sudo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` fallocate`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -l`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 2G`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /swapfile`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`sudo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` chmod`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 600`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /swapfile`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`sudo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mkswap`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /swapfile`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`sudo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` swapon`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /swapfile`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`echo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '/swapfile none swap sw 0 0'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` sudo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` tee`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -a`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /etc/fstab`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`echo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'vm.swappiness=10'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` sudo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` tee`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /etc/sysctl.d/99-swappiness.conf`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`sudo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` sysctl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --system`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`development-issues`,children:`Development Issues`}),`\n`,_jsx(Heading,{level:`3`,id:`typescript-errors`,children:`TypeScript Errors`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: Type errors when editing code.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solutions`}),`:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Check all packages`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` typecheck`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Rebuild after package changes`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` build`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Use watch mode during development`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` dev`})]}),`\n`]})})}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`vitest-test-failures`,children:`Vitest Test Failures`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: Tests failing or hanging.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solutions`}),`:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Run tests`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` test`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Run specific test file`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` vitest`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` packages/shared/src/security/url-validator.test.ts`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Watch mode`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` test:watch`})]}),`\n`]})})}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`storage-sync-issues`,children:`Storage Sync Issues`}),`\n`,_jsx(Heading,{level:`3`,id:`manually-added/edited-markdown-file-not-appearing-in-search`,children:`Manually added/edited markdown file not appearing in search`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: You added a `,_jsx(_components.code,{children:`.md`}),` file directly to the `,_jsx(_components.code,{children:`knowledge/`}),` directory (or edited one in an external editor), but the agent can’t find it via search.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`How sync works`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`On startup, EchOS reconciles all markdown files with SQLite and LanceDB automatically`}),`\n`,_jsxs(_components.li,{children:[`While running, a file watcher picks up any `,_jsx(_components.code,{children:`add`}),`, `,_jsx(_components.code,{children:`change`}),`, or `,_jsx(_components.code,{children:`unlink`}),` events in real time (debounced 500 ms)`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`If a file isn’t being found`}),`:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Check the file has a valid `,_jsx(_components.code,{children:`id`}),` in frontmatter`]}),` — files without an `,_jsx(_components.code,{children:`id`}),` field are silently skipped:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`---`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`some-unique-id`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`note`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`title`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`My Note`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`created`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`2026-02-17T12:00:00.000Z`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`updated`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`2026-02-17T12:00:00.000Z`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`tags`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: []`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`links`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: []`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`category`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`uncategorized`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`---`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`If you added the file while the app was stopped`}),` — just restart. The startup reconciler will pick it up:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` start`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`If you added the file while the app is running`}),` — the file watcher should index it within ~1 second. If it doesn’t appear after a few seconds, check the logs:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` start`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` exec`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` pino-pretty`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Look for \"File watcher: upserted\" or \"Reconciler:\" log lines`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Enable debug logging`}),` to see all reconciler/watcher events:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`LOG_LEVEL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`debug`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` start`})]}),`\n`]})})}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`search-results-show-stale-content-after-editing-a-note-externally`,children:`Search results show stale content after editing a note externally`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: You edited a markdown file in VS Code or Obsidian, but the agent still returns the old content.`]}),`\n`,_jsx(_components.p,{children:`The content hash prevents unnecessary re-indexing, so re-indexing only happens when the body text of the note changes (not just frontmatter). If the watcher picked up the change but content looks stale, wait a moment for the debounce window (500 ms) then retry.`}),`\n`,_jsxs(_components.p,{children:[`If the issue persists after restarting the app, check that the file has a valid `,_jsx(_components.code,{children:`id`}),` in its frontmatter — files without an ID are skipped by both the reconciler and the watcher.`]}),`\n`,_jsx(Heading,{level:`2`,id:`memory-issues`,children:`Memory Issues`}),`\n`,_jsx(Heading,{level:`3`,id:`memory-stored-but-not-recalled-after-/reset`,children:`Memory stored but not recalled after /reset`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: You told the agent to remember something, then after `,_jsx(_components.code,{children:`/reset`}),` it doesn’t know the fact.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`How memory works`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`remember_about_me`}),` stores facts permanently in SQLite (survives `,_jsx(_components.code,{children:`/reset`}),`)`]}),`\n`,_jsx(_components.li,{children:`On every new session, the top 15 memories by confidence are injected into the system prompt automatically`}),`\n`,_jsxs(_components.li,{children:[`Additional memories beyond the top 15 are searchable via `,_jsx(_components.code,{children:`recall_knowledge`})]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`If a memory isn’t being recalled`}),`:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`It may be beyond position 15 — ask explicitly: `,_jsx(_components.em,{children:`“recall what you know about X”`}),` to trigger `,_jsx(_components.code,{children:`recall_knowledge`})]}),`\n`,_jsxs(_components.li,{children:[`The search uses keyword matching — use related terms: `,_jsx(_components.em,{children:`“recall what you know about my birthday”`}),` or `,_jsx(_components.em,{children:`“recall birth year”`})]}),`\n`,_jsxs(_components.li,{children:[`Increase confidence when storing important facts: the agent can be told `,_jsx(_components.em,{children:`“remember this with high confidence”`})]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`To see all stored memories`}),`: ask `,_jsx(_components.em,{children:`“list everything you remember about me”`}),` — the agent will use `,_jsx(_components.code,{children:`recall_knowledge`}),` to retrieve all entries.`]}),`\n`,_jsx(Heading,{level:`2`,id:`content-status-issues`,children:`Content Status Issues`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Article shows up in knowledge search even though I haven’t read it`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Articles saved via `,_jsx(_components.code,{children:`save_article`}),` start with `,_jsx(_components.code,{children:`status: saved`}),` (reading list), not `,_jsx(_components.code,{children:`status: read`}),` (knowledge)`]}),`\n`,_jsxs(_components.li,{children:[`If the agent is mixing them, remind it: `,_jsx(_components.em,{children:`“distinguish between saved articles and things I’ve actually read”`})]}),`\n`,_jsxs(_components.li,{children:[`You can filter: `,_jsx(_components.em,{children:`“show only what I’ve actually read about X”`})]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Reading list shows nothing`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Ask: `,_jsx(_components.em,{children:`“show my reading list”`}),` — the agent calls `,_jsx(_components.code,{children:`list_notes(status=\"saved\")`})]}),`\n`,_jsxs(_components.li,{children:[`Articles saved before this feature was introduced may have `,_jsx(_components.code,{children:`status: null`}),` — they won’t appear in filtered lists; use `,_jsx(_components.code,{children:`update_note`}),` or `,_jsx(_components.code,{children:`mark_content`}),` to set their status`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Agent marks article as read when I didn’t ask`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`This is intentional: when you begin actively discussing a saved article, the agent auto-marks it `,_jsx(_components.code,{children:`read`})]}),`\n`,_jsx(_components.li,{children:`To prevent this, tell the agent you’re just asking about the topic in general, not discussing that specific article`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`save_conversation`}),` creates too much noise`]}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`save_conversation`}),` is only called when you explicitly ask (“save this conversation” or “save what we discussed about X”)`]}),`\n`,_jsx(_components.li,{children:`It is never called automatically`}),`\n`]}),`\n`,_jsxs(Heading,{level:`2`,id:`cli-issues-pnpm-echos`,children:[`CLI Issues (`,_jsx(_components.code,{children:`pnpm echos`}),`)`]}),`\n`,_jsx(Heading,{level:`3`,id:`empty-response-—-agent-runs-but-prints-nothing`,children:`Empty response — agent runs but prints nothing`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Most likely cause`}),`: The configured model is deprecated and the API returns an empty response.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Check`}),`: Look for a deprecation warning in the output. If you see `,_jsx(_components.code,{children:`The model '...' is deprecated`}),`, update `,_jsx(_components.code,{children:`DEFAULT_MODEL`}),` in `,_jsx(_components.code,{children:`.env`}),` to a current model (e.g. `,_jsx(_components.code,{children:`claude-haiku-4-5-20251001`}),`).`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Debug`}),`: Run with logging enabled to see what happens:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`LOG_LEVEL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`info`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` echos`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"hello\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`startup-logs-cluttering-the-output`,children:`Startup logs cluttering the output`}),`\n`,_jsxs(_components.p,{children:[`By default the CLI suppresses all logs below `,_jsx(_components.code,{children:`warn`}),`. If you’re seeing INFO logs:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Check whether `,_jsx(_components.code,{children:`LOG_LEVEL`}),` is exported in your shell: `,_jsx(_components.code,{children:`echo $LOG_LEVEL`})]}),`\n`,_jsxs(_components.li,{children:[`Unset it or set it to `,_jsx(_components.code,{children:`warn`}),`: `,_jsx(_components.code,{children:`unset LOG_LEVEL`})]}),`\n`]}),`\n`,_jsxs(Heading,{level:`3`,id:`shell-parse-errors-zsh-parse-error-near-\\\\n`,children:[`Shell parse errors (`,_jsx(_components.code,{children:`zsh: parse error near '\\\\n'`}),`)`]}),`\n`,_jsxs(_components.p,{children:[`Special characters (`,_jsx(_components.code,{children:`?`}),`, `,_jsx(_components.code,{children:`>`}),`, `,_jsx(_components.code,{children:`*`}),`, `,_jsx(_components.code,{children:`!`}),`, `,_jsx(_components.code,{children:`\u0026`}),`) in arguments are interpreted by the shell before `,_jsx(_components.code,{children:`echos`}),` sees them. Always quote arguments:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:\"# Wrong — zsh interprets `?` and `>`\"})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` echos`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` what`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` notes`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` do`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` I`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` have`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` about`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` TypeScript?`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Correct`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` echos`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"what notes do I have about TypeScript?\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`history-not-persisting-between-sessions`,children:`History not persisting between sessions`}),`\n`,_jsxs(_components.p,{children:[`The history file is `,_jsx(_components.code,{children:`~/.echos_history`}),`. If it doesn’t persist:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Check write permissions: `,_jsx(_components.code,{children:`ls -la ~/.echos_history`})]}),`\n`,_jsxs(_components.li,{children:[`The file is created on the first clean exit (`,_jsx(_components.code,{children:`exit`}),` / `,_jsx(_components.code,{children:`quit`}),` / Ctrl+D). Kills via `,_jsx(_components.code,{children:`kill -9`}),` skip the save.`]}),`\n`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`youtube-transcript-issues`,children:`YouTube Transcript Issues`}),`\n`,_jsx(Heading,{level:`3`,id:`”unable-to-save-this-video”-/-youtube-transcript-fails`,children:`”Unable to save this video” / YouTube transcript fails`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: The YouTube plugin uses `,_jsx(_components.code,{children:`youtube-transcript-api-js`}),` (pure JS) to fetch transcripts. Failures are usually caused by the server IP being blocked by YouTube.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Symptoms`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Bot responds with “I was unable to save this video”`}),`\n`,_jsxs(_components.li,{children:[`Logs show: `,_jsx(_components.code,{children:`YouTube transcript unavailable [IpBlocked]`}),` or `,_jsx(_components.code,{children:`YouTube transcript unavailable [RequestBlocked]`})]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Fixes`}),`:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Local machine`}),`: No setup required — home IPs are not blocked by YouTube.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Docker / VPS`}),`: The Docker image includes all required JS dependencies. No extra steps needed.`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Proxy for cloud deployments`}),`:`]}),`\n`,_jsxs(_components.p,{children:[`YouTube blocks most cloud/datacenter IPs. Configure a `,_jsx(_components.a,{href:`https://webshare.io`,children:`Webshare`}),` rotating proxy in `,_jsx(_components.code,{children:`.env`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`WEBSHARE_PROXY_USERNAME`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`your_username`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`WEBSHARE_PROXY_PASSWORD`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`your_password`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Use your `,_jsx(_components.strong,{children:`base`}),` Webshare username — `,_jsx(_components.strong,{children:`without`}),` the `,_jsx(_components.code,{children:`-rotate`}),` suffix. The app appends `,_jsx(_components.code,{children:`-rotate`}),` automatically to enable IP rotation. If you copy the username directly from the Webshare dashboard and it already ends in `,_jsx(_components.code,{children:`-rotate`}),`, remove that suffix before pasting it here.`]})}),`\n`,_jsxs(_components.p,{children:[`When set, transcript requests and audio downloads route through `,_jsx(_components.code,{children:`p.webshare.io:80`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`whisper-transcribes-audio-in-the-wrong-language`,children:`Whisper transcribes audio in the wrong language`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: When a YouTube video has no captions and falls back to Whisper transcription, or when you send a Telegram voice message, Whisper may misidentify the language — e.g. transcribing English audio as Welsh or another language.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Symptoms`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Transcript output is garbled or in the wrong language`}),`\n`,_jsx(_components.li,{children:`Voice message responses don’t match what you said`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Fix`}),`: Pin the transcription language by setting `,_jsx(_components.code,{children:`WHISPER_LANGUAGE`}),` in your `,_jsx(_components.code,{children:`.env`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`WHISPER_LANGUAGE`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`en`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`This accepts an `,_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes`,children:`ISO-639-1`}),` two-letter code (e.g. `,_jsx(_components.code,{children:`en`}),`, `,_jsx(_components.code,{children:`fr`}),`, `,_jsx(_components.code,{children:`de`}),`, `,_jsx(_components.code,{children:`es`}),`, `,_jsx(_components.code,{children:`it`}),`, `,_jsx(_components.code,{children:`ja`}),`). When set, Whisper skips auto-detection and transcribes in the specified language. If unset, Whisper auto-detects (which can fail on short clips or accented speech).`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`twitter-/-x-issues`,children:`Twitter / X Issues`}),`\n`,_jsx(Heading,{level:`3`,id:`”unable-to-save-this-tweet”-/-tweet-fetch-fails`,children:`”Unable to save this tweet” / Tweet fetch fails`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: The Twitter plugin uses the free FxTwitter API (`,_jsx(_components.code,{children:`api.fxtwitter.com`}),`). If the tweet is unavailable or the API is temporarily down, the save will fail.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Symptoms`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Agent responds with “I wasn’t able to save that tweet” or similar`}),`\n`,_jsxs(_components.li,{children:[`Logs show: `,_jsx(_components.code,{children:`save_tweet failed`}),` with an error message`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Fixes`}),`:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Check the URL format`}),` — the plugin accepts these formats:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`https://twitter.com/\u003cuser>/status/\u003cid>`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`https://x.com/\u003cuser>/status/\u003cid>`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`https://mobile.twitter.com/\u003cuser>/status/\u003cid>`})}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`https://fxtwitter.com/\u003cuser>/status/\u003cid>`}),` / `,_jsx(_components.code,{children:`https://vxtwitter.com/\u003cuser>/status/\u003cid>`})]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Check that the tweet exists and is public`}),` — private/protected accounts and deleted tweets cannot be fetched.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Enable debug logging`}),` to see the full error from the FxTwitter API:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`LOG_LEVEL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`debug`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` echos`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"save this tweet: https://x.com/...\"`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`FxTwitter rate limiting`}),` — the FxTwitter API is a free public service and may occasionally rate-limit requests. Wait a moment and try again.`]}),`\n`]}),`\n`]}),`\n`,_jsxs(Heading,{level:`3`,id:`agent-uses-create_note-instead-of-save_tweet`,children:[`Agent uses `,_jsx(_components.code,{children:`create_note`}),` instead of `,_jsx(_components.code,{children:`save_tweet`})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: The agent creates a generic note when given a Twitter URL instead of calling `,_jsx(_components.code,{children:`save_tweet`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Fix`}),`: The system prompt includes explicit URL routing. If this happens, it may indicate the system prompt wasn’t applied to the session. Try resetting the session:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Telegram`}),`: Send `,_jsx(_components.code,{children:`/reset`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`CLI`}),`: Exit and restart (`,_jsx(_components.code,{children:`exit`}),` or `,_jsx(_components.code,{children:`Ctrl+D`}),`)`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The routing rules in the system prompt direct `,_jsx(_components.code,{children:`twitter.com`}),` and `,_jsx(_components.code,{children:`x.com`}),` URLs to `,_jsx(_components.code,{children:`save_tweet`}),`, not `,_jsx(_components.code,{children:`create_note`}),`.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`mcp-server-issues`,children:`MCP Server Issues`}),`\n`,_jsx(Heading,{level:`3`,id:`mcp-server-not-starting`,children:`MCP server not starting`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: `,_jsx(_components.code,{children:`ENABLE_MCP=true`}),` is set but no “MCP server started” log line appears.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solution`}),`: Check for a port conflict on `,_jsx(_components.code,{children:`MCP_PORT`}),` (default 3939):`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`lsof`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -ti:3939`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Kill the conflicting process or change `,_jsx(_components.code,{children:`MCP_PORT`}),` in `,_jsx(_components.code,{children:`.env`}),`, then restart the daemon.`]}),`\n`,_jsx(Heading,{level:`3`,id:`claude-code-shows-the-mcp-server-as-disconnected`,children:`Claude Code shows the MCP server as disconnected`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: The `,_jsx(_components.code,{children:`echos`}),` server appears in Claude Code but shows as disconnected or errors on use.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solution`}),`:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Confirm the daemon is running (`,_jsx(_components.code,{children:`pnpm start`}),` or check your service manager).`]}),`\n`,_jsxs(_components.li,{children:[`Verify the URL in `,_jsx(_components.code,{children:`.claude.json`}),` matches `,_jsx(_components.code,{children:`MCP_PORT`}),` in `,_jsx(_components.code,{children:`.env`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`If `,_jsx(_components.code,{children:`MCP_API_KEY`}),` is set, confirm the `,_jsx(_components.code,{children:`Authorization`}),` header value matches exactly.`]}),`\n`]}),`\n`,_jsxs(Heading,{level:`3`,id:`unauthorized-errors-from-the-mcp-server`,children:[_jsx(_components.code,{children:`Unauthorized`}),` errors from the MCP server`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Problem`}),`: Requests return `,_jsx(_components.code,{children:`401 Unauthorized`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solution`}),`: The bearer token in your client config does not match `,_jsx(_components.code,{children:`MCP_API_KEY`}),`. Regenerate and update both:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`openssl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` rand`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -hex`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 32`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # copy this value`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Update MCP_API_KEY in .env and the Authorization header in your client config`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Restart the daemon`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`getting-help`,children:`Getting Help`}),`\n`,_jsx(_components.p,{children:`If you’re still stuck:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Check the logs`}),`: EchOS uses Pino for structured logging`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` start`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` exec`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` pino-pretty`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Enable debug logging`}),`: Set `,_jsx(_components.code,{children:`LOG_LEVEL=debug`}),` in `,_jsx(_components.code,{children:`.env`})]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Check system requirements`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Node.js 20+ (`,_jsx(_components.code,{children:`node --version`}),`)`]}),`\n`,_jsxs(_components.li,{children:[`pnpm 9+ (`,_jsx(_components.code,{children:`pnpm --version`}),`)`]}),`\n`,_jsxs(_components.li,{children:[`Redis running (`,_jsx(_components.code,{children:`redis-cli ping`}),`)`]}),`\n`,_jsx(_components.li,{children:`Enough disk space for embeddings/vectors`}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Review security docs`}),`: See `,_jsx(_components.a,{href:`/security`,children:`Security`})]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Architecture overview`}),`: See `,_jsx(_components.a,{href:`/architecture`,children:`Architecture`})]}),`\n`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Troubleshooting","description":"Common setup, runtime, and development issues with solutions.","href":"/troubleshooting"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Troubleshooting Guide","slug":"troubleshooting-guide","depth":1,"children":[]},{"title":"Setup Wizard Issues","slug":"setup-wizard-issues","depth":2,"children":[{"title":"Wizard shows “No TTY detected” when using curl pipe","slug":"wizard-shows-“no-tty-detected”-when-using-curl-pipe","depth":3,"children":[]},{"title":"API key validation fails but key is correct","slug":"api-key-validation-fails-but-key-is-correct","depth":3,"children":[]},{"title":"”I have Claude Pro/Max subscription - can I use it for EchOS?”","slug":"”i-have-claude-pro/max-subscription-can-i-use-it-for-echos”","depth":3,"children":[]},{"title":"Wizard exits immediately in --non-interactive mode","slug":"wizard-exits-immediately-in-non-interactive-mode","depth":3,"children":[]},{"title":".env file has wrong permissions","slug":"env-file-has-wrong-permissions","depth":3,"children":[]},{"title":"”No .env file found. Run: pnpm wizard” on startup","slug":"”no-env-file-found-run-pnpm-wizard”-on-startup","depth":3,"children":[]}]},{"title":"Build and Installation Issues","slug":"build-and-installation-issues","depth":2,"children":[{"title":"Cannot find package ‘@echos/shared’ (or other @echos/* packages)","slug":"cannot-find-package-‘@echos/shared’-or-other-@echos/-packages","depth":3,"children":[]},{"title":"LanceDB Native Module Errors","slug":"lancedb-native-module-errors","depth":3,"children":[]},{"title":"Configuration Errors","slug":"configuration-errors","depth":3,"children":[]}]},{"title":"Runtime Issues","slug":"runtime-issues","depth":2,"children":[{"title":"Telegram Bot Conflicts","slug":"telegram-bot-conflicts","depth":3,"children":[]},{"title":"Step 1: Check local processes","slug":"step-1-check-local-processes","depth":4,"children":[]},{"title":"Step 2: Check Docker containers","slug":"step-2-check-docker-containers","depth":4,"children":[]},{"title":"Step 3: Check bot webhook status","slug":"step-3-check-bot-webhook-status","depth":4,"children":[]},{"title":"Step 4: Clear webhook and pending updates","slug":"step-4-clear-webhook-and-pending-updates","depth":4,"children":[]},{"title":"Step 5: Check remote deployments","slug":"step-5-check-remote-deployments","depth":4,"children":[]},{"title":"Step 6: Wait for timeout","slug":"step-6-wait-for-timeout","depth":4,"children":[]},{"title":"Step 7: Stop all instances","slug":"step-7-stop-all-instances","depth":4,"children":[]},{"title":"Redis Connection Errors","slug":"redis-connection-errors","depth":3,"children":[]},{"title":"Database/Storage Errors","slug":"database/storage-errors","depth":3,"children":[]},{"title":"docker compose ps shows echos as unhealthy even though it’s working","slug":"docker-compose-ps-shows-echos-as-unhealthy-even-though-it’s-working","depth":3,"children":[]}]},{"title":"Development Issues","slug":"development-issues","depth":2,"children":[{"title":"TypeScript Errors","slug":"typescript-errors","depth":3,"children":[]},{"title":"Vitest Test Failures","slug":"vitest-test-failures","depth":3,"children":[]}]},{"title":"Storage Sync Issues","slug":"storage-sync-issues","depth":2,"children":[{"title":"Manually added/edited markdown file not appearing in search","slug":"manually-added/edited-markdown-file-not-appearing-in-search","depth":3,"children":[]},{"title":"Search results show stale content after editing a note externally","slug":"search-results-show-stale-content-after-editing-a-note-externally","depth":3,"children":[]}]},{"title":"Memory Issues","slug":"memory-issues","depth":2,"children":[{"title":"Memory stored but not recalled after /reset","slug":"memory-stored-but-not-recalled-after-/reset","depth":3,"children":[]}]},{"title":"Content Status Issues","slug":"content-status-issues","depth":2,"children":[]},{"title":"CLI Issues (pnpm echos)","slug":"cli-issues-pnpm-echos","depth":2,"children":[{"title":"Empty response — agent runs but prints nothing","slug":"empty-response-—-agent-runs-but-prints-nothing","depth":3,"children":[]},{"title":"Startup logs cluttering the output","slug":"startup-logs-cluttering-the-output","depth":3,"children":[]},{"title":"Shell parse errors (zsh: parse error near '\\n')","slug":"shell-parse-errors-zsh-parse-error-near-\\n","depth":3,"children":[]},{"title":"History not persisting between sessions","slug":"history-not-persisting-between-sessions","depth":3,"children":[]}]},{"title":"YouTube Transcript Issues","slug":"youtube-transcript-issues","depth":2,"children":[{"title":"”Unable to save this video” / YouTube transcript fails","slug":"”unable-to-save-this-video”-/-youtube-transcript-fails","depth":3,"children":[]},{"title":"Whisper transcribes audio in the wrong language","slug":"whisper-transcribes-audio-in-the-wrong-language","depth":3,"children":[]}]},{"title":"Twitter / X Issues","slug":"twitter-/-x-issues","depth":2,"children":[{"title":"”Unable to save this tweet” / Tweet fetch fails","slug":"”unable-to-save-this-tweet”-/-tweet-fetch-fails","depth":3,"children":[]},{"title":"Agent uses create_note instead of save_tweet","slug":"agent-uses-create_note-instead-of-save_tweet","depth":3,"children":[]}]},{"title":"MCP Server Issues","slug":"mcp-server-issues","depth":2,"children":[{"title":"MCP server not starting","slug":"mcp-server-not-starting","depth":3,"children":[]},{"title":"Claude Code shows the MCP server as disconnected","slug":"claude-code-shows-the-mcp-server-as-disconnected","depth":3,"children":[]},{"title":"Unauthorized errors from the MCP server","slug":"unauthorized-errors-from-the-mcp-server","depth":3,"children":[]}]},{"title":"Getting Help","slug":"getting-help","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"echos","siteName":"EchOS","title":"Troubleshooting - EchOS","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-12T15:07:56.726Z","originalFileLocation":"troubleshooting.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Common setup, runtime, and development issues with solutions.\">\u003cmeta data-mint-head name=\"application-name\" content=\"EchOS\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/echos/h_MZAnwRp0G5NE4k/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/echos/h_MZAnwRp0G5NE4k/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/echos/h_MZAnwRp0G5NE4k/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/echos/h_MZAnwRp0G5NE4k/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/echos/h_MZAnwRp0G5NE4k/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/echos/h_MZAnwRp0G5NE4k/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/echos/h_MZAnwRp0G5NE4k/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/echos/h_MZAnwRp0G5NE4k/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/echos/h_MZAnwRp0G5NE4k/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Troubleshooting - EchOS\">\u003cmeta data-mint-head property=\"og:description\" content=\"Common setup, runtime, and development issues with solutions.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"EchOS\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.echos.sh/troubleshooting\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://echos.mintlify.site/_mintlify/api/og/v2?division=Getting+Started\u0026amp;title=Troubleshooting\u0026amp;description=Common+setup%2C+runtime%2C+and+development+issues+with+solutions.\u0026amp;theme=f81c588dc5058d6c46987c64\u0026amp;signature=01af71b907d094a8b301e3df4eedd16ce7c54a9b2de3f0dc2957af1e369cb352\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Troubleshooting - EchOS\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Common setup, runtime, and development issues with solutions.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://echos.mintlify.site/_mintlify/api/og/v2?division=Getting+Started\u0026amp;title=Troubleshooting\u0026amp;description=Common+setup%2C+runtime%2C+and+development+issues+with+solutions.\u0026amp;theme=f81c588dc5058d6c46987c64\u0026amp;signature=01af71b907d094a8b301e3df4eedd16ce7c54a9b2de3f0dc2957af1e369cb352\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/echos/h_MZAnwRp0G5NE4k/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"EchOS\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#C4863A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.echos.sh/troubleshooting\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/troubleshooting.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.echos.sh/#organization\",\"name\":\"EchOS\",\"url\":\"https://docs.echos.sh\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/echos/HnP32vHYfS02An2V/logo/light.svg?fit=max\u0026auto=format\u0026n=HnP32vHYfS02An2V\u0026q=85\u0026s=7568891b34454ff8f2f1c31c61cedaef\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.echos.sh#website\",\"name\":\"EchOS\",\"url\":\"https://docs.echos.sh\",\"publisher\":{\"@id\":\"https://docs.echos.sh/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.echos.sh/troubleshooting#webpage\",\"url\":\"https://docs.echos.sh/troubleshooting\",\"name\":\"Troubleshooting\",\"description\":\"Common setup, runtime, and development issues with solutions.\",\"dateModified\":\"2026-07-12T15:07:56.726Z\",\"isPartOf\":{\"@id\":\"https://docs.echos.sh#website\"},\"breadcrumb\":{\"@id\":\"https://docs.echos.sh/troubleshooting#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.echos.sh/troubleshooting#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Getting Started\",\"item\":\"https://docs.echos.sh/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Troubleshooting\",\"item\":\"https://docs.echos.sh/troubleshooting\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.echos.sh/troubleshooting#article\",\"headline\":\"Troubleshooting\",\"name\":\"Troubleshooting\",\"description\":\"Common setup, runtime, and development issues with solutions.\",\"url\":\"https://docs.echos.sh/troubleshooting\",\"mainEntityOfPage\":{\"@id\":\"https://docs.echos.sh/troubleshooting#webpage\"},\"dateModified\":\"2026-07-12T15:07:56.726Z\",\"publisher\":{\"@id\":\"https://docs.echos.sh/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.echos.sh#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"EchOS\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"EchOS\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/troubleshooting.md","siteName":"EchOS","nav":{"global":null,"groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Installation","sidebarTitle":"Installation","href":"/distribution"},{"title":"Deployment","href":"/deployment"},{"title":"Interfaces","description":"Configure and use Telegram, Web API, CLI, and MCP Server interfaces.","href":"/interfaces"},{"title":"Troubleshooting","href":"/troubleshooting"}]},{"group":"Architecture","pages":[{"title":"Architecture","description":"Data flow, package layout, storage, and search internals.","href":"/architecture"},{"title":"Building a Plugin","href":"/plugins"}]},{"group":"Features","pages":[{"title":"Tools Reference","href":"/tools"},{"title":"Slash Commands","href":"/slash-commands"},{"title":"Writing \u0026 Voice","href":"/writing"},{"title":"Images","href":"/images"},{"title":"Categorization","href":"/categorization"},{"title":"Knowledge Import","href":"/knowledge-import"},{"title":"Scheduler","href":"/scheduler"},{"title":"MCP Server","href":"/mcp-server"}]},{"group":"Operations","pages":[{"title":"Security","href":"/security"},{"title":"Remote Access","href":"/remote-access"},{"title":"Oracle Cloud Vault","href":"/oracle-cloud-vault"},{"title":"Releasing","href":"/releasing"},{"title":"Search Quality Benchmarks","href":"/benchmarks"}]}]},"basePath":"","title":"Troubleshooting - EchOS","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":[],"chunks":[]}