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
| Comment | File | Size | Author |
|---|---|---|---|
| #25 | 755766-security_review-check-skip.patch | 8.13 KB | coltrane |
| #24 | 755766-security_review-from-date.patch | 4.3 KB | coltrane |
| #10 | 755766-batch-security-review-10.patch | 7.34 KB | coltrane |
| #8 | 755766-batch-security-review-8.patch | 7.19 KB | coltrane |
| #7 | 755766-batch-security-review.patch | 7.1 KB | coltrane |
Comments
Comment #1
coltraneIt 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.
Comment #2
tranquille commentedhi 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!!!
Comment #3
coltranetranquille, 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.
Comment #4
tranquille commentedI´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.
Comment #5
coltraneI think this could be handled by processing the checklist using Batch API.
Comment #6
coltraneMoving to a feature request.
I've begun on some code but its not near completion enough to post.
Comment #7
coltraneThe 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.
Comment #8
coltraneMinor update to #7 patch corrects some comments and adds some output for the user during batch processing.
Comment #9
coltraneMinor but CNW now that http://drupal.org/cvs?commit=458548
Comment #10
coltraneUpdated.
Comment #11
coltraneFixed http://drupal.org/cvs?commit=458684
Comment #12
timoratd commentedI have more than 300k nodes, a white screen of death always there after running for a few minutes.
Comment #13
coltrane@tutube, are you running the dev release of Security Review?
Comment #14
timoratd commentedI am running 6.x-1.0
Comment #15
coltrane@tutube, try the dev release, or if you're OK waiting there should be a 1.1 release in the next month or two
Comment #16
timoratd commentedI 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.
Comment #17
coltraneOk, 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.
Comment #18
coltraneRe-opening.
Comment #19
coltrane@tutube in the mean time to be able to use the rest of the Security Review checklist you could skip the node check.
Comment #20
timoratd commentedmay 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'.
Comment #21
coltrane@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?
Comment #22
timoratd commentednever, 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'.
Comment #23
coltraneHere'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.
Comment #24
coltraneAnd the patch
Comment #25
coltraneHere'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.
Comment #26
coltraneThis was committed http://drupalcode.org/project/security_review.git/commit/bcf04d4