• Resolved mahdar2003

    (@mahdar2003)


    Hello good time

    When scanning, we encounter the following error

    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. Click here for steps you can try.

    Thank

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support wfjanet

    (@wfjanet)

    Hi @mahdar2003,

    Thank you for reaching out.

    Can you do the following so I can get the information I need to help you?

    • Stop the existing scan if it is still running (The “Start New Scan” button turns into a “Stop” button while the scan is running).
    • Go to your Wordfence > Scan > Manage Scan and locate the “Performance Options” section. Set “Maximum execution time for each scan stage” to 20. 
    • Click to “Save Changes”.
    • Go to the Tools > Diagnostics page.
    • In the “Debugging Options” section check the circle “Enable debugging mode”.
      If “Start scan remotely” is checked, uncheck this option.
    • Click to “Save Changes”.
    • Start a new scan on the Scan page.
    • If the scan fails again, copy the last 20 lines or so from the Log (click the “Show Log” link) once the scan finishes and paste them in the post.

    On some sites, this will correct the issue. 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, which makes the scan more performance-friendly for some servers. If this fixes the issue and scans run again, you can leave all the settings above except for “Enable Debugging Mode”.

    For a screenshot of my recommended Performance setting options click here.

    Thanks,
    Janet.

    Thread Starter mahdar2003

    (@mahdar2003)

    Hello, good time, thank you for your reply

    I did all the mentioned things, but it didn’t work. I also took a video, please see

    Thank

    Video : https://drive.google.com/file/d/19X3m__K1BfW7SsSItKymPAopmOvDAsSy/view?usp=share_link

    Host specifications:
    Ram: 12
    12 core cpu

    [May 17 10:00:34] Got value from wf config maxExecutionTime: 20
    [May 17 10:00:34] getMaxExecutionTime() returning config value: 20
    [May 17 10:00:34] Test result of scan start URL fetch: array ( ‘headers’ => WpOrg\Requests\Utility\CaseInsensitiveDictionary::__set_state(array( ‘data’ => array ( ‘date’ => ‘Wed, 17 May 2023 10:00:34 GMT’, ‘content-type’ => ‘text/html; charset=UTF-8’, ‘set-cookie’ => array ( 0 => ‘wmc_ip_info=eyJjb3VudHJ5IjoiREUiLCJjdXJyZW5jeV9jb2RlIjoiRVVSIn0%3D; expires=Thu, 18-May-2023 10:00:34 GMT; Max-Age=86400; path=/; secure’, 1 => ‘wmc_current_currency=EUR; expires=Thu, 18-May-2023 10:00:34 GMT; Max-Age=86400; path=/; secure’, 2 => ‘wmc_current_currency_old=EUR; expires=Thu, 18-May-2023 10:00:34 GMT; Max-Age=86400; path=/; secure’, 3 => ‘wmc_wpml_lang=de; expires=Thu, 18-May-2023 10:00:34 GMT; Max-Age=86400; path=/; secure’, 4 => ‘wmc_current_currency=CHF; expires=Thu, 18-May-2023 10:00:34 GMT; Max-Age=86400; path=/; secure’, 5 => ‘wmc_current_currency_old=CHF; expires=Thu, 18-May-2023 10:00:34 GMT; Max-Age=86400; path=/; sec
    [May 17 10:00:34] Starting cron with normal ajax at URL https://fendo.ch/wp-admin/admin-ajax.php?action=wordfence_doScan&isFork=0&scanMode=custom&cronKey=da1fe4ecd4c76b7719a405cd701fcaa7&signature=124d4cf3b3f64f1fa29a035f3fe4955e521b0b81bc42626c8504747fd81a6bff
    [May 17 10:00:35] Scan process ended after forking.
    [May 17 10:01:31] Attempting to resume scan stage (0 attempt(s) remaining)…
    [May 17 10:01:31] Entering start scan routine
    [May 17 10:01:31] Got value from wf config maxExecutionTime: 20
    [May 17 10:01:31] getMaxExecutionTime() returning config value: 20
    [May 17 10:01:32] Test result of scan start URL fetch: array ( ‘headers’ => WpOrg\Requests\Utility\CaseInsensitiveDictionary::__set_state(array( ‘data’ => array ( ‘date’ => ‘Wed, 17 May 2023 10:01:32 GMT’, ‘content-type’ => ‘text/html; charset=UTF-8’, ‘set-cookie’ => array ( 0 => ‘wmc_ip_info=eyJjb3VudHJ5IjoiREUiLCJjdXJyZW5jeV9jb2RlIjoiRVVSIn0%3D; expires=Thu, 18-May-2023 10:01:31 GMT; Max-Age=86400; path=/; secure’, 1 => ‘wmc_current_currency=EUR; expires=Thu, 18-May-2023 10:01:31 GMT; Max-Age=86400; path=/; secure’, 2 => ‘wmc_current_currency_old=EUR; expires=Thu, 18-May-2023 10:01:31 GMT; Max-Age=86400; path=/; secure’, 3 => ‘wmc_wpml_lang=de; expires=Thu, 18-May-2023 10:01:31 GMT; Max-Age=86400; path=/; secure’, 4 => ‘wmc_current_currency=CHF; expires=Thu, 18-May-2023 10:01:31 GMT; Max-Age=86400; path=/; secure’, 5 => ‘wmc_current_currency_old=CHF; expires=Thu, 18-May-2023 10:01:31 GMT; Max-Age=86400; path=/; sec
    [May 17 10:01:32] Starting cron with normal ajax at URL https://fendo.ch/wp-admin/admin-ajax.php?action=wordfence_doScan&isFork=0&scanMode=custom&cronKey=dbf731e02d56eb3692e559f3629dba78&signature=498c088646cfb8e014410eef11572bd0c3f4ceac70550832165c8eb2e0dd8997
    [May 17 10:01:32] Scan process ended after forking.
    [May 17 10:03:19] Scan stop request received.
    [May 17 10:04:26] Ajax request received to start scan.
    [May 17 10:04:26] Entering start scan routine
    [May 17 10:04:26] Got value from wf config maxExecutionTime: 20
    [May 17 10:04:26] getMaxExecutionTime() returning config value: 20
    [May 17 10:04:26] Test result of scan start URL fetch: array ( ‘headers’ => WpOrg\Requests\Utility\CaseInsensitiveDictionary::__set_state(array( ‘data’ => array ( ‘date’ => ‘Wed, 17 May 2023 10:04:26 GMT’, ‘content-type’ => ‘text/html; charset=UTF-8’, ‘set-cookie’ => array ( 0 => ‘wmc_ip_info=eyJjb3VudHJ5IjoiREUiLCJjdXJyZW5jeV9jb2RlIjoiRVVSIn0%3D; expires=Thu, 18-May-2023 10:04:26 GMT; Max-Age=86400; path=/; secure’, 1 => ‘wmc_current_currency=EUR; expires=Thu, 18-May-2023 10:04:26 GMT; Max-Age=86400; path=/; secure’, 2 => ‘wmc_current_currency_old=EUR; expires=Thu, 18-May-2023 10:04:26 GMT; Max-Age=86400; path=/; secure’, 3 => ‘wmc_wpml_lang=de; expires=Thu, 18-May-2023 10:04:26 GMT; Max-Age=86400; path=/; secure’, 4 => ‘wmc_current_currency=CHF; expires=Thu, 18-May-2023 10:04:26 GMT; Max-Age=86400; path=/; secure’, 5 => ‘wmc_current_currency_old=CHF; expires=Thu, 18-May-2023 10:04:26 GMT; Max-Age=86400; path=/; sec
    [May 17 10:04:26] Starting cron with normal ajax at URL https://fendo.ch/wp-admin/admin-ajax.php?action=wordfence_doScan&isFork=0&scanMode=custom&cronKey=f4d0170a16627ccb78a1da6ce943cc6e&signature=8418ba15dac31682e46a2789de32d69797eae583842bf00afd2379dd8e1aea33
    [May 17 10:04:27] Scan process ended after forking.

    Plugin Support wfjanet

    (@wfjanet)

    Hi @mahdar2003,

    Thank you for sending this over.

    I see the scan fails with a Scan process ended after forking error. Could you please try troubleshooting tips here:?
    https://www.wordfence.com/help/scan/troubleshooting/#scan-process-ended-after-forking

    If the tips above don’t work for you, 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.

    NOTE:?It should look as follows – Screenshot of?Tools > Diagnostic > Send by Email

    Thanks,
    Janet

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