• Resolved syzygist

    (@syzygist)


    Our Wordfence scans are stalling or hanging, showing the banner message “Scan Failed – The current scan looks like it has failed…”

    Following the process @wfmargaret oulined for @adrian1592 in another recent post on this problem, I turned on debugging and started a new scan. The last 20 lines before the scan failed are below. I also sent a diagnostic report (actually I sent 2, as the forum moderator didn’t post my first request as it was a comment on @adrian1592’s post instead of a new post, so I had to do the whole thing again).

    [Mar 05 15:48:25:1741218505.553493:2:info] 14000 files indexed

    [Mar 05 15:48:25:1741218505.140989:2:info] 13500 files indexed

    [Mar 05 15:48:24:1741218504.997813:2:info] 13000 files indexed

    [Mar 05 15:48:24:1741218504.788038:2:info] 12500 files indexed

    [Mar 05 15:48:23:1741218503.981689:2:info] 12000 files indexed

    [Mar 05 15:48:23:1741218503.897208:2:info] 11500 files indexed

    [Mar 05 15:48:23:1741218503.741154:2:info] 11000 files indexed

    [Mar 05 15:48:23:1741218503.461808:2:info] 10500 files indexed

    [Mar 05 15:48:23:1741218503.230777:2:info] 10000 files indexed

    [Mar 05 15:48:22:1741218502.167133:2:info] 9500 files indexed

    [Mar 05 15:48:21:1741218501.891593:2:info] 9000 files indexed

    [Mar 05 15:48:21:1741218501.753836:2:info] 8500 files indexed

    [Mar 05 15:48:20:1741218500.732648:2:info] 8000 files indexed

    [Mar 05 15:48:19:1741218499.848714:2:info] 7500 files indexed

    [Mar 05 15:48:19:1741218499.787610:2:info] 7000 files indexed

    [Mar 05 15:48:19:1741218499.030044:2:info] 6500 files indexed

    [Mar 05 15:48:18:1741218498.894709:2:info] 6000 files indexed

    [Mar 05 15:48:18:1741218498.822037:2:info] 5500 files indexed

    [Mar 05 15:48:18:1741218498.654171:2:info] 5000 files indexed

    [Mar 05 15:48:18:1741218498.564680:2:info] 4500 files indexed

    Any suggestions?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support wfmargaret

    (@wfmargaret)

    Hi @syzygist,

    Thanks for starting a new topic and for sending over the diagnostics and scan log! You’re on a LiteSpeed web server, and LiteSpeed has been known to silently kill or stop processes that take more than a few seconds to run. Please add the noabort directive outlined here to your .htaccess: https://www.wordfence.com/help/advanced/system-requirements/litespeed/

    The first code may not help in some cases, depending on the server configuration. Alternative code blocks that may work are listed further down on the page.

    Let me know how it goes!

    Thanks,
    Margaret

    Thread Starter syzygist

    (@syzygist)

    Thanks for pointing me in the right direction. I’d never have considered this as the source of the problem, since all of the sites in question already had Wordfence no-abort instructions in their .htaccess files, but apparently either you or the hosts (this occurred on at least two different hosts) changed something recently, because this no longer works:

    # Wordfence WAF
    <IfModule LiteSpeed>
    php_value auto_prepend_file '/home/xxx/public_html/wordfence-waf.php'
    </IfModule>
    <IfModule lsapi_module>
    php_value auto_prepend_file '/home/xxx/public_html/wordfence-waf.php'
    </IfModule>
    <Files ".user.ini">
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
    </IfModule>
    </Files>

    # END Wordfence WAF

    I replaced it with this, which resolved the issue in every case:

    # BEGIN LiteSpeed noabort
    <IfModule rewrite_module>
    RewriteEngine On
    RewriteRule .* - [E=noabort:1]
    </IfModule>
    # END liteSpeed noabort

    But I have to wonder how many other sites now have scans not completing (or site admins pulling their hair out) due to this change. If it was on your end, maybe you should let people know they need to update .htaccess on older sites that may have this older code.

    Also, I wonder if you can explain the relationship (if any) between the .htaccess mods and the “Bypass the LiteSpeed “noabort” check” setting in the Wordfence options? Most (though not all) of these sites did have that option enabled, but obviously the host was checking anyway, or it wouldn’t matter what was in .htaccess, right? Or am I missing something? Both hosts have previously confirmed that the that the “External Application Abort” function is set to “No Abort,” though I haven’t re-checked that recently.

    Plugin Support wfmargaret

    (@wfmargaret)

    Hi @syzygist,

    Thanks for getting back to me and I’m glad to hear scans are working for you now! The .htaccess entries you sent include the firewall optimization and hiding the .user.ini file. I recommend double-checking that the firewall is still optimized if you’ve removed it from any of your sites.

    It’s possible your host no longer has “No Abort” set for the site. Wordfence itself doesn’t control whether noabort is enabled. Because of this, on LiteSpeed servers, Wordfence will attempt to check if it has been set in the .htaccess, and if this is not done, we normally disable automatic updates, to prevent LiteSpeed from interrupting an update.

    The option “Bypass the LiteSpeed “noabort” check” is for use in cases where you are certain this option is already set by the host and don’t need it to be checked. You can read more about this setting here: https://www.wordfence.com/help/dashboard/options/#bypass-noabort

    Thanks,
    Margaret

    Thread Starter syzygist

    (@syzygist)

    Ah, OK, the “Bypass the LiteSpeed “noabort” check” setting only pertains to whether or not it auto updates, and not to scans, is that right?

    And the entries I deleted ONLY pertained to .htaccess entries for firewall optimization and to hide the .user.ini file, and not to scans, is that also right? So the problem was not the presence of those entries, but the absence of the no-abort entries I added? Which is puzzling, as I manage many sites on one of the hosts, all of which were completing scans just fine until about two months ago, and this issue has only affected some of them. Even where there is a root domain site and a subdomain or add-on domain site, one has been affected and the other has not.

    You were right, I did need to re-optimize the firewalls. I compared the .htaccess backup before I did that with the file after optimization and see it put back exactly what I removed. I’ll check with the hosts and see if they changed the no-abort settings.

    Plugin Support wfmargaret

    (@wfmargaret)

    Hey @syzygist,

    Yep, that’s all correct! Let me know what you find out from your host, please!

    Thanks,
    Margaret

    Thread Starter syzygist

    (@syzygist)

    They said they have not changed anything (even sent me a screenshot of the settings). It’s a reputable host I’ve worked with for years, and this came straight from the owner. Puzzling.

    Plugin Support wfmargaret

    (@wfmargaret)

    Hi @syzygist,

    Thanks for checking. If no-abort was already set, adding it to the .htaccess shouldn’t have made any difference, but I’m glad to hear the scans are working at least. I’m going to resolve this topic, but if you notice any issues with your scans over the next few days, please feel free to follow up with me here!

    Thanks,
    Margaret

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Scan Failed – The current scan looks like it has failed’ is closed to new replies.