baruwaproject / baruwa2

Baruwa 2.0
http://www.baruwa.org
GNU General Public License v3.0
21 stars 9 forks source link

Database maintenance issue #15

Closed ankit-p closed 11 years ago

ankit-p commented 11 years ago

[root@zeus ~]# paster prune-quarantine /etc/baruwa/production.ini Traceback (most recent call last): File "/usr/bin/paster", line 9, in load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')() File "/usr/lib/python2.6/site-packages/paste/script/command.py", line 104, in run invoke(command, command_name, options, args[1:]) File "/usr/lib/python2.6/site-packages/paste/script/command.py", line 143, in invoke exit_code = runner.run(args) File "/usr/lib/python2.6/site-packages/paste/script/command.py", line 238, in run result = self.command() File "/usr/lib/python2.6/site-packages/baruwa/commands/cleanquarantine.py", line 105, in command startdate = datetime.datetime(year, month, day, 00, 00, 00) TypeError: an integer is required

When I set the ms.quarantine.days_to_keep = 1 this is the error I get running the command " paster prune-quarantine /etc/baruwa/production.ini"

When I set it back to 30 days the command runs fine.

Also I have put

baruwa.messages.keep.days = 1 baruwa.archive.keep.days = 3

I set the above option in production.ini file and then run the " paster prune-database /etc/baruwa/production.ini" The command runs but nothing gets sifted to archive or from messages.

akissa commented 11 years ago

Fixed, in last update