Unable to Complete Scan
-
I have been trying to run a scan of our website for several weeks. Today I doubled the time available to complete the scan. It is now set to run for 6 hours. After running the scan for most of the day, I got the following error message:
Scan terminated with error: Wordfence file scanner detected a possible infinite loop. Exiting on file: (nothing was listed here)
What does this mean? How do I fix this?
I have two other sites that use WordFence and I have never seen this.
Thank you for your assistance!
- This topic was modified 4 years, 5 months ago by geweb.
-
Hey @geweb,
Can you do the following so I can get the information I need to help you?
Kill the existing scan if it is still running (The “Start New Scan” button turns in to a “Stop” button while the scan is running)
Go to your Scan > Scan Options and Scheduling page and locate the “Performance Options”
Set “Maximum execution time for each scan stage” to 20 on the options page
Click to “Save Changes”Go to the Tools > Diagnostics page
In the “Debugging Options” section check the circle “Enable debugging mode”
Click to “Save Changes”
Start a new scan
Copy the last 20 lines from the Log (click the “Show Log” link) or so of the activity log and paste them here
Please let me know.
Thanks,
Gerroald
Hey @geweb,
We haven’t heard back from you in a while, so I’ve gone ahead and marked this thread as resolved.
Please feel free to open another thread if you’re still having issues with Wordfence.
Thanks,
Gerroald
I apologize for not getting back to you sooner. I was finally able to follow the steps you sent today. The scan failed again because it timed out. It reached the 6 hour time limit.
Please let me know your thoughts on this.
Thank you!Here are the last 20 lines from the activity log:
[Jul 02 14:16:25] Scanning: /home/genera96/public_html/wp-admin/images/w-logo-blue.png (Mem:89.0M)
[Jul 02 14:16:25] Scanning: /home/genera96/public_html/wp-admin/images/w-logo-white.png (Mem:89.0M)
[Jul 02 14:16:25] Scanning: /home/genera96/public_html/wp-admin/images/wheel.png (Mem:89.0M)
[Jul 02 14:16:25] Scanning: /home/genera96/public_html/wp-admin/images/wordpress-logo-white.svg (Mem:89.0M)
[Jul 02 14:16:25] Scanning: /home/genera96/public_html/wp-admin/images/wordpress-logo.png (Mem:89.0M)
[Jul 02 14:16:25] Scanning: /home/genera96/public_html/wp-admin/images/wordpress-logo.svg (Mem:89.0M)
[Jul 02 14:16:25] Scanning: /home/genera96/public_html/wp-admin/images/wpspin_light-2x.gif (Mem:89.0M)
[Jul 02 14:16:25] Scanning: /home/genera96/public_html/wp-admin/images/wpspin_light.gif (Mem:89.0M)
[Jul 02 14:16:25] Scanning: /home/genera96/public_html/wp-admin/images/xit-2x.gif (Mem:89.0M)
[Jul 02 14:16:25] Scanning: /home/genera96/public_html/wp-admin/images/xit.gif (Mem:89.0M)
[Jul 02 14:16:25] Scanning: /home/genera96/public_html/wp-admin/images/yes.png (Mem:89.0M)
[Jul 02 14:16:25] Scanning: /home/genera96/public_html/wp-admin/import.php (Mem:89.0M)
[Jul 02 14:16:25] Scanning: /home/genera96/public_html/wp-admin/includes/admin-filters.php (Mem:89.0M)
[Jul 02 14:16:25] Scanning: /home/genera96/public_html/wp-admin/includes/admin.php (Mem:89.0M)
[Jul 02 14:16:26] ——————-
[Jul 02 14:16:26] Scan interrupted. Scanned 2650768 files, 14 plugins, 2 themes, 0 posts, 0 comments and 0 URLs in 6 hours 7 seconds.
[Jul 02 14:16:26] Calling Wordfence API v2.26:https://noc1.wordfence.com/v2.26/?k=9dcb888a9bb06f0cc83b46ef00ba3b060863e51b117004ed7b4d613a10ce58ca3b02aa8ba2178d2f01511343095f5dabc3eda48b55266d0325ebb1c9fee92800ecc9ca134039901935ef7aaa190564c8&s=eyJ3cCI6IjUuNC4yIiwid2YiOiI3LjQuOCIsIm1zIjpmYWxzZSwiaCI6Imh0dHBzOlwvXC93d3cuZ2VuZXJhbGVuZ2luZWVyaW5nLm5ldCIsInNzbHYiOjI2ODQzOTY0NywicHYiOiI3LjMuMTEiLCJwdCI6ImNnaS1mY2dpIiwiY3YiOiI3LjQ1LjAiLCJjcyI6Ik9wZW5TU0xcLzEuMC4xZSIsInN2IjoiQXBhY2hlIiwiZHYiOiIxMC4yLjMyLU1hcmlhREItbG9nIn0&betaFeed=0&action=record_scan_metrics
[Jul 02 14:16:26] Wordfence used 43.28 MB of memory for scan. Server peak memory usage was: 114.28 MB
[Jul 02 14:16:26] Scan terminated with error: The scan time limit of 6 hours has been exceeded and the scan will be terminated. This limit can be customized on the options page. Get More Information
[Jul 02 14:21:50] Calling Wordfence API v2.26:https://noc1.wordfence.com/stats.jsonThanks for sending that. It looks like 6 hours wasn’t enough time to finish the scan. Try upping it to 8 hours (28800) and see if it completes then.
Is there anything different about your site in particular? Are there any symlinks in the public_html folder (eg: if you are creating a symbolic link for /images which points to /wp-content/uploads or similar)? Do you have a lot of folders inside the WordPress installation directory like other WordPress sites or other large folders?
Tim
I am trying to run the scan again now. Hopefully with 8 hours it will finish. I don’t think there is anything particularly different about our site. We are an engineering/building inspection firm. We have a lot of project photos, but I have optimized most, if not all of them, for website use. Our plugins are all updated and I removed all unnecessary themes. There are no other WordPress sites running through this one and no additional WordPress installations. Would it help to know what themes and plugins we have installed?
Thank you for your assistance!
I tried the scan again. The scan terminated after 7 or so hours. It once again said that it terminated due to a possible infinite loop.
Here is the last several lines of the log:
[Jul 14 15:44:37] Scanning: /home/genera96/public_html/wp-admin/network/admin.php (Mem:87.0M)
[Jul 14 15:44:38] Calling fork() from wordfenceHash with maxExecTime: 20
[Jul 14 15:44:38] Entered fork()
[Jul 14 15:44:38] Calling startScan(true)
[Jul 14 15:44:38] Got value from wf config maxExecutionTime: 20
[Jul 14 15:44:38] getMaxExecutionTime() returning config value: 20
[Jul 14 15:44:41] Test result of scan start URL fetch: array ( ‘headers’ => Requests_Utility_CaseInsensitiveDictionary::__set_state(array( ‘data’ => array ( ‘date’ => ‘Tue, 14 Jul 2020 20:44:38 GMT’, ‘server’ => ‘Apache’, ‘x-powered-by’ => ‘PHP/7.3.11’, ‘x-robots-tag’ => ‘noindex’, ‘x-content-type-options’ => ‘nosniff’, ‘expires’ => ‘Wed, 11 Jan 1984 05:00:00 GMT’, ‘cache-control’ => ‘no-cache, must-revalidate, max-age=0’, ‘x-frame-options’ => ‘SAMEORIGIN’, ‘referrer-policy’ => ‘strict-origin-when-cross-origin’, ‘upgrade’ => ‘h2,h2c’, ‘content-type’ => ‘text/html; charset=UTF-8’, ), )), ‘body’ => ‘WFSCANTESTOK’, ‘response’ => array ( ‘code’ => 200, ‘message’ => ‘OK’, ), ‘cookies’ => array ( ), ‘filename’ => NULL, ‘http_response’ => WP_HTTP_Requests_Response::__set_state(array( ‘response’ => Requests_Response::__set_state(array( ‘body’ => ‘WFSCANTESTOK’, ‘raw’ => ‘
[Jul 14 15:44:41] Starting cron with normal ajax at URL https://www.generalengineering.net/wp-admin/admin-ajax.php?action=wordfence_doScan&isFork=1&scanMode=custom&cronKey=a79f1659a2e15981b27e6b14dc1cda1b&signature=814796c228e2803e7b67ecfab1f1f24f25a682799ad92c4b172ad305b3b160ec
[Jul 14 15:44:42] Scan engine received request.
[Jul 14 15:44:42] Verifying start request signature.
[Jul 14 15:44:42] Fetching stored cronkey for comparison.
[Jul 14 15:44:42] Checking cronkey: a79f1659a2e15981b27e6b14dc1cda1b (expecting a79f1659a2e15981b27e6b14dc1cda1b)
[Jul 14 15:44:42] Checking saved cronkey against cronkey param
[Jul 14 15:44:42] Requesting max memory
[Jul 14 15:44:42] Setting up error handling environment
[Jul 14 15:44:42] Setting up scanRunning and starting scan
[Jul 14 15:44:42] Got a true deserialized value back from ‘wfsd_engine’ with type: object
[Jul 14 15:44:42] Calling Wordfence API v2.26:https://noc1.wordfence.com/v2.26/?k=9dcb888a9bb06f0cc83b46ef00ba3b060863e51b117004ed7b4d613a10ce58ca3b02aa8ba2178d2f01511343095f5dabc3eda48b55266d0325ebb1c9fee92800ecc9ca134039901935ef7aaa190564c8&s=eyJ3cCI6IjUuNC4yIiwid2YiOiI3LjQuOSIsIm1zIjpmYWxzZSwiaCI6Imh0dHBzOlwvXC93d3cuZ2VuZXJhbGVuZ2luZWVyaW5nLm5ldCIsInNzbHYiOjI2ODQzOTY0NywicHYiOiI3LjMuMTEiLCJwdCI6ImNnaS1mY2dpIiwiY3YiOiI3LjQ1LjAiLCJjcyI6Ik9wZW5TU0xcLzEuMC4xZSIsInN2IjoiQXBhY2hlIiwiZHYiOiIxMC4yLjMyLU1hcmlhREItbG9nIn0&betaFeed=0&action=record_scan_metrics
[Jul 14 15:44:42] Scan process ended after forking.
[Jul 14 15:44:43] Scan terminated with error: Wordfence file scanner detected a possible infinite loop. Exiting on file:Any thoughts?
Thank you,
GEC
- The topic ‘Unable to Complete Scan’ is closed to new replies.