spacedriveapp/spacedrive · error

Source entry not found

Error message

Source entry not found

What it means

Error "Source entry not found" thrown in spacedriveapp/spacedrive.

Source

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

impl ConduitManager {
	pub fn new(db: Arc<DatabaseConnection>) -> Self {
		Self { db }
	}

	/// Create a new sync conduit
	pub async fn create_conduit(
		&self,
		source_entry_id: i32,
		target_entry_id: i32,
		mode: sync_conduit::SyncMode,
		schedule: String,
	) -> Result<sync_conduit::Model> {
		// Validate entries exist and are directories
		let source = entry::Entity::find_by_id(source_entry_id)
			.one(&*self.db)
			.await?
			.ok_or_else(|| anyhow::anyhow!("Source entry not found"))?;

		let target = entry::Entity::find_by_id(target_entry_id)
			.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?;

View on GitHub (pinned to 6dfeccf211)

When it happens

Trigger: Thrown at core/src/service/file_sync/conduit.rs:30 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/f63c1d1a736ab24c. Report an issue: GitHub.