{"record":{"id":"37fc97fb740b47a8","repo":"MemPalace/mempalace","slug":"palace-at-palace-path-r-contains-multiple-backen","errorCode":null,"errorMessage":"palace at {palace_path!r} contains multiple backend artifacts: {', '.join(detected_backends)}","messagePattern":"palace at (.+?) contains multiple backend artifacts: (.+?)","errorType":"exception","errorClass":"BackendMismatchError","httpStatus":null,"severity":"error","filePath":"mempalace/palace.py","lineNumber":400,"sourceCode":"    4. Detected existing palace artifacts.\n    5. ``chroma``.\n\n    If artifacts for a different backend are already present, raise\n    ``BackendMismatchError`` so normal write paths cannot silently mix storage\n    formats in one palace directory.\n    \"\"\"\n    explicit = explicit or os.environ.get(_EXPLICIT_BACKEND_ENV)\n    selected = resolve_backend_for_palace(\n        explicit=explicit.strip().lower() if explicit else None,\n        config_value=_config_backend_value(palace_path),\n        env_value=_env_backend_value(),\n        palace_path=palace_path,\n        default=\"chroma\",\n    )\n    get_backend_class(selected)\n    detected_backends = detect_backends_for_path(palace_path)\n    if len(detected_backends) > 1:\n        raise BackendMismatchError(\n            f\"palace at {palace_path!r} contains multiple backend artifacts: \"\n            f\"{', '.join(detected_backends)}\"\n        )\n    detected = detected_backends[0] if detected_backends else None\n    if detected and detected != selected:\n        raise BackendMismatchError(\n            f\"palace at {palace_path!r} contains {detected!r} backend artifacts, \"\n            f\"but {selected!r} was selected\"\n        )\n    return selected\n\n\n_MULTI_PROCESS_WRITER_BACKENDS = frozenset({\"pgvector\", \"qdrant\"})\n\n\ndef backend_requires_single_writer(backend_name: str) -> bool:\n    \"\"\"Return whether a backend needs one process-lifetime writer owner.\n","sourceCodeStart":382,"sourceCodeEnd":418,"githubUrl":"https://github.com/MemPalace/mempalace/blob/06cb6987f02610784fefbad4b2bd5d026d164ba6/mempalace/palace.py#L382-L418","documentation":"Error \"palace at {palace_path!r} contains multiple backend artifacts: {', '.join(detected_backends)}\" thrown in MemPalace/mempalace.","triggerScenarios":"Thrown at mempalace/palace.py:400 when the library encounters an invalid state.","commonSituations":"Multiple backend artifact sets were found in one palace directory.","solutions":["Remove the artifacts of the unused backend, or select the backend explicitly"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"06cb6987f02610784fefbad4b2bd5d026d164ba6","analyzedAt":"2026-08-15T03:03:36.213Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}