pilerimport doesn't update accounting

Issue #427 resolved
Former user created an issue

My installation basically works with pilerimport. I don't route emails for archiving, I just archive accounts before deleting them in my mx server.

In the Archive Accounting screen it doesn't show any information about what I've imported so far. I just started importing old accounts and I have almost 1TB of emails, but in the UI it doesn't show accounting. In the health monitor it shows disk consumption and all others informations.

As long as I can tell, it's because the script that process accounting is run every day, but only process the current day.

I run manually:

/usr/bin/php /usr/local/libexec/piler/generate_stats.php --webui /var/www/piler --start="01011900" --stop="31122014"

I took some time, but after, my accounting was rebuild with all my accounts.

Is this by design?

Comments (3)

  1. Janos SUTO repo owner

    Accounting is an optional feature, since not everyone needs it. So if accounting is required, then you have to process metadata with generate_stats.php. It indeed processes today's data by design. Do you think it needs some redesign?

  2. Former user Account Deleted

    I think that it is correct to process it daily. But the pilerimport should trigger somehow the accounting, as it undoubtedly will import old emails, and as generate_stats will only process today's emails, it will miss those old ones.

    But this is my user case, I think you shouldn't change this behaviour.

    I changed crontab to:

    30   6 * * 1-6 /usr/bin/php /usr/local/libexec/piler/generate_stats.php --webui /var/www/piler
    30   6 * * 0 /usr/bin/php /usr/local/libexec/piler/generate_stats.php --webui /var/www/piler -a --start="01011960"
    

    So, sunday it rebuilds everything.

    I'll consider this issue closed.

    Thanks for your promptly reply.

  3. Log in to comment