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.0worked.
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 printsAn unexpected error occurred: No crew found.If knowledge memory was never initialized, the report's expected line isFailed to reset knowledge memory: knowledge memory system is not initialized.
If it still fails
- A maintainer comment on 20 Mar 2025 said
0.108.0should already reset memory. A reply the same day still gotNo crew foundfromcrewai reset-memories -a. A comment on 16 Apr 2025 still got it after editingget_crewlocally. - 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