pilerpurge
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.conf
directly.
Also i noticed, that there are two different cron setups:
cron.jobs.in
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)
-
repo owner -
repo owner - changed status to resolved
-
reporter Thanks for the quick update, Janos!
What about the missing reference of
/etc/piler/piler.conf
Or must there be a symlink?
-
repo owner It would work, however, I’d rather use pilerpurge.py -c /usr/local/etc/piler/piler.conf to specify the alternate location.
-
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'
-
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.
-
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.
-
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?
-
repo owner No. I suggest to leave the cron entries as they are, and let piler does its job on its own.
- Log in to comment
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.