spacedriveapp/spacedrive · error

Conduit already exists between these entries

Error message

Conduit already exists between these entries

What it means

Error "Conduit already exists between these entries" thrown in spacedriveapp/spacedrive.

Source

Thrown at core/src/service/file_sync/conduit.rs:51

			.one(&*self.db)
			.await?
			.ok_or_else(|| anyhow::anyhow!("Target entry not found"))?;

		if source.kind != 1 || target.kind != 1 {
			return Err(anyhow::anyhow!(
				"Both source and target must be directories"
			));
		}

		// Check for duplicate conduits
		let existing = sync_conduit::Entity::find()
			.filter(sync_conduit::Column::SourceEntryId.eq(source_entry_id))
			.filter(sync_conduit::Column::TargetEntryId.eq(target_entry_id))
			.one(&*self.db)
			.await?;

		if existing.is_some() {
			return Err(anyhow::anyhow!(
				"Conduit already exists between these entries"
			));
		}

		// Create conduit
		let now = Utc::now();
		let conduit = sync_conduit::ActiveModel {
			uuid: Set(Uuid::new_v4()),
			source_entry_id: Set(source_entry_id),
			target_entry_id: Set(target_entry_id),
			sync_mode: Set(mode.as_str().to_string()),
			enabled: Set(true),
			schedule: Set(schedule),
			use_index_rules: Set(true),
			index_mode_override: Set(None),
			parallel_transfers: Set(3),
			bandwidth_limit_mbps: Set(None),
			last_sync_completed_at: Set(None),

View on GitHub (pinned to 6dfeccf211)

When it happens

Trigger: Thrown at core/src/service/file_sync/conduit.rs:51 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of spacedriveapp/spacedrive@6dfeccf211 (2026-08-16). Data as JSON: /api/errors/86c407050469a215. Report an issue: GitHub.