gtn / exalib

0 stars 1 forks source link

After opening exabis library moodle freezes #16

Open sirarmando opened 2 years ago

sirarmando commented 2 years ago

Hi,

It's been a week that I have encountered a weird issue. I have been using Exabis Library Plugin to upload different module materials for students. However Since last week, whenever I try to enter the plugin using any of the links (Entries, Categories, Manage Categories etc.) it simply takes ages to load and after waiting for a while it gives 504 Gateway Time-out Error.

Then I can not enter my moodle until I clear my browser data (caches) and then I can reload my moodle webpage again. I don't have any issue with any other plugin.

I have tried to purge all my moodle caches & re-install the exabis library using it's latest update, but no luck. 3.10.1+ moodle version (Build: 20210130)

I have checked the exalib error log and it gives me this:

[25-Oct-2021 10:25:11 Europe/London] Cannot obtain session lock for sid: 0e9e89a7d5a592ff2d7ca9bb57d6f538 [28-Oct-2021 15:19:16 Europe/London] Cannot find session record 29551b306385dd1beaf8fc8661e173d2 for user 506, creating new session. [28-Oct-2021 15:19:16 Europe/London] Cannot find session record 29551b306385dd1beaf8fc8661e173d2 for user 506, creating new session.

sirarmando commented 2 years ago

Here is also a report from our datacenter manager stating that these are causing our CPU to max out on the server too:

Based on open files check (lsof -p PID,) they are all utilizing the Exabis library:

[root@ITV1 public_html]# for p in ps aux | grep pars | sort -k 10 -n -r | head -n 6 | awk '{print $2}' ; do lsof -p $p -n | grep exa; done php-cgi 32674 user cwd DIR 253,0 4096 14813545 /home/user/public_html/school/blocks/exalib php-cgi 1281 user cwd DIR 253,0 4096 14813545 /home/user/public_html/school/blocks/exalib php-cgi 5666 user cwd DIR 253,0 4096 14813545 /home/user/public_html/school/blocks/exalib php-cgi 14789 user cwd DIR 253,0 4096 14813545 /home/user/public_html/school/blocks/exalib php-cgi 16833 user cwd DIR 253,0 4096 14813545 /home/user/public_html/school/blocks/exalib php-cgi 20637 user cwd DIR 253,0 4096 14813545 /home/user/public_html/school/blocks/exalib

ariepl commented 2 years ago

Hello, we analyzed this problem and it seems to be related to a session-management of moodle. have you tried activating the debug-mode in moodle to get some more information? regards, Andreas