What script disable with you enable manticore with real time index..

Issue #1316 closed
Eduardo created an issue

Hi I am trying to migrate my mailpiler server on 1.3.10 to a new one on 1.4.4

I am exporting by year and using sshfs importing on the new server..

Mostly works, but I have some scripts on the user piler:

PILERSTART

5,35 * * * * /usr/local/libexec/piler/indexer.delta.sh
30 2 * * * /usr/local/libexec/piler/indexer.delta.sh
40 3 * * * /usr/local/libexec/piler/purge.sh
3 * * * * /usr/local/libexec/piler/watch_sphinx_main_index.sh
*/15 * * * * /usr/bin/indexer --quiet tag1 --rotate --config /usr/local/etc/piler/manticore.conf
*/15 * * * * /usr/bin/indexer --quiet note1 --rotate --config /usr/local/etc/piler/manticore.conf
30 6 * * * /usr/bin/php /usr/local/libexec/piler/generate_stats.php --webui /var/piler/www >/dev/null
/5 * * * * /usr/bin/find /var/piler/error -type f|wc -l > /var/piler/stat/error
/5 * * * * /usr/bin/find /var/piler/www/tmp -type f -name i.\ -exec rm -f {} \;
#/5 * * * * /usr/local/libexec/piler/import.sh

PILEREND

As far I read I can disable some of one but i donit fine any docs about what disable.
this one dont work fails with error:

FATAL: no tables found in config file '/usr/local/etc/piler/manticore.conf'
 /usr/local/libexec/piler/indexer.delta.sh
/usr/bin/indexer --quiet tag1 --rotate --config /usr/local/etc/piler/manticore.conf
/usr/bin/indexer --quiet note1 --rotate --config /usr/local/etc/piler/manticore.conf

This one fails wit a error to:
 /usr/local/libexec/piler/purge.sh
Error (1264, "Out of range value for column 'rcvd' at row 1")

This one fail with not found
piler@mailarchive1:~$ /usr/local/libexec/piler/watch_sphinx_main_index.sh
-bash: /usr/local/libexec/piler/watch_sphinx_main_index.sh: No such file or directory

this one fails because find the incorrect conf file.
piler@mailarchive1:~$ /usr/local/libexec/piler/import.sh
~/imap ~
~/imap ~/imap
Traceback (most recent call last):
  File "/usr/local/libexec/piler/imapfetch.py", line 230, in <module>
    main()
  File "/usr/local/libexec/piler/imapfetch.py", line 166, in main
    read_options(args.config, opts)
  File "/usr/local/libexec/piler/imapfetch.py", line 25, in read_options
    s = "[piler]\n" + open(filename, 'r').read()
                      ^^^^^^^^^^^^^^^^^^^

I complie the piler from the the gz and enable the real time index for maticore on manticore.conf and piler.conf

it is secure disable the one that fails?

REgards and thanks for this software..

Comments (2)

  1. Janos SUTO repo owner

    Assuming that you are using manticore RT tables, you may disable all indexer scripts and commands in crontab.

    watch_sphinx_main_index.sh is obsoleted by now, comment it out as well.

  2. Log in to comment