Symptom: 404 errors or empty responses from a local provider.Cause: The base URL is missing the /v1 suffix, or has it duplicated.Fix: Make sure your base URL ends with exactly /v1:
spaceduck config secret set /ai/secrets/bedrockApiKeyspaceduck config secret set /ai/secrets/geminiApiKeyspaceduck config secret set /ai/secrets/openrouterApiKey
Symptom: Vector memory stops working after changing embedding models.Cause: The stored vectors have a different dimension count than the new model produces.Fix: You need to rebuild vector memory:
Stop the gateway
The existing facts are preserved — only vectors need regeneration
Update the dimensions setting to match your new model
Restart the gateway
Changing your embedding model or dimensions invalidates all previously stored vectors. Keyword search (FTS5) continues to work regardless.
Symptom: Errors about maximum context length in long conversations.Cause: The conversation history exceeds the model’s context window.Fix: Spaceduck auto-compacts conversations, but very long sessions may hit limits. Start a new conversation, or increase --ctx-size on your local server.
Embeddings are disabled — toggle Semantic recall on in Settings > Memory
Embedding model quality — try a stronger model like nomic-embed-text-v1.5
Fact wasn’t extracted — check that the fact was stated clearly in a user message
You can verify what’s stored by querying the SQLite database directly:
sqlite3 data/spaceduck.db "SELECT content, slot, is_active FROM facts ORDER BY created_at DESC LIMIT 20"
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"spaceduck","colors":{"primary":"#6366f1","light":"#818cf8","dark":"#4f46e5"},"logo":{"light":"https://mintcdn.com/spaceduck/yjynPc2kO3z2QpoG/logo/spaceduck-logo.png?fit=max\u0026auto=format\u0026n=yjynPc2kO3z2QpoG\u0026q=85\u0026s=2ef8e5d90027267e20bf38c4705144e9","dark":"https://mintcdn.com/spaceduck/yjynPc2kO3z2QpoG/logo/spaceduck-logo.png?fit=max\u0026auto=format\u0026n=yjynPc2kO3z2QpoG\u0026q=85\u0026s=2ef8e5d90027267e20bf38c4705144e9"},"favicon":{"light":"/logo/spaceduck-logo.png","dark":"/logo/spaceduck-logo.png"},"navbar":{"links":[{"href":"https://github.com/maziarzamani/spaceduck","type":"github"}],"primary":{"type":"button","label":"Quickstart","href":"/quickstart"}},"footer":{"socials":{"github":"https://github.com/maziarzamani/spaceduck"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"spaceduck","hasAudioNarration":false,"actualSubdomain":"spaceduck","customDomains":["docs.spaceduck.ai"],"gitSource":{"type":"github","owner":"maziarzamani","repo":"spaceduck","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21f78f809fff710fb9c68f","collectionId":"7fdbfced-e1c1-419c-ba8a-85def7515a3e","schemaVersion":"v2"},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6a21f78f809fff710fb9c68f:success","clientVersion":"0.0.3966","searchFilterCounts":[{"language":"default","tag":"Model Providers","count":6},{"language":"default","tag":"Tools","count":6},{"language":"default","tag":"Concepts","count":4},{"language":"default","tag":"Install","count":3},{"language":"default","tag":"Platforms","count":3},{"language":"default","tag":"Start Here","count":2},{"language":"default","tag":"Reference","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"hasChatPermissions":false,"hasWebMcpPermissions":false,"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":"editor-v7-file-tree","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":"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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"reference/common-errors","slug":"/reference/common-errors","pageMetadata":{"title":"Common Errors","description":"Solutions for the most frequent issues when running Spaceduck.","href":"/reference/common-errors","hidden":false},"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: \"Solutions for the most frequent issues when running Spaceduck.\"\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`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`connection-errors`,children:`Connection errors`}),`\n`,_jsx(Heading,{level:`3`,id:`econnrefused`,children:`ECONNREFUSED`}),`\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:8080`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Cause:`}),` The server you’re trying to connect to isn’t running.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Fix:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`For llama.cpp: start `,_jsx(_components.code,{children:`llama-server`}),` on the expected port`]}),`\n`,_jsx(_components.li,{children:`For LM Studio: open the Developer tab and click Start Server`}),`\n`,_jsxs(_components.li,{children:[`For the gateway itself: run `,_jsx(_components.code,{children:`bun run dev`})]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Check which port you configured in Settings and verify the server is listening:`}),`\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:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` http://127.0.0.1:8080/v1/models`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # llama.cpp default`})]}),`\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:` http://localhost:1234/v1/models`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # LM Studio default`})]}),`\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:` http://localhost:3000/api/config`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Spaceduck gateway`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`wrong-/v1-prefix`,children:`Wrong /v1 prefix`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Symptom:`}),` 404 errors or empty responses from a local provider.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Cause:`}),` The base URL is missing the `,_jsx(_components.code,{children:`/v1`}),` suffix, or has it duplicated.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Fix:`}),` Make sure your base URL ends with exactly `,_jsx(_components.code,{children:`/v1`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Correct: `,_jsx(_components.code,{children:`http://127.0.0.1:8080/v1`})]}),`\n`,_jsxs(_components.li,{children:[`Wrong: `,_jsx(_components.code,{children:`http://127.0.0.1:8080`}),` (missing /v1)`]}),`\n`,_jsxs(_components.li,{children:[`Wrong: `,_jsx(_components.code,{children:`http://127.0.0.1:8080/v1/chat/completions`}),` (too specific)`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`authentication-errors`,children:`Authentication errors`}),`\n`,_jsx(Heading,{level:`3`,id:`401-unauthorized`,children:`401 Unauthorized`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Cause:`}),` Invalid or missing API key.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Fix by provider:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Bedrock`}),`: regenerate at AWS Console > Bedrock > API keys`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Gemini`}),`: check at `,_jsx(_components.a,{href:`https://aistudio.google.com/apikey`,children:`aistudio.google.com/apikey`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`OpenRouter`}),`: check at `,_jsx(_components.a,{href:`https://openrouter.ai/keys`,children:`openrouter.ai/keys`})]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Set the key via Settings UI or CLI:`}),`\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:`spaceduck`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` config`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` secret`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` set`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /ai/secrets/bedrockApiKey`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`spaceduck`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` config`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` secret`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` set`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /ai/secrets/geminiApiKey`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`spaceduck`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` config`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` secret`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` set`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /ai/secrets/openrouterApiKey`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`403-forbidden`,children:`403 Forbidden`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Cause:`}),` Valid key, but the model isn’t enabled in your account or region.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Fix:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Bedrock`}),`: enable the model in your AWS region’s Bedrock model access settings`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Gemini`}),`: some models require billing to be enabled`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`OpenRouter`}),`: check if the model requires a minimum credit balance`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`rate-limiting`,children:`Rate limiting`}),`\n`,_jsx(Heading,{level:`3`,id:`429-too-many-requests`,children:`429 Too Many Requests`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Cause:`}),` You’ve hit the provider’s rate limit.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Fix:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Wait a minute and retry`}),`\n`,_jsx(_components.li,{children:`Switch to a model with higher limits`}),`\n`,_jsx(_components.li,{children:`For Gemini free tier: consider upgrading to a paid plan`}),`\n`,_jsx(_components.li,{children:`For Bedrock: request a limit increase through AWS Support`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`embedding-errors`,children:`Embedding errors`}),`\n`,_jsx(Heading,{level:`3`,id:`dimension-mismatch`,children:`Dimension mismatch`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Symptom:`}),` Vector memory stops working after changing embedding models.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Cause:`}),` The stored vectors have a different dimension count than the new model produces.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Fix:`}),` You need to rebuild vector memory:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Stop the gateway`}),`\n`,_jsx(_components.li,{children:`The existing facts are preserved — only vectors need regeneration`}),`\n`,_jsx(_components.li,{children:`Update the dimensions setting to match your new model`}),`\n`,_jsx(_components.li,{children:`Restart the gateway`}),`\n`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Changing your embedding model or dimensions invalidates all previously stored vectors. Keyword search (FTS5) continues to work regardless.`})}),`\n`,_jsx(Heading,{level:`3`,id:`embedding-server-not-responding`,children:`Embedding server not responding`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Symptom:`}),` “Embedding provider connected” never shows green in Settings > Memory.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Fix:`})}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Verify the embedding server is running: `,_jsx(_components.code,{children:`curl http://127.0.0.1:8081/v1/embeddings -H \"Content-Type: application/json\" -d '{\"input\": \"test\"}'`})]}),`\n`,_jsx(_components.li,{children:`Check the Server URL in Settings > Memory matches the actual port`}),`\n`,_jsxs(_components.li,{children:[`For llama.cpp: make sure you started the server with `,_jsx(_components.code,{children:`--embeddings`})]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`chat-quality-issues`,children:`Chat quality issues`}),`\n`,_jsx(Heading,{level:`3`,id:`garbled-or-repeated-output`,children:`Garbled or repeated output`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Cause:`}),` Missing or incorrect chat template on a local model.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Fix:`}),` Add `,_jsx(_components.code,{children:`--chat-template`}),` to your llama-server command:`]}),`\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:`llama-server`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -m`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` model.gguf`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --chat-template`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` chatml`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ...`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The correct template depends on your model. Common options: `,_jsx(_components.code,{children:`chatml`}),`, `,_jsx(_components.code,{children:`llama3`}),`, `,_jsx(_components.code,{children:`mistral`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`context-length-exceeded`,children:`Context length exceeded`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Symptom:`}),` Errors about maximum context length in long conversations.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Cause:`}),` The conversation history exceeds the model’s context window.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Fix:`}),` Spaceduck auto-compacts conversations, but very long sessions may hit limits. Start a new conversation, or increase `,_jsx(_components.code,{children:`--ctx-size`}),` on your local server.`]}),`\n`,_jsx(Heading,{level:`3`,id:`memory-not-recalling-facts`,children:`Memory not recalling facts`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Cause:`}),` Multiple possible reasons:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Embeddings are disabled — toggle Semantic recall on in Settings > Memory`}),`\n`,_jsx(_components.li,{children:`Embedding model quality — try a stronger model like nomic-embed-text-v1.5`}),`\n`,_jsx(_components.li,{children:`Fact wasn’t extracted — check that the fact was stated clearly in a user message`}),`\n`]}),`\n`,_jsxs(Tip,{children:[_jsx(_components.p,{children:`You can verify what’s stored by querying the SQLite database directly:`}),_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:`sqlite3`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` data/spaceduck.db`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"SELECT content, slot, is_active FROM facts ORDER BY created_at DESC LIMIT 20\"`})]}),`\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":"Common Errors","description":"Solutions for the most frequent issues when running Spaceduck.","href":"/reference/common-errors","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Connection errors","slug":"connection-errors","depth":2,"children":[{"title":"ECONNREFUSED","slug":"econnrefused","depth":3,"children":[]},{"title":"Wrong /v1 prefix","slug":"wrong-/v1-prefix","depth":3,"children":[]}]},{"title":"Authentication errors","slug":"authentication-errors","depth":2,"children":[{"title":"401 Unauthorized","slug":"401-unauthorized","depth":3,"children":[]},{"title":"403 Forbidden","slug":"403-forbidden","depth":3,"children":[]}]},{"title":"Rate limiting","slug":"rate-limiting","depth":2,"children":[{"title":"429 Too Many Requests","slug":"429-too-many-requests","depth":3,"children":[]}]},{"title":"Embedding errors","slug":"embedding-errors","depth":2,"children":[{"title":"Dimension mismatch","slug":"dimension-mismatch","depth":3,"children":[]},{"title":"Embedding server not responding","slug":"embedding-server-not-responding","depth":3,"children":[]}]},{"title":"Chat quality issues","slug":"chat-quality-issues","depth":2,"children":[{"title":"Garbled or repeated output","slug":"garbled-or-repeated-output","depth":3,"children":[]},{"title":"Context length exceeded","slug":"context-length-exceeded","depth":3,"children":[]},{"title":"Memory not recalling facts","slug":"memory-not-recalling-facts","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"spaceduck","siteName":"spaceduck","title":"Common Errors - spaceduck","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-02-22T20:50:16.022Z","originalFileLocation":"reference/common-errors.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=\"Solutions for the most frequent issues when running Spaceduck.\">\u003cmeta data-mint-head name=\"application-name\" content=\"spaceduck\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/spaceduck/VfOh6TQq6PCiR9F9/_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/spaceduck/VfOh6TQq6PCiR9F9/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/spaceduck/VfOh6TQq6PCiR9F9/_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/spaceduck/VfOh6TQq6PCiR9F9/_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/spaceduck/VfOh6TQq6PCiR9F9/_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/spaceduck/VfOh6TQq6PCiR9F9/_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/spaceduck/VfOh6TQq6PCiR9F9/_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/spaceduck/VfOh6TQq6PCiR9F9/_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/spaceduck/VfOh6TQq6PCiR9F9/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Common Errors - spaceduck\">\u003cmeta data-mint-head property=\"og:description\" content=\"Solutions for the most frequent issues when running Spaceduck.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"spaceduck\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.spaceduck.ai/reference/common-errors\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://spaceduck.mintlify.app/_mintlify/api/og/v2?division=Reference\u0026amp;title=Common+Errors\u0026amp;description=Solutions+for+the+most+frequent+issues+when+running+Spaceduck.\u0026amp;theme=1a40f664567fd89c8b75e094\u0026amp;signature=d8ba7c376ca8e7c394b1285726d67951b38bb6686b42bedacfe01b0d7f5dfc61\">\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=\"Common Errors - spaceduck\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Solutions for the most frequent issues when running Spaceduck.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://spaceduck.mintlify.app/_mintlify/api/og/v2?division=Reference\u0026amp;title=Common+Errors\u0026amp;description=Solutions+for+the+most+frequent+issues+when+running+Spaceduck.\u0026amp;theme=1a40f664567fd89c8b75e094\u0026amp;signature=d8ba7c376ca8e7c394b1285726d67951b38bb6686b42bedacfe01b0d7f5dfc61\">\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/spaceduck/VfOh6TQq6PCiR9F9/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"spaceduck\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366f1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.spaceduck.ai/reference/common-errors\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/reference/common-errors.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.spaceduck.ai/#organization\",\"name\":\"spaceduck\",\"url\":\"https://docs.spaceduck.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/spaceduck/yjynPc2kO3z2QpoG/logo/spaceduck-logo.png?fit=max\u0026auto=format\u0026n=yjynPc2kO3z2QpoG\u0026q=85\u0026s=2ef8e5d90027267e20bf38c4705144e9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.spaceduck.ai#website\",\"name\":\"spaceduck\",\"url\":\"https://docs.spaceduck.ai\",\"publisher\":{\"@id\":\"https://docs.spaceduck.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.spaceduck.ai/reference/common-errors#webpage\",\"url\":\"https://docs.spaceduck.ai/reference/common-errors\",\"name\":\"Common Errors\",\"description\":\"Solutions for the most frequent issues when running Spaceduck.\",\"dateModified\":\"2026-02-22T20:50:16.022Z\",\"isPartOf\":{\"@id\":\"https://docs.spaceduck.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.spaceduck.ai/reference/common-errors#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.spaceduck.ai/reference/common-errors#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"spaceduck\",\"item\":\"https://docs.spaceduck.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Common Errors\",\"item\":\"https://docs.spaceduck.ai/reference/common-errors\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.spaceduck.ai/reference/common-errors#article\",\"headline\":\"Common Errors\",\"name\":\"Common Errors\",\"description\":\"Solutions for the most frequent issues when running Spaceduck.\",\"url\":\"https://docs.spaceduck.ai/reference/common-errors\",\"mainEntityOfPage\":{\"@id\":\"https://docs.spaceduck.ai/reference/common-errors#webpage\"},\"dateModified\":\"2026-02-22T20:50:16.022Z\",\"publisher\":{\"@id\":\"https://docs.spaceduck.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.spaceduck.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"spaceduck\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"spaceduck","nav":{"global":null,"groups":[{"group":"Start Here","pages":[{"title":"Introduction","href":"/index","hidden":false},{"title":"Quickstart","href":"/quickstart"}]},{"group":"Install","pages":[{"title":"Installer","href":"/install/installer","hidden":false},{"title":"From Source","href":"/install/from-source","hidden":false},{"title":"Docker","href":"/install/docker","hidden":false}]},{"group":"Model Providers","pages":[{"title":"Model Providers","href":"/providers/overview","hidden":false},{"title":"llama.cpp","href":"/providers/llamacpp","hidden":false},{"title":"LM Studio","href":"/providers/lmstudio","hidden":false},{"title":"AWS Bedrock","href":"/providers/bedrock","hidden":false},{"title":"Google Gemini","href":"/providers/gemini","hidden":false},{"title":"OpenRouter","href":"/providers/openrouter","hidden":false}]},{"group":"Platforms","pages":[{"title":"Gateway","href":"/platforms/gateway"},{"title":"Desktop App","href":"/platforms/desktop","hidden":false},{"title":"CLI","href":"/platforms/cli","hidden":false}]},{"group":"Tools","pages":[{"title":"Tools","href":"/tools/overview","hidden":false},{"title":"Browser","href":"/tools/browser","hidden":false},{"title":"Web Search","href":"/tools/web-search","hidden":false},{"title":"Web Fetch","href":"/tools/web-fetch","hidden":false},{"title":"Document Scanning","href":"/tools/document-scanning","hidden":false},{"title":"Charts","href":"/tools/charts","hidden":false}]},{"group":"Concepts","pages":[{"title":"Memory","href":"/concepts/memory"},{"title":"Scheduler","href":"/concepts/scheduler","hidden":false},{"title":"Skills","href":"/concepts/skills","hidden":false},{"title":"Security","description":"How spaceduck prevents injection attacks, isolates memory, enforces budgets, and sandboxes skills.","href":"/concepts/security","hidden":false}]},{"group":"Reference","pages":[{"title":"Common Errors","href":"/reference/common-errors","hidden":false}]}]},"title":"Common Errors - spaceduck","buildId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","deploymentId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","dynamics":[],"chunks":[]}