Cleanup activity stream fails

I’ve got Ansible Tower instance that’s been running for over a year now. I’m trying to “cleanup activity stream” which ultimately fails every time I try launching it.

CLI invocaition was:

tower-manage cleanup_activitystream --days=30 --dry-run -v 3

Killed

Same with the interface invocation. How can I cleanup items (even if manually)?

dmitry.makovey@stanford.edu (dmitry.makovey@stanford.edu) said:

I've got Ansible Tower instance that's been running for over a year now.
I'm trying to "cleanup activity stream" which ultimately fails every time I
try launching it.

CLI invocaition was:

# tower-manage cleanup_activitystream --days=30 --dry-run -v 3
Killed
#

Same with the interface invocation. How can I cleanup items (even if
manually)?

Please contact your Red Hat support rep for Tower issues. (That being said,
you're running out of memory - add more.)

Bill

Replying to:

How can I cleanup items (even if manually)?

Try applying .iterator() to the querysets in some of the loops inside of the management command. We have a few examples to go by in the cleanup jobs task. If you get something that fixes your problem, we would be happy to look at any pull request to pull your fix into the main branch.