piler update 1.31 to 1.34 error with webui update

Issue #921 closed
Selahattin Caliskan created an issue

Hello, i managed to convert the Database to utf8mb4, after that i updated the binary to. if i update the webui then nothing happens no web login or else if i change in config.php line 321 require_once '${prefix}/etc/piler/config-site.php'; to this require_once 'config-site.php'; from 1.31 i get the webui ruining but nothing happens with search button only circl so i ran piler 1.34 without updating the webui how can i update the webui also

Comments (10)

  1. Bodo Pfelzer

    My search also hangs after update. Apache's ErrorLog shows:

    [Thu Jun 14 14:01:48.384451 2018] [:error] [pid 3484] [client] PHP Parse error: syntax error, unexpected '[', expecting ']' in /var/www/piler/model/search/message.php on line 220, referer: http://piler/search.php

  2. Janos SUTO repo owner

    Get the line in config.php where it references config-site.php. The idea is to let the configure script insert the proper path. Probably a bug prevented it, however you may fix it manually by editing config.ph as described before. The master branch fixes this issue.

  3. Selahattin Caliskan reporter

    hello Janos, i updated to the latest master build. you changed in config.php now the path for config-site.php from /var/www/piler/ to /usr/local/etc/piler/ ?

    require_once '/usr/local/etc/piler/config-site.php';

    and if i click on the search button i have stil the circle with working .. when i restore the /var/www/piler/model/search/message.php from the 1.31 then the search is working

  4. Janos SUTO repo owner

    Yes, I have changed that way. Check if you have moved config-site.php to /usr/local/etc/piler directory. Then if you still have an issue, check the web server error logs to see what's wrong.

  5. Selahattin Caliskan reporter

    same as Bodo PHP Parse error: syntax error, unexpected '[', expecting ']' in /var/www/piler/model/search/message.php on line 220,

  6. Selahattin Caliskan reporter

    ok after upgrade the PHP to 7.2 the webui and search works, but i have trouble with the crontab what is the right place /var/spool/cron/piler or /var/www/spool/cron/piler and the piler crontab i found 2 versions

    /5 * * LC_ALL=C mpstat | tail -1 | awk '{print $11}' > /var/piler/stat/cpu.stat /15 * * /usr/local/bin/indexer --quiet delta1 --rotate && sleep 2 && /usr/local/bin/indexer --quiet --merge main1 delta1 --merge-dst-range deleted 0 0 --rotate /15 * * /usr/local/bin/indexer --quiet tag1 --rotate /15 * * /usr/local/bin/indexer --quiet note1 --rotate


    30 7 * * /usr/bin/php /usr/local/libexec/piler/daily-report.php /var/piler/www /5 * * /usr/bin/find /var/piler/error -type f|wc -l > /var/piler/stat/error 3 * * /usr/local/libexec/piler/watch_sphinx_main_index.sh



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


    in the first one the path for the indexer not true /usr/local/bin/indexer

  7. Janos SUTO repo owner

    I suggest you to remove both, then use crontab -e -u piler to setup the cron jobs for piler.

  8. Log in to comment