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/resolver.rs:80

	DeletedVsModified,
	TypeMismatch,
}

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

	/// Calculate sync operations for a conduit
	pub async fn calculate_operations(
		&self,
		conduit: &sync_conduit::Model,
	) -> Result<SyncOperations> {
		// Get source and target root entries
		let source_root = entry::Entity::find_by_id(conduit.source_entry_id)
			.one(&*self.db)
			.await?
			.ok_or_else(|| anyhow::anyhow!("Source entry not found"))?;

		let target_root = entry::Entity::find_by_id(conduit.target_entry_id)
			.one(&*self.db)
			.await?
			.ok_or_else(|| anyhow::anyhow!("Target entry not found"))?;

		// Load all entries under each root
		let source_entries = self
			.get_entries_recursive(conduit.source_entry_id, &source_root)
			.await?;
		let target_entries = self
			.get_entries_recursive(conduit.target_entry_id, &target_root)
			.await?;

		// Build path maps
		let source_map = self.build_path_map(&source_entries);
		let target_map = self.build_path_map(&target_entries);

View on GitHub (pinned to 6dfeccf211)

When it happens

Trigger: Thrown at core/src/service/file_sync/resolver.rs:80 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/bae46532b31204de. Report an issue: GitHub.