Support » Plugin: Wordfence Security - Firewall, Malware Scan, and Login Security » Scan Failed The scan has failed to start. This is often because the site either
Scan Failed The scan has failed to start. This is often because the site either
-
I’m getting the error:
Scan Failed
The scan has failed to start. This is often because the site either cannot make outbound requests or is blocked from connecting to itself. Click here for steps you can try.Have tried the guide, but no luck resolving it.
-
Hi @hamza4547
Thanks for reaching out!
Can you do the following so I can get the information I need to help you?
1. 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)
2. 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
3. Click to “Save Changes”
4. Go to the Tools > Diagnostics page
5. In the “Debugging Options” section check the circle “Enable debugging mode”
6. Click to “Save Changes”.
7. Start a new scan
8. Copy the last 20 lines from the Log (click the “Show Log” link) or so of the activity log and paste them in the post.On occasion, this fixes it straight away. That’s because adding 20 for the “Maximum execution time for each scan stage” tells the scan to pause every 20 seconds and start again where it left off. If this fixes the issue and scans run again, you can leave all the settings above except for “Enable Debugging Mode”.
Thanks,
Joshua
Scan Failed
The scan has failed to start. This is often because the site either cannot make outbound requests or is blocked from connecting to itselfHere is the activity log
[Mar 29 22:54:25:1648576465.515415:4:info] Scan process ended after forking.
[Mar 29 22:54:24:1648576464.540884:4:info] Starting cron via proxy at URL https://noc1.wordfence.com/scanp/cricketnlive.com/wp-admin/admin-ajax.php?action=wordfence_doScan&isFork=0&scanMode=custom&cronKey=8c2e371369171e8bd279159977e2aa7e&k=d7a364eacf18224d051589ea90d81d7be2e9955319c2760587ae0929e03f3eb2104bc7678d0f9d0496582094e97531f5c0eb195f623e15fd9b3de4929d46353013e75b03ed9304c209690a9e5c0fbac0&ssl=1&signature=fb5bac9f936ed8452a44de78e3f6ab06e689b172c367fd2d0182afe56de45582
[Mar 29 22:54:24:1648576464.537433:4:info] getMaxExecutionTime() returning config value: 20
[Mar 29 22:54:24:1648576464.536486:4:info] Got value from wf config maxExecutionTime: 20
[Mar 29 22:54:24:1648576464.532984:4:info] Entering start scan routine
[Mar 29 22:54:24:1648576464.521931:4:info] Ajax request received to start scan.
[Mar 29 22:54:10:1648576450.082725:4:info] Calling Wordfence API v2.26:https://noc1.wordfence.com/v2.26/?k=d7a364eacf18224d051589ea90d81d7be2e9955319c2760587ae0929e03f3eb2104bc7678d0f9d0496582094e97531f5c0eb195f623e15fd9b3de4929d46353013e75b03ed9304c209690a9e5c0fbac0&s=eyJ3cCI6IjUuNy42Iiwid2YiOiI3LjUuOSIsIm1zIjpmYWxzZSwiaCI6Imh0dHBzOlwvXC9jcmlja2V0bmxpdmUuY29tIiwic3NsdiI6MjY5NDg4MTQzLCJwdiI6IjcuMi4yNC0wdWJ1bnR1MC4xOC4wNC4xMCIsInB0IjoiYXBhY2hlMmhhbmRsZXIiLCJjdiI6IjcuNTguMCIsImNzIjoiT3BlblNTTFwvMS4xLjEiLCJzdiI6IkFwYWNoZSIsImR2IjoiNS43LjM2LTB1YnVudHUwLjE4LjA0LjEiLCJsYW5nIjoiIn0&betaFeed=0&action=timestamp
[Mar 29 22:53:29:1648576409.150083:10:info] SUM_KILLED:A request was received to stop the previous scan.
[Mar 29 22:53:29:1648576409.147264:1:info] Scan stop request received.
[Mar 29 21:42:30:1648572150.073196:4:info] Scan process ended after forking.
[Mar 29 21:42:29:1648572149.119061:4:info] Starting cron via proxy at URL https://noc1.wordfence.com/scanp/cricketnlive.com/wp-admin/admin-ajax.php?action=wordfence_doScan&isFork=0&scanMode=custom&cronKey=ad03472cc46bbf02bc7e871d7796fa3b&k=d7a364eacf18224d051589ea90d81d7be2e9955319c2760587ae0929e03f3eb2104bc7678d0f9d0496582094e97531f5c0eb195f623e15fd9b3de4929d46353013e75b03ed9304c209690a9e5c0fbac0&ssl=1&signature=a374672971965064cd0ba350beba3c806fe049a35c3f21ec686a88d32ee86367
[Mar 29 21:42:29:1648572149.117071:4:info] getMaxExecutionTime() returning config value: 20
[Mar 29 21:42:29:1648572149.114665:4:info] Got value from wf config maxExecutionTime: 20
[Mar 29 21:42:29:1648572149.113063:4:info] Entering start scan routine
[Mar 29 21:42:29:1648572149.106759:4:info] Ajax request received to start scan.
[Mar 29 21:42:03:1648572123.644940:4:info] Calling Wordfence API v2.26:https://noc1.wordfence.com/v2.26/?k=d7a364eacf18224d051589ea90d81d7be2e9955319c2760587ae0929e03f3eb2104bc7678d0f9d0496582094e97531f5c0eb195f623e15fd9b3de4929d46353013e75b03ed9304c209690a9e5c0fbac0&s=eyJ3cCI6IjUuNy42Iiwid2YiOiI3LjUuOSIsIm1zIjpmYWxzZSwiaCI6Imh0dHBzOlwvXC9jcmlja2V0bmxpdmUuY29tIiwic3NsdiI6MjY5NDg4MTQzLCJwdiI6IjcuMi4yNC0wdWJ1bnR1MC4xOC4wNC4xMCIsInB0IjoiYXBhY2hlMmhhbmRsZXIiLCJjdiI6IjcuNTguMCIsImNzIjoiT3BlblNTTFwvMS4xLjEiLCJzdiI6IkFwYWNoZSIsImR2IjoiNS43LjM2LTB1YnVudHUwLjE4LjA0LjEiLCJsYW5nIjoiIn0&betaFeed=0&action=timestamp
[Mar 29 21:39:51:1648571991.732040:10:info] SUM_KILLED:A request was received to stop the previous scan.
[Mar 29 21:39:51:1648571991.729095:1:info] Scan stop request received.
[Mar 29 21:36:53:1648571813.341302:10:info] SUM_KILLED:A request was received to stop the previous scan.
[Mar 29 21:36:53:1648571813.338345:1:info] Scan stop request received.`Hi @hamza4547
Thanks for getting back to me!
Since you get the “Scan process ended after forking” message as the last line in the scan log, check and make sure that you have not blocked access to the “wp-admin” directory with a “.htaccess” file or limited access to it via another method.
If you have, make sure to allow your server’s IP address to access this directory. Also, check if you have Memcache running on your server. Memcache may have to be restarted twice in order for the object cache to remove the saved Wordfence scan cronkey.
Please let me know how it goes?
Thanks,
Joshua
- The topic ‘Scan Failed The scan has failed to start. This is often because the site either’ is closed to new replies.