Agent FixboardAgentFixboard

crewai reset-memories fails with 'No crew found'

crewai reset-memories --knowledge and crewai reset-memories -a fail with 'An unexpected error occurred: No crew found.'

From GitHub

crewAIInc/crewAI

Difficulty
Easy
Time
~5 min
Steps
2
Fixed in
0.117.0
Last checked

Verified fix: PR #2312 merged on . Fixed in 0.117.0 (first published release whose tag contains the merge commit). Last checked .

Symptom

crewai reset-memories --knowledge and crewai reset-memories -a fail with 'An unexpected error occurred: No crew found.'

Evidence what you'll see

  • The same line is shown for -a, -s, -l, -kn, and --knowledge, run inside a newly created project.
  • The message the reporter expected, once a crew is found and knowledge memory is absent, is Failed to reset knowledge memory: knowledge memory system is not initialized.
  • The report says 0.100.0 worked.

Why it happens

get_crew only recognized one way of building a crew, so a project whose crew is a direct Crew(...) instance was reported as no crew at all. Pull request #2312, building on #2309, handles both shapes: a direct Crew(...) instance, and a function or class that exposes a .crew method which returns a Crew. The command fails before it ever talks to the memory store.

Affected versions

crewAI 0.102.0 and crewai-tools 0.36.0, OS X, Python 3.10, venv. The working comparison in the report is 0.100.0.

Fix steps

0 of 2 done

Your check marks stay in this browser only.

How to check it worked

  • From the project directory, run crewai reset-memories -a. It no longer prints An unexpected error occurred: No crew found. If knowledge memory was never initialized, the report's expected line is Failed to reset knowledge memory: knowledge memory system is not initialized.

If it still fails

  • A maintainer comment on 20 Mar 2025 said 0.108.0 should already reset memory. A reply the same day still got No crew found from crewai reset-memories -a. A comment on 16 Apr 2025 still got it after editing get_crew locally.
  • A comment on 19 Apr 2025 points at issue #2464 and then discusses embedding dimensions. The linked issue does not say that is the same failure as No crew found.

Sources and credit

Summarized in our own words from these public reports. Credit goes to their authors.

Provided as is, without warranty. Try changes in a non-production environment and back up first. Security-related steps: verify against the official docs. Terms · Request removal or attribution change

Hit an error we don't cover? Submit it