pilerpurge

Issue #1180 resolved
Thomas Helmrich created an issue

Hello,
i´m on current master branch and noticed, that purge.sh won´t work anymore.

When calling purge.sh, it complains about missing /etc/piler/piler.conf
Within my installation, it is located in /usr/local/etc/piler/piler.conf

Currently i have disabled purge.sh and just calling the /usr/local/libexec/piler/pilerpurge.py -c /usr/local/etc/piler/piler.confdirectly.

Also i noticed, that there are two different cron setups:

  1. cron.jobs.in
  2. postinstall.sh.in

The postinstall.sh.in does not include the direct pilerpurge.py, the cron.jobs.in includes it, but also the purge.sh.

What is the way to go?

Thanks!

Comments (9)

  1. Janos SUTO repo owner

    Hello Thomas, you are right, I’ve just fixed the cron jobs to have purge.sh. Feel free to keep either purge.sh or pilerpurge.py in the cron jobs. The bash script has a minor addition only. Thanks for noticing.

  2. Thomas Helmrich reporter

    Thanks for the quick update, Janos!

    What about the missing reference of /etc/piler/piler.conf
    Or must there be a symlink?

  3. Janos SUTO repo owner

    It would work, however, I’d rather use pilerpurge.py -c /usr/local/etc/piler/piler.conf to specify the alternate location.

  4. chris

    In my crontab it shows:

    40 3 * * * /usr/local/libexec/piler/purge.sh

    And I run it and it also errors out with a file not found.

    FileNotFoundError: [Errno 2] No such file or directory: '/etc/piler/piler.conf'

  5. chris

    To confirm, I made the symlink and it returns no error. But the items are still grey and not removed from piler. Even after I’ve run the cronjobs manually.

  6. Janos SUTO repo owner

    You are on track. Let the delta indexer run (from crontab), and it should make the grey records disappear. It’s how the kill list works for sphinx.

  7. chris

    I added the symlink and its ok now.

    For some odd reason when I want to test the new messages, I run the cron items all together, but I swear all items were deleted at one time, but now sometimes I see all of them listed as grey.

    Do you recommend running the crons immediatley to index and add/purge stuff?

  8. Janos SUTO repo owner

    No. I suggest to leave the cron entries as they are, and let piler does its job on its own.

  9. Log in to comment