Notes (Memo)

Memo CLI troubleshooting

Recover from missing notes, empty searches, refused imports and edits, and mail errors.

This page helps when Memo does not do what you expected. Find what the screen says or what you noticed, then follow the steps. To ask your agent for help, give it the full message Memo printed.

memo: command not found

Memo is not installed, or the terminal was opened before you installed it. Close the terminal, open a new one and run memo --help. If it still fails, install Memo again: npm install -g @wirecat/cli-memo (installation).

  1. Run memo sync --only notes and read the report. It lists files it could not read and why.
  2. Check that the file's folder is in memo folders list, and that the file is not skipped by notes.ignore in the config file.
  3. Search for one word you know is in the file. A search finds results that contain every word, so a long sentence often finds nothing; use two or three key words.
  4. Scanned PDFs have no text to read, and old .xls files cannot be read: the report lists them under "not read".

"Searched by words only"

The search model for search by meaning is not on your computer. Memo still finds every note that contains your words. To also search by meaning, download the model with tg or max, then import:

memo models download embeddinggemma
memo sync

"nobody by that name yet"

A note links to a name, such as [[Kai Sample]], but nobody with that name is in the local store yet. The link starts working once the person's chats are downloaded with tg or max. If two people share the name, link the right one with a reference such as [Kai](person:7).

A folder is refused by import

Every folder needs an ID from the local store. Add it with memo folders add /path/to/folder. If the folder was added on another computer, connect it instead: memo folders list shows its ID, and memo folders update ID /path/to/folder connects it (details).

An import deleted nothing and printed a warning

The import found that most of a folder was missing at once and stopped, to protect your data. Check that the folder or disk is there, then import again.

"no mail account"

no mail account means the store holds no mail of that address. Memo does not import mail: the mail CLI does, with mail <profile> sync, and memo search mail then finds it. --source email:<address> takes the mailbox's address; Memo lists the ones the store holds when it is wrong.

"memo sync no longer imports mail"

The config still has Memo's old mail settings, which nothing reads. memo doctor names the mailboxes they list: sync each with mail <profile> session start --address <address>, then mail <profile> sync. The mail Memo imported stays in the store. memo config unset mail removes the old settings and the message.

Adding a source

memo sources add refuses with a reason in --json (error.reason) and says what to do next. Nothing is stored when it refuses.

ReasonWhat happenedWhat to do
source.unsupportedNo reader takes this kind of file or pageSave it as PDF, Word or plain text and add that file
source.no-textThe file, page or pasted text holds no textAdd a file that holds text, or paste the text with memo sources add -
source.unreadableThe reader could not read it: damaged or lockedOpen it, save it again or as PDF or plain text, and add that
source.engine-missingThe reader for this kind of file is not installedReinstall Memo: npm install -g @wirecat/cli-memo
source.too-largeOver 50 MiB, or larger than its reader readsAdd a smaller part, or save only its text and add that
source.url-refusedNot an http or https address on the public internet: localhost, a home network address, a file: link, a link with a user name or password, or a redirect from https to plain httpGive the address of a public page
source.url-statusThe site answered with an error, such as 404Check the address in a browser; if it opens only for you, save the page as a file and add it
source.url-timeoutThe page did not arrive within 30 secondsTry again later, or save the page as a file and add it
source.url-redirectsThe site sent the request on more than 5 timesOpen the address in a browser and add the address it ends at
source.url-unreachableThe site could not be found or reachedCheck the address and the connection, or save the page as a file
source.needs-sign-inThe page asks you to sign in, such as a private Google DocAdd it through your signed-in Google account: drive documents add <url> --profiles <names|all> (or drive <profile> documents add <url>)

A scanned PDF or a picture is not refused: it is kept by its title and subjects, with read: "no-text".

Reading a source for facts

memo sources suggest and memo sources readers set refuse with these reasons. Nothing is staged when they do.

ReasonWhat happenedWhat to do
reader.none-chosenNo reader is chosen; the refusal lists themmemo sources readers set <reader>
reader.unknownThe reader is not one Memo knowsGive one that memo sources readers list lists
reader.owner-picksAn agent named a reader or a model, or tried to choose oneOnly you choose; the agent reads with your reader
reader.model-missingOllama or an API reader has no model, or Ollama lacks itmemo sources readers set <reader> --model <model>; for Ollama, ollama pull <model>
reader.unavailableClaude Code or Codex is not installedInstall it, or choose another reader
reader.failedThe reader failed: not signed in, too old, the key was rejected or the account has no creditmemo sources readers list names the problem; sign in, update, or memo models keys set <provider>
reader.no-keyNo key is kept for the API reader, or for the AI model ai-model reads withmemo models keys set <provider>; for ai-model, memo models ai set <provider> --model <m> --secret-stdin
reader.ai-not-setai-model is chosen, but no AI model ismemo models ai set <provider> --model <m>
reader.not-runningOllama is not running on this computerollama serve, then try again
reader.limitThe provider's limit is reachedTry again later
reader.timeoutThe reader gave no answer within 10 minutesTry again, or add a smaller part of the source
reader.unusable-answerThe answer was not the JSON Memo asked forTry again with --rescan, or another model

A batch with no facts means every proposed fact was dropped; dropped says why for each.

A note edit is refused

The revision you gave is not the current one: the note changed after you read it. Run memo notes show note:ID --json, take the current revision and edit again.

A person's context is empty or missing something

  • The person's chats are not downloaded yet. Download them with tg or max.
  • The accounts are not linked. Link them with tg personal contacts link (details).
  • With several accounts in one messenger, add --source, such as --source telegram:1.
  • A note that only mentions the name in its text is not included; link it instead.

"give --account", "give --source" or "names 2 accounts; give one"

The command works in one account and Memo does not choose one for you. A command that changes something takes --account with the provider and the account's ID, such as --account telegram:1; one that reads takes --source in the same form. The error lists the accounts the store holds.

Data from an older version is missing

Older Memo versions kept data in a file called messages.db. The current version uses the shared local store, wirecat.db, and does not read the old file. Add each folder again with memo folders add, then run memo sync --only notes and memo sync --only mail.

Help shows every command instead of one

A command path in one argument, such as "projects add", is refused with the words to type. A shell loop passes it that way: in zsh, for c in "projects add"; do memo $c --help; done keeps $c whole. Write memo ${=c} --help in zsh, or loop over the words.

Still stuck

Before you report a bug, compare memo --version with npm view @wirecat/cli-memo version. If yours is older, update and try again: the bug may be fixed already.

Run the failing command again with --json and give your agent the full answer, or open an issue with the command and the message. Do not include private notes, email addresses or messages.