Re: Настройка сбора статистики во времени
Добавлено: 05 авг 2014, 09:52
Господа как сделать чтобы в модуле (4 клана с разными праймами), данные обновлялись по конкретному клану в определенное время?
Форум посвящен игре World of Tanks
https://wot-news.com/forum/
Corsair_in_tank писал(а):2014-08-08 05:00: (Err) Not correct data for player 010 with ID : 7224919 ( Get current error from WG: (REQUEST_LIMIT_EXCEEDED) )
2014-08-08 05:00: (Err) Not correct data for player 011 with ID : 5024928 ( Get current error from WG: (REQUEST_LIMIT_EXCEEDED) )
У меня при сборе статистики пишет ошибки в логе крон, но не на всех игроках. Помогите исправить
Exinaus писал(а):Наибольшая вероятность что вы используете ключ доступа к статистике, который установлен по умолчанию (demo). Зарегистрируйтесь в кабинете разработчкиов ВГ, создайте свой собственный ключ доступа для приложений, и используйте его.
Зарегистрироваться можно тут: https://ru.wargaming.net/developers/applications/
2014-08-22 01:30////////////////////////////////////////////--->
2014-08-22 01:30: (Info) Loging Started (v. 310.4)
2014-08-22 01:30: (Info) Current run number 15
2014-08-22 01:30: (Info) Current db prefix: msfc_, clain ID: 36996
2014-08-22 01:30: (Err) Cron started too early. Time limit excided
2014-08-22 01:30: (Info) Cron finished in 0.0155 сек
2014-08-22 01:30: (Info) Number of MySQL queries - 8
2014-08-22 01:30: (Info) End cron job
2014-08-23 01:27////////////////////////////////////////////--->
2014-08-23 01:27: (Info) Loging Started (v. 310.4)
2014-08-23 01:27: (Info) Current run number 15
2014-08-23 01:27: (Info) Current db prefix: msfc_, clain ID: 36996
2014-08-23 01:27: (WG) Successful get some data from WG.
2014-08-23 01:27: (WG) Try to load info on 36 players
2014-08-23 01:27: (Info) Successfully added information about 36 players out of 36
2014-08-23 01:27: (Info) Выполнено
2014-08-23 01:27: (Info) Cron finished in 3.7834 сек
2014-08-23 01:27: (Info) Number of MySQL queries - 389
2014-08-23 01:27: (Info) End cron job
2014-08-23 01:30////////////////////////////////////////////--->
2014-08-23 01:30: (Info) Loging Started (v. 310.4)
2014-08-23 01:30: (Info) Current run number 16
2014-08-23 01:30: (Info) Current db prefix: msfc_, clain ID: 36996
2014-08-23 01:30: (Err) Cron started too early. Time limit excided
2014-08-23 01:30: (Info) Cron finished in 0.0166 сек
2014-08-23 01:30: (Info) Number of MySQL queries - 8
2014-08-23 01:30: (Info) End cron job
2014-08-24 01:20////////////////////////////////////////////--->
2014-08-24 01:20: (Info) Loging Started (v. 310.4)
2014-08-24 01:20: (Info) Current run number 16
2014-08-24 01:20: (Info) Current db prefix: msfc_, clain ID: 36996
2014-08-24 01:20: (WG) Successful get some data from WG.
2014-08-24 01:20: (WG) Try to load info on 36 players
2014-08-24 01:20: (Info) Successfully added information about 36 players out of 36
2014-08-24 01:20: (Info) Выполнено
2014-08-24 01:20: (Info) Cron finished in 4.2112 сек
2014-08-24 01:20: (Info) Number of MySQL queries - 389
2014-08-24 01:20: (Info) End cron job
2014-08-25 01:20////////////////////////////////////////////--->
2014-08-25 01:20: (Info) Loging Started (v. 310.4)
2014-08-25 01:20: (Info) Current run number 17
2014-08-25 01:20: (Info) Current db prefix: msfc_, clain ID: 36996
2014-08-25 01:20: (WG) Successful get some data from WG.
2014-08-25 01:20: (WG) Try to load info on 36 players
2014-08-25 01:20: (Info) Successfully added information about 36 players out of 36
2014-08-25 01:20: (Info) Выполнено
2014-08-25 01:20: (Info) Cron finished in 8.4111 сек
2014-08-25 01:20: (Info) Number of MySQL queries - 389
2014-08-25 01:20: (Info) End cron job
2014-08-26 01:20////////////////////////////////////////////--->
2014-08-26 01:20: (Info) Loging Started (v. 310.4)
2014-08-26 01:20: (Info) Current run number 18
2014-08-26 01:20: (Info) Current db prefix: msfc_, clain ID: 36996
2014-08-26 01:20: (WG) Successful get some data from WG.
2014-08-26 01:20: (WG) Try to load info on 36 players
2014-08-26 01:20: (Info) Successfully added information about 36 players out of 36
2014-08-26 01:20: (Info) Выполнено
2014-08-26 01:20: (Info) Cron finished in 5.5832 сек
2014-08-26 01:20: (Info) Number of MySQL queries - 389
2014-08-26 01:20: (Info) End cron job
2014-08-27 01:20////////////////////////////////////////////--->
2014-08-27 01:20: (Info) Loging Started (v. 310.4)
2014-08-27 01:20: (Info) Current run number 19
2014-08-27 01:20: (Info) Current db prefix: msfc_, clain ID: 36996
2014-08-27 01:20: (WG) Successful get some data from WG.
2014-08-27 01:20: (WG) Try to load info on 37 players
2014-08-27 01:20: (Info) Successfully added information about 37 players out of 37
2014-08-27 01:20: (Info) Выполнено
2014-08-27 01:20: (Info) Cron finished in 4.6303 сек
2014-08-27 01:20: (Info) Number of MySQL queries - 399
2014-08-27 01:20: (Info) End cron job
2014-08-29 00:20////////////////////////////////////////////--->
2014-08-29 00:20: (Info) Loging Started (v. 310.4)
2014-08-29 00:20: (Info) Current run number 20
2014-08-29 00:20: (Info) Current db prefix: msfc_, clain ID: 36996
2014-08-29 00:20: (WG) Successful get some data from WG.
2014-08-29 00:20: (WG) Try to load info on 39 players
2014-08-29 00:20: (Info) Successfully added information about 39 players out of 39
2014-08-29 00:20: (Info) Выполнено
2014-08-29 00:20: (Info) Cron finished in 4.0274 сек
2014-08-29 00:20: (Info) Number of MySQL queries - 419
2014-08-29 00:20: (Info) End cron job
2014-08-29 01:20////////////////////////////////////////////--->
2014-08-29 01:20: (Info) Loging Started (v. 310.4)
2014-08-29 01:20: (Info) Current run number 21
2014-08-29 01:20: (Info) Current db prefix: msfc_, clain ID: 36996
2014-08-29 01:20: (Err) Cron started too early. Time limit excided
2014-08-29 01:20: (Info) Cron finished in 0.0172 сек
2014-08-29 01:20: (Info) Number of MySQL queries - 8
2014-08-29 01:20: (Info) End cron job
2014-08-29 17:11////////////////////////////////////////////--->
2014-08-29 17:11: (Info) Loging Started (v. 310.4)
2014-08-29 17:11: (Info) Current run number 21
2014-08-29 17:11: (Info) Current db prefix: msfc_, clain ID: 36996
2014-08-29 17:11: (Err) Cron started too early. Time limit excided
2014-08-29 17:11: (Info) Cron finished in 0.0218 сек
2014-08-29 17:11: (Info) Number of MySQL queries - 8
2014-08-29 17:11: (Info) End cron job
Lineboy писал(а):по инструкции поставили скрипт статистики
добавили в крон задачу
20 1 * * * /usr/bin/wget -q -O /dev/null "http://домен/MSFC/cron.php?user=admin&pass=123456"
по логам видно что скрипт снимает статистику
вот последние записи с лог файлаКод: Выделить всё2014-08-22 01:30////////////////////////////////////////////--->
2014-08-22 01:30: (Info) Loging Started (v. 310.4)
2014-08-22 01:30: (Info) Current run number 15
2014-08-22 01:30: (Info) Current db prefix: msfc_, clain ID: 36996
2014-08-22 01:30: (Err) Cron started too early. Time limit excided
2014-08-22 01:30: (Info) Cron finished in 0.0155 сек
2014-08-22 01:30: (Info) Number of MySQL queries - 8
2014-08-22 01:30: (Info) End cron job
2014-08-23 01:27////////////////////////////////////////////--->
2014-08-23 01:27: (Info) Loging Started (v. 310.4)
2014-08-23 01:27: (Info) Current run number 15
2014-08-23 01:27: (Info) Current db prefix: msfc_, clain ID: 36996
2014-08-23 01:27: (WG) Successful get some data from WG.
2014-08-23 01:27: (WG) Try to load info on 36 players
2014-08-23 01:27: (Info) Successfully added information about 36 players out of 36
2014-08-23 01:27: (Info) Выполнено
2014-08-23 01:27: (Info) Cron finished in 3.7834 сек
2014-08-23 01:27: (Info) Number of MySQL queries - 389
2014-08-23 01:27: (Info) End cron job
2014-08-23 01:30////////////////////////////////////////////--->
2014-08-23 01:30: (Info) Loging Started (v. 310.4)
2014-08-23 01:30: (Info) Current run number 16
2014-08-23 01:30: (Info) Current db prefix: msfc_, clain ID: 36996
2014-08-23 01:30: (Err) Cron started too early. Time limit excided
2014-08-23 01:30: (Info) Cron finished in 0.0166 сек
2014-08-23 01:30: (Info) Number of MySQL queries - 8
2014-08-23 01:30: (Info) End cron job
2014-08-24 01:20////////////////////////////////////////////--->
2014-08-24 01:20: (Info) Loging Started (v. 310.4)
2014-08-24 01:20: (Info) Current run number 16
2014-08-24 01:20: (Info) Current db prefix: msfc_, clain ID: 36996
2014-08-24 01:20: (WG) Successful get some data from WG.
2014-08-24 01:20: (WG) Try to load info on 36 players
2014-08-24 01:20: (Info) Successfully added information about 36 players out of 36
2014-08-24 01:20: (Info) Выполнено
2014-08-24 01:20: (Info) Cron finished in 4.2112 сек
2014-08-24 01:20: (Info) Number of MySQL queries - 389
2014-08-24 01:20: (Info) End cron job
2014-08-25 01:20////////////////////////////////////////////--->
2014-08-25 01:20: (Info) Loging Started (v. 310.4)
2014-08-25 01:20: (Info) Current run number 17
2014-08-25 01:20: (Info) Current db prefix: msfc_, clain ID: 36996
2014-08-25 01:20: (WG) Successful get some data from WG.
2014-08-25 01:20: (WG) Try to load info on 36 players
2014-08-25 01:20: (Info) Successfully added information about 36 players out of 36
2014-08-25 01:20: (Info) Выполнено
2014-08-25 01:20: (Info) Cron finished in 8.4111 сек
2014-08-25 01:20: (Info) Number of MySQL queries - 389
2014-08-25 01:20: (Info) End cron job
2014-08-26 01:20////////////////////////////////////////////--->
2014-08-26 01:20: (Info) Loging Started (v. 310.4)
2014-08-26 01:20: (Info) Current run number 18
2014-08-26 01:20: (Info) Current db prefix: msfc_, clain ID: 36996
2014-08-26 01:20: (WG) Successful get some data from WG.
2014-08-26 01:20: (WG) Try to load info on 36 players
2014-08-26 01:20: (Info) Successfully added information about 36 players out of 36
2014-08-26 01:20: (Info) Выполнено
2014-08-26 01:20: (Info) Cron finished in 5.5832 сек
2014-08-26 01:20: (Info) Number of MySQL queries - 389
2014-08-26 01:20: (Info) End cron job
2014-08-27 01:20////////////////////////////////////////////--->
2014-08-27 01:20: (Info) Loging Started (v. 310.4)
2014-08-27 01:20: (Info) Current run number 19
2014-08-27 01:20: (Info) Current db prefix: msfc_, clain ID: 36996
2014-08-27 01:20: (WG) Successful get some data from WG.
2014-08-27 01:20: (WG) Try to load info on 37 players
2014-08-27 01:20: (Info) Successfully added information about 37 players out of 37
2014-08-27 01:20: (Info) Выполнено
2014-08-27 01:20: (Info) Cron finished in 4.6303 сек
2014-08-27 01:20: (Info) Number of MySQL queries - 399
2014-08-27 01:20: (Info) End cron job
2014-08-29 00:20////////////////////////////////////////////--->
2014-08-29 00:20: (Info) Loging Started (v. 310.4)
2014-08-29 00:20: (Info) Current run number 20
2014-08-29 00:20: (Info) Current db prefix: msfc_, clain ID: 36996
2014-08-29 00:20: (WG) Successful get some data from WG.
2014-08-29 00:20: (WG) Try to load info on 39 players
2014-08-29 00:20: (Info) Successfully added information about 39 players out of 39
2014-08-29 00:20: (Info) Выполнено
2014-08-29 00:20: (Info) Cron finished in 4.0274 сек
2014-08-29 00:20: (Info) Number of MySQL queries - 419
2014-08-29 00:20: (Info) End cron job
2014-08-29 01:20////////////////////////////////////////////--->
2014-08-29 01:20: (Info) Loging Started (v. 310.4)
2014-08-29 01:20: (Info) Current run number 21
2014-08-29 01:20: (Info) Current db prefix: msfc_, clain ID: 36996
2014-08-29 01:20: (Err) Cron started too early. Time limit excided
2014-08-29 01:20: (Info) Cron finished in 0.0172 сек
2014-08-29 01:20: (Info) Number of MySQL queries - 8
2014-08-29 01:20: (Info) End cron job
2014-08-29 17:11////////////////////////////////////////////--->
2014-08-29 17:11: (Info) Loging Started (v. 310.4)
2014-08-29 17:11: (Info) Current run number 21
2014-08-29 17:11: (Info) Current db prefix: msfc_, clain ID: 36996
2014-08-29 17:11: (Err) Cron started too early. Time limit excided
2014-08-29 17:11: (Info) Cron finished in 0.0218 сек
2014-08-29 17:11: (Info) Number of MySQL queries - 8
2014-08-29 17:11: (Info) End cron job
но периодически пропадает информация с вкладок "Активность общая", "Активность награды", "Лучшие результаты"
пишет сообщение "Не хватает данных для отображения этой закладки или не включен сбор статистики в админ панели."
в чем может быть проблема?
почему не отображаются данные в этих трех вкладках?