Witcherus писал(а): ↑Сб мар 27, 2021 11:09 pmУже неделю не могу разобраться с причиной постоянного падения цикла.1) Прописано www-data ALL = (ALL) NOPASSWD:ALL в visudoСпойлерПоказатьКод: Выделить всё
21:05:02 0.19947600 Adding cycle_bluetoothdevices to auto-recovery list 21:04:31 0.40131200 Starting service cycle_bluetoothdevices (./scripts/cycle_bluetoothdevices.php) 21:04:03 0.72582600 Thread closed: cycle_bluetoothdevices 21:04:02 0.70239800 Closing thread: exec php -q ./scripts/cycle_bluetoothdevices.php --params "a:0:{}" > /dev/null 2>&1 21:04:02 0.70019700 Adding cycle_bluetoothdevices to auto-recovery list 21:04:01 0.67580100 Result: 21:04:01 0.66368400 Executing: kill -9 19956 21:04:01 0.66345700 Closing thread 19956 (exec php -q ./scripts/cycle_bluetoothdevices.php --params "a:0:{}" > /dev/null 2>&1) 21:04:01 0.66305900 Force closing service cycle_bluetoothdevices (id: 27) 21:04:01 0.63205500 Got control command 'restart' for cycle_bluetoothdevices 21:04:00 0.61583100 Looks like cycle_bluetoothdevices is dead (updated: 2021-03-27 20:33:59). Need to recovery 20:25:14 0.29346600 Adding cycle_bluetoothdevices to auto-recovery list 20:24:43 0.50417000 Starting service cycle_bluetoothdevices (./scripts/cycle_bluetoothdevices.php) 20:24:15 0.81623000 Thread closed: cycle_bluetoothdevices 20:24:14 0.79227200 Closing thread: exec php -q ./scripts/cycle_bluetoothdevices.php --params "a:0:{}" > /dev/null 2>&1 20:24:14 0.79001900 Adding cycle_bluetoothdevices to auto-recovery list 20:24:13 0.76475900 Result: 20:24:13 0.75253900 Executing: kill -9 17485 20:24:13 0.75231800 Closing thread 17485 (exec php -q ./scripts/cycle_bluetoothdevices.php --params "a:0:{}" > /dev/null 2>&1) 20:24:13 0.75194000 Force closing service cycle_bluetoothdevices (id: 26) 20:24:13 0.72337100 Got control command 'restart' for cycle_bluetoothdevices 20:24:12 0.70727400 Looks like cycle_bluetoothdevices is dead (updated: 2021-03-27 19:54:11). Need to recovery 19:46:29 0.40840700 Adding cycle_bluetoothdevices to auto-recovery list 19:45:58 0.57874700 Starting service cycle_bluetoothdevices (./scripts/cycle_bluetoothdevices.php) 19:45:30 0.82863800 Thread closed: cycle_bluetoothdevices 19:45:29 0.80497500 Closing thread: exec php -q ./scripts/cycle_bluetoothdevices.php --params "a:0:{}" > /dev/null 2>&1 19:45:29 0.80276000 Adding cycle_bluetoothdevices to auto-recovery list 19:45:28 0.77771000 Result: 19:45:28 0.76570700 Executing: kill -9 14631 19:45:28 0.76547500 Closing thread 14631 (exec php -q ./scripts/cycle_bluetoothdevices.php --params "a:0:{}" > /dev/null 2>&1) 19:45:28 0.76509200 Force closing service cycle_bluetoothdevices (id: 25) 19:45:28 0.73730000 Got control command 'restart' for cycle_bluetoothdevices 19:45:27 0.72194900 Looks like cycle_bluetoothdevices is dead (updated: 2021-03-27 19:15:26). Need to recovery 19:04:37 0.78281500 Adding cycle_bluetoothdevices to auto-recovery list 19:04:06 0.95001200 Starting service cycle_bluetoothdevices (./scripts/cycle_bluetoothdevices.php) 19:03:38 0.26312000 Thread closed: cycle_bluetoothdevices 19:03:37 0.23960000 Adding cycle_bluetoothdevices to auto-recovery list 19:03:37 0.24180700 Closing thread: exec php -q ./scripts/cycle_bluetoothdevices.php --params "a:0:{}" > /dev/null 2>&1 19:03:36 0.21511900 Result: 19:03:36 0.20295700 Executing: kill -9 12005 19:03:36 0.20270900 Closing thread 12005 (exec php -q ./scripts/cycle_bluetoothdevices.php --params "a:0:{}" > /dev/null 2>&1) 19:03:36 0.20223900 Force closing service cycle_bluetoothdevices (id: 24) 19:03:36 0.17474100 Got control command 'restart' for cycle_bluetoothdevices 19:03:35 0.15955800 Looks like cycle_bluetoothdevices is dead (updated: 2021-03-27 18:33:34). Need to recovery 18:24:30 0.82449000 Adding cycle_bluetoothdevices to auto-recovery list
2) Параметры настроены на Сканирование радиоэфира:
60
300
-1
Логов модуль не пишет и не могу понять первопричину падения.
Команда sudo -u www-data l2ping 30:22:00:00:45:25 -c1 -f не проходила даже с измененным visudo.
Изменение прав - chmod -s на hciconfig и l2ping команду l2ping пропустили, но модуль падает все равно постоянно.
Переопределял права на каталоги из www/ пробовал изменять код модуля в приближении с логикой BLEtool (который работает без сбоев)/ обновлял-удалял-переустанавливал модуль/ пробовал разные bluethooth свистки... Ничего не помогло.
Идеи закончились, что может быть еще причиной постоянной остановки цикла с выводом следующей ошибки?Код: Выделить всё
cycle_bluetoothdevices Backtrace: #0 /var/www/cycle.php(370): registerError('cycle_hang', 'cycle_bluetooth...') #1 {main}
Если вдруг найдете решение, расскажите пожалуйста, у меня тоже постоянно падает цикл, причем в самые нужные моменты.