Hi,
am trying to run the security review checklist.
After setting permissions and roles to check - starting check list trigger.
IT looks like script starts execution - but no http-request is ever sent.
Script seems to be loading like forever within the browser before resulting in a white screen of death.
No error message - no error log (watchdog/webserver).

I adapted php_flags for memory_limit, max_execution_time and the likes.
??

I´m using PHP 5.3 and MySQL 5.1

Thanks for any help!

tranquille

Comments

coltrane’s picture

It sounds like there is something about your site that the Security Review module hangs on reviewing. Have you tried setting checks to skipped to narrow down what check(s) could be taking so long? If not I recommend doing so. I would disable the file system check to start.

Update:
The checks happen over one HTTP request. A feature would be to use batch processing, or integrate with drush.

tranquille’s picture

hi coltrane,
thanks for getting back so quick!!

Do you mean the advanced setting (under admin/reports/security-review/settings) "Log checklist results and skips"???
I assume not... because I tried both variants.
That´s the only option I have (besides selecting roles).... there´s no option to either select or skip certain checks.

Here lies my problem I guess.... under admin/reports/security-review there´s only one button >> Run
no further options.

thanks again for taking the time!!!

coltrane’s picture

tranquille, on the main security review page (admin/reports/security-review) you should have an option besides "Details" called "Skip". See the screenshot on the project page: http://drupal.org/project/security_review Do you have that option?

Also, be sure you have the permissions set for the module at admin/user/permissions.

tranquille’s picture

I´ve no "Skip" option as security review check hasn´t run once; so no table with the options appears.
The permissions are set.

The request seems to take forever... but always ends in a whitescreen.

?
Thanks again

p.s. I´m running in a multisite setup - could this be the reason?
I don´t get any error logs - so no clue what´s wrong.

coltrane’s picture

Title: Security Review no http request » Provide batch processing

I think this could be handled by processing the checklist using Batch API.

coltrane’s picture

Category: support » feature

Moving to a feature request.

I've begun on some code but its not near completion enough to post.

coltrane’s picture

Status: Active » Needs review
StatusFileSize
new7.1 KB

The attached patch splits out the check running into its own function and provides a batch that makes an operation for each check. This provides a whole cycle for each check. A followup patch could provide an argument for checks to run their own batch operations.

coltrane’s picture

StatusFileSize
new7.19 KB

Minor update to #7 patch corrects some comments and adds some output for the user during batch processing.

coltrane’s picture

coltrane’s picture

StatusFileSize
new7.34 KB

Updated.

coltrane’s picture

Status: Needs review » Fixed
timoratd’s picture

I have more than 300k nodes, a white screen of death always there after running for a few minutes.

coltrane’s picture

@tutube, are you running the dev release of Security Review?

timoratd’s picture

I am running 6.x-1.0

coltrane’s picture

@tutube, try the dev release, or if you're OK waiting there should be a 1.1 release in the next month or two

timoratd’s picture

I tried the dev release, it stopped with error at /batch?op=start&id=4, when I tried 'Run checklist' again, it stopped at batch?op=start&id=5, then 6,7,8... but never finished its job.

coltrane’s picture

Ok, I'll test after having devel create 300k nodes, it may be that a batch for the node body check is needed. Thanks for testing it out.

coltrane’s picture

Title: Provide batch processing » Test batch processing of large operations
Status: Fixed » Needs work

Re-opening.

coltrane’s picture

@tutube in the mean time to be able to use the rest of the Security Review checklist you could skip the node check.

timoratd’s picture

may I ask how to skip the node check? I looked at this page:
/admin/reports/security-review/settings
but can not find setting for 'node check'.

coltrane’s picture

@tutube I just realized something, if the checklist is unable to complete the first time there will be no option to skip a check (it appears alongside the check results on admin/reports/security-review). Has the checklist ever completed for you?

timoratd’s picture

never, it stopped with err after running for a few minutes.

it will be better if you could provide an option to enable node check, or date range such as 'only check nodes from 2010-10-01 to 2010-12-31'.

coltrane’s picture

Title: Test batch processing of large operations » Provide search from date option
Status: Needs work » Needs review

Here's a patch against 6.x-1.x-dev that provides an advanced option for specifying a date to search content from. The format is Y-m-d or 2010-01-01. Please give it a try tutube. (To apply a patch see http://drupal.org/node/367392)

This also provides a fix for #1007294: Node check fails then passes

I'd still like to provide per check batch operations, which I'll look into now.

coltrane’s picture

StatusFileSize
new4.3 KB

And the patch

coltrane’s picture

Title: Provide search from date option » Better handling for check timeouts
StatusFileSize
new8.13 KB

Here's another approach which provides check skipping in the Security Review Settings form, so you can mark a check for skipping before the checklist has been run. I prefer this over the method in #24.

coltrane’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.