Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] errors on "crewai reset-memories" CLI command #2307

Closed
caike opened this issue Mar 7, 2025 · 3 comments · May be fixed by #2312
Closed

[BUG] errors on "crewai reset-memories" CLI command #2307

caike opened this issue Mar 7, 2025 · 3 comments · May be fixed by #2312
Labels
bug Something isn't working

Comments

@caike
Copy link
Contributor

caike commented Mar 7, 2025

Description

Error running command crewai reset-memories --knowledge or crewai reset-memories -a from inside a crew project.

Error message:

An unexpected error occurred: No crew found.

Steps to Reproduce

  1. Create new crewai project
  2. cd, install, etc.
  3. Run crewai reset-memories -kn or crewai reset-memories --knowledge
  4. See "An unexpected error occurred: No crew found." message

Expected behavior

Expected "memory system is not initialized message":

[2025-03-07 12:11:35][ERROR]: Failed to reset knowledge memory: knowledge memory system is not initialized
An unexpected error occurred: Failed to reset knowledge memory: knowledge memory system is not initialized

Screenshots/Code snippets

$ crewai reset-memories -a         
An unexpected error occurred: No crew found.

$ crewai reset-memories -s
An unexpected error occurred: No crew found.

$ crewai reset-memories -l
An unexpected error occurred: No crew found.

$ crewai reset-memories -kn
An unexpected error occurred: No crew found.

Operating System

OS X

Python Version

3.10

crewAI Version

0.102.0

crewAI Tools Version

0.36.0

Virtual Environment

Venv

Evidence

$ crewai reset-memories -a         
An unexpected error occurred: No crew found.

$ crewai reset-memories --knowledge
An unexpected error occurred: No crew found.

Possible Solution

Fix the way get_crew looks for and returns a crew instance.

#2309

Additional context

Works fine in previous version 0.100.0.

@caike caike added the bug Something isn't working label Mar 7, 2025
caike added a commit to caike/crewAI that referenced this issue Mar 7, 2025
Changes back to how it was being done before.

Fixes crewAIInc#2307
caike added a commit to caike/crewAI that referenced this issue Mar 7, 2025
Changes back to how it was being done before.
Fixes crewAIInc#2307
@caike caike changed the title [BUG] error resetting via crewai reset-memories command [BUG] errors on "crewai reset-memories" CLI command Mar 7, 2025
@bhancockio
Copy link
Collaborator

@caike we fixed the reset memory feature so this should be working in the latest version of CrewAI (0.108.0). If it's not, please let me know so we can continue to investigate!

@saif-cclock
Copy link

saif-cclock commented Mar 20, 2025

@caike we fixed the reset memory feature so this should be working in the latest version of CrewAI (0.108.0). If it's not, please let me know so we can continue to investigate!

Still hapenning.
crewai reset-memories -a
An unexpected error occurred: No crew found.

crewai --version
crewai, version 0.108.0

@bhancockio

@GabrielBoninUnity
Copy link

I confirm that this is still a bug even with the latest crewai version 0.108.0. @Vidit-Ostwal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants