Moodle

security overview report not working

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9.3
  • Fix Version/s: 1.9.5
  • Component/s: Administration
  • Labels:
    None
  • Environment:
    WAMP
    Apache 2.0.11 PHP 5.2.8 MySQL 5.0.74
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

I try to run the security overview report on my server and it takes a very long time to run, with MySQL at 100% CPU utilitzation, then it finishes and displays nothing but the text "Security overview" on a white screen.

I see no errors in my Apache log.

Issue Links

Activity

Hide
Petr Škoda (skodak) added a comment -

hello,
I have added a timeout protection to the security overview report, it should not timeout anymore. The problem is that it may take a lot of time to complete though - please see the linked bug.

thanks for the report.

Show
Petr Škoda (skodak) added a comment - hello, I have added a timeout protection to the security overview report, it should not timeout anymore. The problem is that it may take a lot of time to complete though - please see the linked bug. thanks for the report.
Hide
Ryan Smith added a comment -

I updated my CVS and got the new file. It still runs for a long time and displays nothing. My max_execution_time in PHP is set really high so I don't think its timing out on the script. In MySQL, it is running the query:

SELECT COUNT( DISTINCT u.id )
FROM mdl_role_capabilities rc
JOIN mdl_capabilities cap

for a very long time.

Show
Ryan Smith added a comment - I updated my CVS and got the new file. It still runs for a long time and displays nothing. My max_execution_time in PHP is set really high so I don't think its timing out on the script. In MySQL, it is running the query: SELECT COUNT( DISTINCT u.id ) FROM mdl_role_capabilities rc JOIN mdl_capabilities cap for a very long time.
Hide
Petr Škoda (skodak) added a comment -

yes, it may take a veeery long time to execute on large sites

Could you please say how many course/users/course categories you have on your site?
Is it a shared hosting site?

Show
Petr Škoda (skodak) added a comment - yes, it may take a veeery long time to execute on large sites Could you please say how many course/users/course categories you have on your site? Is it a shared hosting site?
Hide
Ryan Smith added a comment -

We have:

1,468 courses
22,482 users
19 course categories

No, it isn't a shared hosting site.

Show
Ryan Smith added a comment - We have: 1,468 courses 22,482 users 19 course categories No, it isn't a shared hosting site.
Hide
Petr Škoda (skodak) added a comment -

reopening the query involved may take a really long time, unfortunately the timeout in SQL code is hard to prevent

I was thinking about a way to divide the query into several parts, but so far failed to do so

Show
Petr Škoda (skodak) added a comment - reopening the query involved may take a really long time, unfortunately the timeout in SQL code is hard to prevent I was thinking about a way to divide the query into several parts, but so far failed to do so
Hide
Petr Škoda (skodak) added a comment -

please see the linked bug, I hope the latest changes will improve the situation

Show
Petr Škoda (skodak) added a comment - please see the linked bug, I hope the latest changes will improve the situation
Hide
Ryan Smith added a comment -

I added my comments to the linked bug. I'm still not getting the report to run successfully.

Show
Ryan Smith added a comment - I added my comments to the linked bug. I'm still not getting the report to run successfully.
Hide
Petr Škoda (skodak) added a comment -

should be solved now, see the linked bug
thanks a lot

Show
Petr Škoda (skodak) added a comment - should be solved now, see the linked bug thanks a lot
Hide
Ryan Smith added a comment -

works now, thanks!

Show
Ryan Smith added a comment - works now, thanks!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: