{"record":{"id":"669d9462f8cd7207","repo":"odysseus-dev/odysseus","slug":"rag-system-is-not-available-is-the-embedding-ser","errorCode":null,"errorMessage":"RAG system is not available — is the embedding service running?","messagePattern":"RAG system is not available — is the embedding service running\\?","errorType":"http","errorClass":"HTTPException","httpStatus":503,"severity":"error","filePath":"routes/personal_routes.py","lineNumber":284,"sourceCode":"            return {\n                \"success\": True,\n                \"message\": f\"Successfully removed {directory} from RAG index\",\n                \"directory\": directory\n            }\n\n        except HTTPException:\n            raise\n        except Exception as e:\n            logger.error(f\"Error removing directory from RAG: {e}\")\n            raise HTTPException(500, f\"Failed to remove directory: {str(e)}\")\n    \n    @router.post(\"/upload\")\n    async def upload_files_to_rag(request: Request, files: List[UploadFile] = File(...)):\n        \"\"\"Upload files directly into RAG. Supports text and PDF.\"\"\"\n        user = require_privilege(request, \"can_use_documents\")\n        rag = _rag()\n        if not rag:\n            raise HTTPException(503, \"RAG system is not available — is the embedding service running?\")\n\n        upload_dir = _personal_upload_dir_for_owner(user)\n\n        total_indexed = 0\n        total_failed = 0\n        uploaded_files = []\n\n        for upload in files:\n            try:\n                file_path, stored_name, safe_name = _unique_personal_upload_path(upload_dir, upload.filename)\n                content_bytes = await upload.read(PERSONAL_UPLOAD_MAX_BYTES + 1)\n                if len(content_bytes) > PERSONAL_UPLOAD_MAX_BYTES:\n                    logger.warning(f\"Rejected oversized personal upload: {upload.filename!r}\")\n                    total_failed += 1\n                    continue\n                with open(file_path, \"wb\") as f:\n                    f.write(content_bytes)\n","sourceCodeStart":266,"sourceCodeEnd":302,"githubUrl":"https://github.com/odysseus-dev/odysseus/blob/f9235ebbf13f693a6fd29ce70b097f6ec83705bf/routes/personal_routes.py#L266-L302","documentation":"Error \"RAG system is not available — is the embedding service running?\" thrown in odysseus-dev/odysseus.","triggerScenarios":"Triggered when the corresponding server-side validation or runtime check at the recorded location rejects the request or operation and returns this error message to the caller.","commonSituations":"See trigger scenarios.","solutions":["Start the embedding service and retry.","Check the embedding service status in Settings/Diagnostics."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f9235ebbf13f693a6fd29ce70b097f6ec83705bf","analyzedAt":"2026-08-14T21:47:48.359Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}