Тестирование (зависание)

Тестирование (зависание)

от Kurbon Rakhmanov -
Количество ответов: 7

Moodle 2.9 нормально работает. Но после нажатие теста одного курса (а тесты другого курса нормально работает) висит вес система. После этого заново открыть другой браузер и продолжаем работу, но именно тот курс тоже не работает.  

Даже не могу посмотреть результаты прошедших тестов этого курса.   



В ответ на Kurbon Rakhmanov

Re: Тестирование (зависание)

от Kurbon Rakhmanov -

Это error.log файл

 Cannot find session record brmpb5acir99e76nhedesoehm1 for user 2, creating new session., referer: http://*.*.*/login/index.php

[Sat Jun 01 06:30:22.896966 2019] [mpm_prefork:notice] [pid 30499] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations

[Sat Jun 01 06:30:22.897170 2019] [core:notice] [pid 30499] AH00094: Command line: '/usr/sbin/apache2'

[Sat Jun 01 06:34:27.430857 2019] [:error] [pid 30535] [client IP- adress:57298] Potential coding error - active database transaction detected during request shutdown:\n* line 105 of /course/modlib.php: call to moodle_database->star$

[Sat Jun 01 06:46:15.184807 2019] [:error] [pid 30768] [client IP- adress:50424] Cannot find session record brmpb5acir99e76nhedesoehm1 for user 2, creating new session., referer: http://*.*.*/login/index.php

[Sat Jun 01 06:46:15.185809 2019] [:error] [pid 30766] [client IP- adress:50262] Cannot find session record brmpb5acir99e76nhedesoehm1 for user 2, creating new session., referer: http://*.*.*/login/index.php

[Sat Jun 01 06:46:15.188712 2019] [:error] [pid 30767] [client IP- adress:50267] Cannot find session record brmpb5acir99e76nhedesoehm1 for user 2, creating new session., referer: http://*.*.*/login/index.php

[Sat Jun 01 07:31:44.524405 2019] [:error] [pid 30590] [client IP- adress:60244] Cannot find session record jlo1p7u5ol4sgilfilfr15sfi6 for user 2, creating new session., referer: http://*.*.*/course/view.php?id=165

[Sat Jun 01 07:31:44.526208 2019] [:error] [pid 31300] [client IP- adress:60270] Cannot find session record jlo1p7u5ol4sgilfilfr15sfi6 for user 2, creating new session., referer: http://*.*.*/course/view.php?id=165

[Sat Jun 01 07:31:44.528128 2019] [:error] [pid 31299] [client IP- adress:60283] Cannot find session record jlo1p7u5ol4sgilfilfr15sfi6 for user 2, creating new session., referer: http://*.*.*/course/

[Sat Jun 01 07:31:44.530712 2019] [:error] [pid 31290] [client IP- adress:60335] Cannot find session record jlo1p7u5ol4sgilfilfr15sfi6 for user 2, creating new session.

[Sat Jun 01 08:02:09.206725 2019] [:error] [pid 31524] [client IP- adress:51564] Cannot find session record dbqku8583om3tufit7akbs3ne4 for user 2, creating new session., referer: http://*.*.*/course/view.php?id=165

[Sat Jun 01 08:02:09.209042 2019] [:error] [pid 31453] [client IP- adress:51586] Cannot find session record dbqku8583om3tufit7akbs3ne4 for user 2, creating new session., referer: http://*.*.*/course/view.php?id=165


В ответ на Kurbon Rakhmanov

Re: Re: Тестирование (зависание)

от Виталий Лавров -
Изображение пользователя Эксперт по Moodle
[Sat Jun 01 06:34:27.430857 2019] [:error] [pid 30535] [client IP- adress:57298] Potential coding error - active database transaction detected during request shutdown:\n* line 105 of /course/modlib.php: call to moodle_database->star$

[Sat Jun 01 06:46:15.184807 2019] [:error] [pid 30768] [client IP- adress:50424] Cannot find session record brmpb5acir99e76nhedesoehm1 for user 2, creating new session., referer: http://*.*.*/login/index.php


Смотрите логи сервера БД и наличие свободного места на диске с базой.

В ответ на Виталий Лавров

Re: Re: Re: Тестирование (зависание)

от Kurbon Rakhmanov -
Filesystem Size Used Avail Use% Mounted on
udev 7.9G 0 7.9G 0% /dev
tmpfs 1.6G 8.9M 1.6G 1% /run
/dev/sda1 885G 77G 763G 10% /
tmpfs 7.9G 0 7.9G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup
tmpfs 1.6G 0 1.6G 0% /run/user/1000
Место достаточно
Когда нажимаем тесты именно этого курса moodle зависает.
В ответ на Kurbon Rakhmanov

Re: Re: Re: Re: Тестирование (зависание)

от Виталий Лавров -
Изображение пользователя Эксперт по Moodle
Что в логах сервера БД ?

Если настройки php существенно меньше указанных, то есть смысл их увеличить
php_value memory_limit 256M
php_value max_execution_time 180

Есть смысл включить отладку на максимум и повторить попытку.


В ответ на Виталий Лавров

Re: Re: Re: Re: Re: Тестирование (зависание)

от Kurbon Rakhmanov -
Что в логах сервера БД ?
2019-06-05T15:53:58.008201Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 8588ms. The settings might not be optimal. (flushed=0 and evicted=0, during the time.)
2019-06-05T21:11:09.840746Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 6915ms. The settings might not be optimal. (flushed=1 and evicted=0, during the time.)
2019-06-06T03:34:40.733070Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 4223ms. The settings might not be optimal. (flushed=9 and evicted=0, during the time.)
2019-06-06T04:35:59.979459Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 4124ms. The settings might not be optimal. (flushed=7 and evicted=0, during the time.)
2019-06-06T05:50:33.540968Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 4084ms. The settings might not be optimal. (flushed=1 and evicted=0, during the time.)
2019-06-06T06:11:01.342723Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 4189ms. The settings might not be optimal. (flushed=7 and evicted=0, during the time.)
В ответ на Kurbon Rakhmanov

Re: Re: Re: Re: Re: Re: Тестирование (зависание)

от Виталий Лавров -
Изображение пользователя Эксперт по Moodle
логи БД типа [Note] это не ошибки. Есть ли что-то с [error] ?

В гугле "InnoDB: page_cleaner: 1000ms intended loop took" дает достаточно ссылок на решения проблемы.

В логах web-сервера есть ошибки ( коды 4xx или 5xx) ?
В ответ на Виталий Лавров

Potential coding error

от Kurbon Rakhmanov -
memory_limit=256M
max_execution_time=300
[Fri Jun 07 05:31:14.523969 2019] [:error] [pid 7893] [client 192.168.16.1:37512] Potential coding error - active database transaction detected during request shutdown:\n* line 47 of /mod/quiz/processattempt.php: call to moodle_database->start_delegated_transaction()\n, referer: http://estudy.dba.uz/mod/quiz/attempt.php?attempt=46714&page=1