Title: Scan Stage Failed
Last modified: November 28, 2023

---

# Scan Stage Failed

 *  Resolved [ReallyDeeJ](https://wordpress.org/support/users/reallydeej/)
 * (@reallydeej)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/scan-stage-failed-17/)
 * We keep getting ‘Scan Stage Failed’ when trying to run a scan on our site. We
   get up to File Changes / Malware Scan / Content Safety & then it just fails. 
   Ultimately resulting in ‘Scan failed’ after 2 attempts.
   Logs say:[Nov 28 19:23:
   01:1701159781.680020:2:info] Attempting to resume scan stage (0 attempt(s) remaining)…[
   Nov 28 19:21:47:1701159707.663533:2:info] Attempting to resume scan stage (1 
   attempt(s) remaining)…[Nov 28 19:20:39:1701159639.868594:2:info] Analyzed 31900
   files containing 941.91 MB of data so farNo useful error message, nothing in 
   the webserver error logs, no indication of what’s the cause.Any help would be
   greatly appreciated.

Viewing 1 replies (of 1 total)

 *  Plugin Support [wfmark](https://wordpress.org/support/users/wfmark/)
 * (@wfmark)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/scan-stage-failed-17/#post-17236904)
 * Hi [@reallydeej](https://wordpress.org/support/users/reallydeej/), Thank you 
   for reaching out.
   To troubleshoot the scans please follow these steps:
    - 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](https://www.wordfence.com/wp-content/uploads/2021/09/maxexescanperformance.png).
 * Additionally, please send a diagnostic report to **wftest @ wordfence.com**. 
   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._
 * Thanks,
 * Mark

Viewing 1 replies (of 1 total)

The topic ‘Scan Stage Failed’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [wfmark](https://wordpress.org/support/users/wfmark/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/scan-stage-failed-17/#post-17236904)
 * Status: resolved