1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How can I run "Record Daily Statistics" cron in background (CLI)

Discussion in 'XenForo Questions and Support' started by quydo, Aug 7, 2013.

  1. quydo

    quydo Member

    Hi everybody

    I have setup an cron entry on Admin Control Panel - Record Daily Statistics. It runs automatically at 7h30 AM everyday

    But this cron entry give an error: php-fpm not response => 502 Bad Gateway when browse with browser (Firefox, Chrome ...)

    Slow logs in php-fpm:
    Code:
    [0x000000000118cfa0] execute() /home/www/forum.daica.vn/daica_xenforo/library/Zend/Db/Statement/Mysqli.php:208
    [0x000000000118c918] _execute() /home/www/forum.daica.vn/daica_xenforo/library/Zend/Db/Statement.php:297
    script_filename = /home/www/forum.daica.vn/daica_xenforo/cron.php
    [0x0000000001617db0] execute() /home/www/forum.daica.vn/daica_xenforo/library/Zend/Db/Statement/Mysqli.php:208
    [0x0000000001617728] _execute() /home/www/forum.daica.vn/daica_xenforo/library/Zend/Db/Statement.php:297
    [0x00000000016172b8] execute() /home/www/forum.daica.vn/daica_xenforo/library/Zend/Db/Adapter/Abstract.php:479
    [0x0000000001616fb0] query() /home/www/forum.daica.vn/daica_xenforo/library/Zend/Db/Adapter/Abstract.php:808
    [0x0000000001616c30] fetchPairs() /home/www/forum.daica.vn/daica_xenforo/library/XenForo/StatsHandler/Post.php:20
    [0x00000000016164e0] getData() /home/www/forum.daica.vn/daica_xenforo/library/XenForo/Model/Stats.php:184
    [0x0000000001616268] buildStatsData() /home/www/forum.daica.vn/daica_xenforo/library/XenForo/CronEntry/Counters.php:26
    [0x00007fff9d48a7c0] recordDailyStats() unknown:0
    [0x0000000001616008] call_user_func() /home/www/forum.daica.vn/daica_xenforo/library/XenForo/Model/Cron.php:356
    [0x0000000001615c78] runEntry() /home/www/forum.daica.vn/daica_xenforo/library/XenForo/Cron.php:29
    [0x0000000001615938] run() /home/www/forum.daica.vn/daica_xenforo/library/XenForo/Cron.php:64
    [0x0000000001615658] runAndOutput() /home/www/forum.daica.vn/daica_xenforo/cron.php:12
    How can I run that cron entry in CLI mode (php CLI)? Thank you very much
     

Share This Page