paperclipai/paperclip · error
LLM Wiki space status must be active or archived.
Error message
LLM Wiki space status must be active or archived.
What it means
Error "LLM Wiki space status must be active or archived." thrown in paperclipai/paperclip.
Solutions
- Set the space status to either 'active' or 'archived'.
When it happens
Trigger: Thrown at packages/plugins/plugin-llm-wiki/src/wiki/core.ts:1468 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of paperclipai/paperclip@5716fe907e (2026-08-18).
Data as JSON: /api/errors/bd9aeb2069195aee.
Report an issue: GitHub.
Appendix: source
Thrown at packages/plugins/plugin-llm-wiki/src/wiki/core.ts:1467
configuredRootPath: null,
accessScope,
ownerUserId: null,
ownerAgentId: null,
teamKey: null,
settings: input.settings ?? {},
status: "active",
createdAt: null,
updatedAt: null,
};
await bootstrapSpaceFiles(ctx, input.companyId, space);
await upsertWikiInstance(ctx, { companyId: input.companyId, wikiId });
return { status: "created", space };
}
export async function updateSpace(ctx: PluginContext, input: UpdateSpaceInput): Promise<{ status: "ok"; space: WikiSpace }> {
const nextStatus = input.status ?? null;
if (nextStatus !== null && nextStatus !== "active" && nextStatus !== "archived") {
throw new Error("LLM Wiki space status must be active or archived.");
}
const space = nextStatus === "active" ? await resolveSpaceAnyStatus(ctx, input) : await resolveSpace(ctx, input);
const nextDisplayName = stringField(input.displayName);
if (space.slug === DEFAULT_SPACE_SLUG && nextStatus === "archived") {
throw new Error("The default LLM Wiki space cannot be archived.");
}
await ctx.db.execute(
`UPDATE ${spaceTable(ctx)}
SET display_name = COALESCE($4, display_name),
settings = CASE WHEN $5::jsonb IS NULL THEN settings ELSE settings || $5::jsonb END,
status = COALESCE($6, status),
updated_at = now()
WHERE company_id = $1 AND wiki_id = $2 AND slug = $3`,
[
input.companyId,
space.wikiId,
space.slug,
nextDisplayName,View on GitHub (pinned to 5716fe907e)