spacedriveapp/spacedrive · error · anyhow::Error
No libraries found; specify --library after creating one
Error message
No libraries found; specify --library after creating one
What it means
Error "No libraries found; specify --library after creating one" thrown in spacedriveapp/spacedrive.
Source
Thrown at apps/cli/src/domains/index/mod.rs:43
EphemeralCache(EphemeralCacheArgs),
/// Reset the ephemeral index cache
ResetCache,
}
pub async fn run(ctx: &Context, cmd: IndexCmd) -> Result<()> {
match cmd {
IndexCmd::Start(args) => {
let library_id = if let Some(id) = args.library {
id
} else {
let libs: Vec<sd_core::ops::libraries::list::output::LibraryInfo> = execute_core_query!(
ctx,
sd_core::ops::libraries::list::query::ListLibrariesInput {
include_stats: false
}
);
match libs.len() {
0 => anyhow::bail!("No libraries found; specify --library after creating one"),
1 => libs[0].id,
_ => anyhow::bail!("Multiple libraries found; please specify --library <UUID>"),
}
};
let input = args.to_input(library_id)?;
if let Err(errors) = input.validate() {
anyhow::bail!(errors.join("; "));
}
let out: JobId = execute_action!(ctx, input);
print_output!(ctx, out, |_| {
println!("Indexing request submitted");
});
}
IndexCmd::QuickScan(args) => {
let libs: Vec<sd_core::ops::libraries::list::output::LibraryInfo> = execute_core_query!(
ctx,View on GitHub (pinned to 6dfeccf211)
When it happens
Trigger: Thrown at apps/cli/src/domains/index/mod.rs:43 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/dc838939bfaadf47.
Report an issue: GitHub.