FAQ Общие вопросы про отвязку крона

A

alexey555

Гость
cron log -
Код:
start | 09-02 | 16:03:32 | 3    | 01287 | Board maintenance
  end | 09-02 | 16:03:32 | 3    | 01287 | 0/19 sec
------=-------=----------=------=-------=----------
start | 09-02 | 16:03:35 | 3    | 01287 | Prune forums
  end | 09-02 | 16:03:35 | 3    | 01287 | 0/22 sec
------=-------=----------=------=-------=----------
start | 09-02 | 16:03:38 | 2.7  | 01287 | Prune topic moved stubs
  end | 09-02 | 16:03:38 | 2.7  | 01287 | 0/25 sec
------=-------=----------=------=-------=----------
start | 09-02 | 16:03:41 | 2.7  | 01287 | Logs cleanup
  end | 09-02 | 16:03:42 | 2.7  | 01287 | 0/28 sec
------=-------=----------=------=-------=----------
start | 09-02 | 16:03:45 | 3    | 01287 | Tracker maintenance
  end | 09-02 | 16:03:45 | 3    | 01287 | 0/31 sec
------=-------=----------=------=-------=----------
start | 09-02 | 16:03:48 | 3.1  | 01287 | Clean dlstat
  end | 09-02 | 16:03:48 | 3.1  | 01287 | 0/34 sec
------=-------=----------=------=-------=----------
start | 09-02 | 16:03:51 | 3.1  | 01287 | Prune inactive users
  end | 09-02 | 16:03:51 | 3.1  | 01287 | 0/37 sec
------=-------=----------=------=-------=----------
start | 11-06 | 15:33:14 | 2.8  | 05918 | Avatars cleanup
  end | 11-06 | 15:33:15 | 2.8  | 05918 | 0/19 sec
------=-------=----------=------=-------=----------
start | 11-06 | 15:33:18 | 3.1  | 05918 | Board maintenance
  end | 11-06 | 15:33:18 | 3.1  | 05918 | 0/22 sec
------=-------=----------=------=-------=----------
start | 11-06 | 15:33:21 | 3.1  | 05918 | Prune forums
  end | 11-06 | 15:33:21 | 3.1  | 05918 | 0/25 sec
------=-------=----------=------=-------=----------
start | 11-06 | 15:33:24 | 2.9  | 05918 | Prune topic moved stubs
  end | 11-06 | 15:33:24 | 2.9  | 05918 | 0/28 sec
------=-------=----------=------=-------=----------
start | 11-06 | 15:33:27 | 2.9  | 05918 | Logs cleanup
  end | 11-06 | 15:33:27 | 2.9  | 05918 | 0/31 sec
------=-------=----------=------=-------=----------
start | 11-06 | 15:33:30 | 2.8  | 05918 | Tracker maintenance
  end | 11-06 | 15:33:30 | 2.8  | 05918 | 0/34 sec
------=-------=----------=------=-------=----------
start | 11-06 | 15:33:33 | 2.8  | 05918 | Clean dlstat
  end | 11-06 | 15:33:33 | 2.8  | 05918 | 0/37 sec
------=-------=----------=------=-------=----------
start | 11-06 | 15:33:36 | 2.8  | 05918 | Prune inactive users
start | 11-06 | 15:39:52 | 3.3  | 11975 | Prune inactive users
start | 11-06 | 15:41:04 | 3.2  | 13224 | Prune inactive users
start | 11-06 | 15:42:56 | 3.8  | 15059 | Prune inactive users
start | 11-06 | 15:45:26 | 2.8  | 17192 | Prune inactive users
start | 11-07 | 05:05:19 | 3.7  | 19356 | Avatars cleanup
  end | 11-07 | 05:05:19 | 3.7  | 19356 | 0/18 sec
------=-------=----------=------=-------=----------
start | 11-07 | 05:05:22 | 3.7  | 19356 | Board maintenance
  end | 11-07 | 05:05:23 | 3.7  | 19356 | 0/21 sec
------=-------=----------=------=-------=----------
start | 11-07 | 05:05:26 | 3.7  | 19356 | Prune forums
  end | 11-07 | 05:05:26 | 3.7  | 19356 | 0/24 sec
------=-------=----------=------=-------=----------
start | 11-07 | 05:05:29 | 3.7  | 19356 | Prune topic moved stubs
  end | 11-07 | 05:05:29 | 3.7  | 19356 | 0/27 sec
------=-------=----------=------=-------=----------
start | 11-07 | 05:05:32 | 3.8  | 19356 | Logs cleanup
  end | 11-07 | 05:05:32 | 3.8  | 19356 | 0/30 sec
------=-------=----------=------=-------=----------
start | 11-07 | 05:05:35 | 3.8  | 19356 | Tracker maintenance
  end | 11-07 | 05:05:35 | 3.8  | 19356 | 0/33 sec
------=-------=----------=------=-------=----------
start | 11-07 | 05:05:38 | 3.6  | 19356 | Clean dlstat
  end | 11-07 | 05:05:38 | 3.6  | 19356 | 0/36 sec
------=-------=----------=------=-------=----------
start | 11-07 | 05:05:41 | 3.7  | 19356 | Prune inactive users
  end | 11-07 | 05:05:41 | 3.7  | 19356 | 0/40 sec
------=-------=----------=------=-------=----------
start | 11-08 | 05:05:19 | 0    | 21747 | Board maintenance
  end | 11-08 | 05:05:19 | 0    | 21747 | 0/18 sec
------=-------=----------=------=-------=----------
start | 11-08 | 05:05:22 | 0    | 21747 | Prune forums
  end | 11-08 | 05:05:22 | 0    | 21747 | 0/21 sec
------=-------=----------=------=-------=----------
start | 11-08 | 05:05:25 | 0    | 21747 | Prune topic moved stubs
  end | 11-08 | 05:05:25 | 0    | 21747 | 0/24 sec
------=-------=----------=------=-------=----------
start | 11-08 | 05:05:28 | 0    | 21747 | Logs cleanup
  end | 11-08 | 05:05:28 | 0    | 21747 | 0/27 sec
------=-------=----------=------=-------=----------
start | 11-08 | 05:05:31 | 0    | 21747 | Tracker maintenance
  end | 11-08 | 05:05:31 | 0    | 21747 | 0/30 sec
------=-------=----------=------=-------=----------
start | 11-08 | 05:05:34 | 0    | 21747 | Clean dlstat
  end | 11-08 | 05:05:34 | 0    | 21747 | 0/33 sec
------=-------=----------=------=-------=----------
start | 11-08 | 05:05:37 | 0    | 21747 | Prune inactive users
  end | 11-08 | 05:05:37 | 0    | 21747 | 0/36 sec
------=-------=----------=------=-------=----------
start | 11-09 | 05:05:19 | 0    | 29488 | Board maintenance
  end | 11-09 | 05:05:19 | 0    | 29488 | 0/18 sec
------=-------=----------=------=-------=----------
start | 11-09 | 05:05:22 | 0    | 29488 | Prune forums
  end | 11-09 | 05:05:22 | 0    | 29488 | 0/21 sec
------=-------=----------=------=-------=----------
start | 11-09 | 05:05:25 | 0    | 29488 | Prune topic moved stubs
  end | 11-09 | 05:05:25 | 0    | 29488 | 0/24 sec
------=-------=----------=------=-------=----------
start | 11-09 | 05:05:28 | 0    | 29488 | Logs cleanup
  end | 11-09 | 05:05:28 | 0    | 29488 | 0/27 sec
------=-------=----------=------=-------=----------
start | 11-09 | 05:05:31 | 0    | 29488 | Tracker maintenance
  end | 11-09 | 05:05:31 | 0    | 29488 | 0/30 sec
------=-------=----------=------=-------=----------
start | 11-09 | 05:05:34 | 0    | 29488 | Clean dlstat
  end | 11-09 | 05:05:34 | 0    | 29488 | 0/33 sec
------=-------=----------=------=-------=----------
start | 11-09 | 05:05:37 | 0    | 29488 | Prune inactive users
  end | 11-09 | 05:05:37 | 0    | 29488 | 0/36 sec
------=-------=----------=------=-------=----------
start | 11-10 | 05:05:19 | 0    | 29710 | Board maintenance
  end | 11-10 | 05:05:19 | 0    | 29710 | 0/18 sec
------=-------=----------=------=-------=----------
start | 11-10 | 05:05:22 | 0    | 29710 | Prune forums
  end | 11-10 | 05:05:22 | 0    | 29710 | 0/21 sec
------=-------=----------=------=-------=----------
start | 11-10 | 05:05:25 | 0    | 29710 | Prune topic moved stubs
  end | 11-10 | 05:05:25 | 0    | 29710 | 0/24 sec
------=-------=----------=------=-------=----------
start | 11-10 | 05:05:28 | 0    | 29710 | Logs cleanup
  end | 11-10 | 05:05:28 | 0    | 29710 | 0/27 sec
------=-------=----------=------=-------=----------
start | 11-10 | 05:05:31 | 0    | 29710 | Tracker maintenance
  end | 11-10 | 05:05:31 | 0    | 29710 | 0/30 sec
------=-------=----------=------=-------=----------
start | 11-10 | 05:05:34 | 0    | 29710 | Clean dlstat
  end | 11-10 | 05:05:34 | 0    | 29710 | 0/33 sec
------=-------=----------=------=-------=----------
start | 11-10 | 05:05:37 | 0    | 29710 | Prune inactive users
  end | 11-10 | 05:05:37 | 0    | 29710 | 0/36 sec
------=-------=----------=------=-------=----------
start | 11-11 | 05:05:20 | 0.1  | 20379 | Board maintenance
  end | 11-11 | 05:05:20 | 0.1  | 20379 | 0/18 sec
------=-------=----------=------=-------=----------
start | 11-11 | 05:05:23 | 0.1  | 20379 | Prune forums
  end | 11-11 | 05:05:23 | 0.1  | 20379 | 0/21 sec
------=-------=----------=------=-------=----------
start | 11-11 | 05:05:26 | 0.1  | 20379 | Prune topic moved stubs
  end | 11-11 | 05:05:26 | 0.1  | 20379 | 0/24 sec
------=-------=----------=------=-------=----------
start | 11-11 | 05:05:29 | 0.1  | 20379 | Logs cleanup
  end | 11-11 | 05:05:29 | 0.1  | 20379 | 0/27 sec
------=-------=----------=------=-------=----------
start | 11-11 | 05:05:32 | 0.1  | 20379 | Tracker maintenance
  end | 11-11 | 05:05:32 | 0.1  | 20379 | 0/30 sec
------=-------=----------=------=-------=----------
start | 11-11 | 05:05:35 | 0.1  | 20379 | Clean dlstat
  end | 11-11 | 05:05:35 | 0.1  | 20379 | 0/33 sec
------=-------=----------=------=-------=----------
start | 11-11 | 05:05:38 | 0.1  | 20379 | Prune inactive users
  end | 11-11 | 05:05:38 | 0.1  | 20379 | 0/36 sec
------=-------=----------=------=-------=----------
start | 11-12 | 05:05:20 | 0    | 25590 | Board maintenance
  end | 11-12 | 05:05:20 | 0    | 25590 | 0/18 sec
------=-------=----------=------=-------=----------
start | 11-12 | 05:05:23 | 0    | 25590 | Prune forums
  end | 11-12 | 05:05:23 | 0    | 25590 | 0/21 sec
------=-------=----------=------=-------=----------
start | 11-12 | 05:05:26 | 0    | 25590 | Prune topic moved stubs
  end | 11-12 | 05:05:26 | 0    | 25590 | 0/24 sec
------=-------=----------=------=-------=----------
start | 11-12 | 05:05:29 | 0    | 25590 | Logs cleanup
  end | 11-12 | 05:05:29 | 0    | 25590 | 0/27 sec
------=-------=----------=------=-------=----------
start | 11-12 | 05:05:32 | 0    | 25590 | Tracker maintenance
  end | 11-12 | 05:05:32 | 0    | 25590 | 0/30 sec
------=-------=----------=------=-------=----------
start | 11-12 | 05:05:35 | 0    | 25590 | Clean dlstat
  end | 11-12 | 05:05:35 | 0    | 25590 | 0/33 sec
------=-------=----------=------=-------=----------
start | 11-12 | 05:05:38 | 0    | 25590 | Prune inactive users
  end | 11-12 | 05:05:38 | 0    | 25590 | 0/36 sec
------=-------=----------=------=-------=----------
start | 11-13 | 05:05:19 | 1    | 06448 | Board maintenance
  end | 11-13 | 05:05:19 | 1    | 06448 | 0/18 sec
------=-------=----------=------=-------=----------
start | 11-13 | 05:05:22 | 0.9  | 06448 | Prune forums
  end | 11-13 | 05:05:22 | 0.9  | 06448 | 0/21 sec
------=-------=----------=------=-------=----------
start | 11-13 | 05:05:25 | 0.9  | 06448 | Prune topic moved stubs
  end | 11-13 | 05:05:25 | 0.9  | 06448 | 0/24 sec
------=-------=----------=------=-------=----------
start | 11-13 | 05:05:28 | 0.8  | 06448 | Logs cleanup
  end | 11-13 | 05:05:28 | 0.8  | 06448 | 0/27 sec
------=-------=----------=------=-------=----------
start | 11-13 | 05:05:31 | 0.8  | 06448 | Tracker maintenance
  end | 11-13 | 05:05:31 | 0.8  | 06448 | 0/30 sec
------=-------=----------=------=-------=----------
start | 11-13 | 05:05:34 | 0.8  | 06448 | Clean dlstat
  end | 11-13 | 05:05:34 | 0.8  | 06448 | 0/33 sec
------=-------=----------=------=-------=----------
start | 11-13 | 05:05:37 | 0.7  | 06448 | Prune inactive users
  end | 11-13 | 05:05:37 | 0.7  | 06448 | 0/36 sec
------=-------=----------=------=-------=----------
start | 11-17 | 14:05:20 | 6.6  | 260865 | Avatars cleanup
  end | 11-17 | 14:05:20 | 6.6  | 260865 | 0/19 sec
------=-------=----------=------=-------=----------
start | 11-17 | 14:05:23 | 6.8  | 260865 | Board maintenance
  end | 11-17 | 14:05:23 | 6.8  | 260865 | 0/22 sec
------=-------=----------=------=-------=----------
start | 11-17 | 14:05:26 | 6.8  | 260865 | Prune forums
  end | 11-17 | 14:05:26 | 6.8  | 260865 | 0/25 sec
------=-------=----------=------=-------=----------
start | 11-17 | 14:05:29 | 6.8  | 260865 | Prune topic moved stubs
  end | 11-17 | 14:05:29 | 6.8  | 260865 | 0/28 sec
------=-------=----------=------=-------=----------
start | 11-17 | 14:05:32 | 6.9  | 260865 | Logs cleanup
  end | 11-17 | 14:05:32 | 6.9  | 260865 | 0/31 sec
------=-------=----------=------=-------=----------
start | 11-17 | 14:05:35 | 6.9  | 260865 | Tracker maintenance
  end | 11-17 | 14:05:35 | 6.9  | 260865 | 0/34 sec
------=-------=----------=------=-------=----------
start | 11-17 | 14:05:38 | 6.8  | 260865 | Clean dlstat
  end | 11-17 | 14:05:38 | 6.8  | 260865 | 0/37 sec
------=-------=----------=------=-------=----------
start | 11-17 | 14:05:41 | 6.9  | 260865 | Prune inactive users
  end | 11-17 | 14:05:41 | 6.9  | 260865 | 0/40 sec
------=-------=----------=------=-------=----------
start | 11-20 | 07:07:12 | 4.1  | 895172 | Avatars cleanup
  end | 11-20 | 07:07:12 | 4.1  | 895172 | 0/18 sec
------=-------=----------=------=-------=----------
start | 11-20 | 07:07:15 | 4    | 895172 | Board maintenance
  end | 11-20 | 07:07:15 | 4    | 895172 | 0/21 sec
------=-------=----------=------=-------=----------
start | 11-20 | 07:07:18 | 4.1  | 895172 | Prune forums
  end | 11-20 | 07:07:18 | 4.1  | 895172 | 0/25 sec
------=-------=----------=------=-------=----------
start | 11-20 | 07:07:21 | 4.1  | 895172 | Prune topic moved stubs
  end | 11-20 | 07:07:21 | 4.1  | 895172 | 0/28 sec
------=-------=----------=------=-------=----------
start | 11-20 | 07:07:24 | 4.1  | 895172 | Logs cleanup
  end | 11-20 | 07:07:24 | 4.1  | 895172 | 0/31 sec
------=-------=----------=------=-------=----------
start | 11-20 | 07:07:27 | 4.1  | 895172 | Tracker maintenance
  end | 11-20 | 07:07:27 | 4.1  | 895172 | 0/34 sec
------=-------=----------=------=-------=----------
start | 11-20 | 07:07:30 | 4.1  | 895172 | Clean dlstat
  end | 11-20 | 07:07:30 | 4.1  | 895172 | 0/37 sec
------=-------=----------=------=-------=----------
start | 11-20 | 07:07:33 | 4.2  | 895172 | Prune inactive users
  end | 11-20 | 07:07:33 | 4.2  | 895172 | 0/40 sec
------=-------=----------=------=-------=----------
start | 11-20 | 07:24:57 | 4.4  | 916168 | Board maintenance
  end | 11-20 | 07:24:57 | 4.4  | 916168 | 0/8 sec
------=-------=----------=------=-------=----------
start | 11-20 | 07:25:00 | 4.5  | 916168 | Clean dlstat
  end | 11-20 | 07:25:00 | 4.5  | 916168 | 0/11 sec
------=-------=----------=------=-------=----------
блин php_err неделю читать придёться,особенно когда понимаешь процентов 30,но последние записи 18.11,крон тогда ещё работал,но статистика не обновлялась...
error_log пустой ,есть одна запись,но старая насчёт куков в конфиге-исправил давно
журнал ошибок на сервере(который в си панеле пустой,где ещё посмотреть?
 

resonansER

Пользователь
Премного БЛАГОДАРЕН и признателен разрабам, что они подкорректировали файл cron.php(я выдернул его из 330 ревизии) и
теперь по-человечески можно поставить этот файл в задачу crontab! ура! :p
 

Seruy

Пользователь
Возможно, некоторые ваши проблемы связаны с отсутствием определения константы BB_ROOT, которая в штатных скриптах содержит путь относительно каталога форума. Так же это может вызывать ошибки при запуске крона из другого каталога, отличного от корня с форумом.

Следующий код (cron.php) должен работать без проблем:
PHP:
<?php

define('FORCE_CRON', true);
define('BB_ROOT', dirname ( __FILE__ ).'/');
require(BB_ROOT.'common.php');
exit;

?>

wwwxakep и всем парням данного ресурса спасибо огроменное за помощь в отвязке крона. Работает всё прекрасно!
 

Seruy

Пользователь
Парни, крон не всё отрабатывает, если всё обновляется кроме:

jJNfRqiA.png


Или это не от крона зависит?
 

Seruy

Пользователь
Крон, плохо отвязываете!

Как это плохо, его можно частично отвязать?

Логи ТР по крону:
15:19:01 - 21234 -x-- DB-LOCK try
15:19:01 - 21234 --x- DB-LOCK OBTAINED !!!!!!!!!!!!!!!!!
15:19:03 - 21234 --x- SELECT jobs
15:19:03 - 21234 --x- RUN jobs

Щас сделал по этому мануалу http://torrentpier.com/threads/Отвязка-крона.191/#post-2547

Ошибок в логах крона ( /var/log/cron ) нет:
Jan 10 15:34:01 CROND[21484]: (root) CMD (/usr/cron.sh >/dev/null 2>&1)

При запуске через SSh тоже ошибок нет. Самое интересное, пошёл в админку, запустил какждую задачу ручками, эффекта = 0

Что я мог упустить?
 
Сверху