Command mautic:maintenance:cleanup --days-old do not works

Your software
My Mautic version is: v4.4.10
My PHP version is: 7.4.33
My Database type and version is: 10.11.8-MariaDB-ubu2204-log

Your problem

Hello everyone! I’m trying to perform a cleanup on my Mautic instance using the command mautic:maintenance:cleanup --days-old=30 directly via SSH. Currently, if I run the command with --dry-run, it shows me the following records:

However, when I run the command again without --dry-run (which should perform the cleanup), it quickly returns to the SSH command prompt. Then, if I use --dry-run again afterward, it displays the same records as before, suggesting that the command didn’t actually work:

// path hidden for security reasons

Server info:
ARM, 5Ocpu, 25Gb RAM.

Database info:
table_name size_MB
email_stats 6449.23
page_hits 1825.58
audit_log 442.72
lead_event_log 407.33
ip_addresses 238.28


Does anyone have a solution for this problem?"

Hello everyone! I managed to solve the problem by changing the command input from s to y. Due to a translation issue (as you can see in the image, the system suggests s/n instead of y/n), the command wasn’t executing properly. With this change, I was able to successfully perform the cleanup.

To all Brazilian users who may be facing this issue: this is the solution.

1 Like

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.