{"record":{"id":"86c407050469a215","repo":"spacedriveapp/spacedrive","slug":"conduit-already-exists-between-these-entries","errorCode":null,"errorMessage":"Conduit already exists between these entries","messagePattern":"Conduit already exists between these entries","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"core/src/service/file_sync/conduit.rs","lineNumber":51,"sourceCode":"\t\t\t.one(&*self.db)\n\t\t\t.await?\n\t\t\t.ok_or_else(|| anyhow::anyhow!(\"Target entry not found\"))?;\n\n\t\tif source.kind != 1 || target.kind != 1 {\n\t\t\treturn Err(anyhow::anyhow!(\n\t\t\t\t\"Both source and target must be directories\"\n\t\t\t));\n\t\t}\n\n\t\t// Check for duplicate conduits\n\t\tlet existing = sync_conduit::Entity::find()\n\t\t\t.filter(sync_conduit::Column::SourceEntryId.eq(source_entry_id))\n\t\t\t.filter(sync_conduit::Column::TargetEntryId.eq(target_entry_id))\n\t\t\t.one(&*self.db)\n\t\t\t.await?;\n\n\t\tif existing.is_some() {\n\t\t\treturn Err(anyhow::anyhow!(\n\t\t\t\t\"Conduit already exists between these entries\"\n\t\t\t));\n\t\t}\n\n\t\t// Create conduit\n\t\tlet now = Utc::now();\n\t\tlet conduit = sync_conduit::ActiveModel {\n\t\t\tuuid: Set(Uuid::new_v4()),\n\t\t\tsource_entry_id: Set(source_entry_id),\n\t\t\ttarget_entry_id: Set(target_entry_id),\n\t\t\tsync_mode: Set(mode.as_str().to_string()),\n\t\t\tenabled: Set(true),\n\t\t\tschedule: Set(schedule),\n\t\t\tuse_index_rules: Set(true),\n\t\t\tindex_mode_override: Set(None),\n\t\t\tparallel_transfers: Set(3),\n\t\t\tbandwidth_limit_mbps: Set(None),\n\t\t\tlast_sync_completed_at: Set(None),","sourceCodeStart":33,"sourceCodeEnd":69,"githubUrl":"https://github.com/spacedriveapp/spacedrive/blob/6dfeccf2113039e35f2ce735f945e70dc3e4ea45/core/src/service/file_sync/conduit.rs#L33-L69","documentation":"Error \"Conduit already exists between these entries\" thrown in spacedriveapp/spacedrive.","triggerScenarios":"Thrown at core/src/service/file_sync/conduit.rs:51 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6dfeccf2113039e35f2ce735f945e70dc3e4ea45","analyzedAt":"2026-08-16T11:26:17.074Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}