• Resolved acurran

    (@acurran)


    Wordfence scan is failing with this message: “Scan Stage Failed
    A scan stage has failed to start. This is often because the site either cannot make outbound requests or is blocked from connecting to itself. Wordfence will make up to 2 attempts to resume each failed scan stage. This scan may recover if one of these attempts is successful.”

    I have migrated this website to it’s current server yesterday. Wordfence scan was working before migration. I have migrated other websites to this server and Wordfence scan working fine on all of them. I tried deleting Wordfence and all it’s data and reinstalling it but that didn’t change anything. I’ve increased Maximum execution time to 40 but no difference. It fails after just a few seconds.

    I turned on debugging and this is the log (**************some details redacted in case it’s a security issue):

    [Oct 05 11:12:19] Ajax request received to start scan.
    [Oct 05 11:12:19] Entering start scan routine
    [Oct 05 11:12:19] Got value from wf config maxExecutionTime: 40
    [Oct 05 11:12:19] getMaxExecutionTime() returning config value: 40
    [Oct 05 11:12:20] Test result of scan start URL fetch: array ( ‘headers’ => WpOrg\Requests\Utility\CaseInsensitiveDictionary::__set_state(array( ‘data’ => array ( ‘date’ => ‘Wed, 04 Oct 2023 22:12:19 GMT’, ‘server’ => ‘Apache’, ‘x-powered-by’ => ‘PHP/7.3.33’, ‘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’, ‘referrer-policy’ => ‘strict-origin-when-cross-origin’, ‘x-frame-options’ => ‘SAMEORIGIN’, ‘upgrade’ => ‘h2,h2c’, ‘vary’ => ‘Accept-Encoding’, ‘content-encoding’ => ‘gzip’, ‘content-length’ => ’32’, ‘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(
    [Oct 05 11:12:20] Starting cron with normal ajax at URL https://**************/wp-admin/admin-ajax.php?action=wordfence_doScan&isFork=0&scanMode=custom&cronKey=**************&signature=**************
    [Oct 05 11:12:21] Scan process ended after forking.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support wfmark

    (@wfmark)

    Hi @acurran , thanks for reaching out.

    Please 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.

    If you have already tried the troubleshooting steps above, please send a diagnostic report to [email protected]. You can find the link to do so at the top of the Wordfence > Tools > Diagnostics page. Then click on “Send Report by Email”. Please add your forum username where indicated and respond here after you have sent it.

    Let me know if this helps.


    Thanks

    Mark. 

    Thread Starter acurran

    (@acurran)

    The issue seems to have ‘magically’ resolved itself. There was en empty htaccess file in the web root which I removed – may have been something to do with it. Another possibility was that since the website was recently migrated, the old DNS records may have been cached somewhere and that could have affected it. Anyway thanks for replying!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Scan Stage Failed’ is closed to new replies.