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

python cuckoo.py --delete-older-than-days issues #92

Open
mallorybobalice opened this issue Apr 16, 2016 · 5 comments
Open

python cuckoo.py --delete-older-than-days issues #92

mallorybobalice opened this issue Apr 16, 2016 · 5 comments

Comments

@mallorybobalice
Copy link

hi there.

python cuckoo.py --delete-older-than-days 21

so. couple of problems
there's a missing import at the top in /lib/cuckoo/core/startup.py

from datetime import timedelta

the second problem is that it's failing to drop the tasks from the Db (or disk) for me after :/

removing {'info.id': 1474} from analysis db
failed to remove faile task {'info.id': 1474} from DB
removing {'info.id': 1469} from analysis db
failed to remove faile task {'info.id': 1469} from DB
removing {'info.id': 1470} from analysis db
(for all the tasks in question )

=( not really sure why. the task is there db.analysis.find({"info.id": 1469}) shows it,

also, there's working code in modules/reporting/retention.py . (i can see that takes care of mongo and data, just a bit unclear if it works retrospectively. doesn't seems to, or maybe I'm doing something wrong?)

@mallorybobalice
Copy link
Author

i suppose, there's always the 'trusty'
for i in {a..b}; do curl http://xxx:8080/api/tasks/delete/$i/; done
after disabling the api limit in conf/api.conf for delete api and the rate limiting for it (temporarily of course)...

@garanews
Copy link
Contributor

Hello,
I submitted a pull request with a script to clean data.
#180

@DigiAngel
Copy link

I have the exact same issue.

@doomedraven
Copy link
Contributor

Check in my repo in utils you have a tool for it

@DigiAngel
Copy link

Thanks I'll give that a shot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants