• Resolved baldarch

    (@baldarch)


    Recently WordFence scans have been hanging.

    In Diagnostics, max_execution_time is 30

    I have set various options the time limit a scan can run, from 15 to 30 seconds without success.

    The log is for 25.

    The site has had no new plugins installed in the last 6 months.

    It’s also running on a LiteSpeed server.

    Could you please advise.

    [May 04 08:29:52:1493850592.141294:2:error] Scan terminated with error: The scan time limit of 25 seconds has been exceeded and the scan will be terminated. This limit can be customized on the options page. Get More Information
    [May 04 08:29:52:1493850592.141023:2:info] Wordfence used 10.43MB of memory for scan. Server peak memory usage was: 75.41MB
    [May 04 08:29:51:1493850591.137271:4:info] Calling Wordfence API v2.23:https://noc1.wordfence.com/v2.23/?v=4.7.4&s=http%3A%2F%2Fjsmith.com.au&k=c06e9029b5809a38f6091c180b79cdb5bc888947dea1a3b5f7f5ecc974b51e3b2dac9c62f9495d0843b620a9c5c6432acb4dac222de4d179479145bb10083cf2defb59738857dd5398eaf3e28add41ae&openssl=268439647&phpv=5.4.45&betaFeed=0&cacheType=disabled&action=record_scan_metrics
    [May 04 08:29:51:1493850591.016591:10:info] SUM_FINAL:Scan interrupted. You have 1 new issue to fix. See below.
    [May 04 08:29:51:1493850591.016353:1:info] Scan interrupted. Scanned 14930 files, 37 plugins, 2 themes, 4 pages, 0 comments and 58589 records in 26 seconds.
    [May 04 08:29:51:1493850591.016008:1:info] ——————-
    [May 04 08:29:50:1493850590.961821:4:info] Scanning: /home/jsmithco/public_html/wp-content/cache/autoptimize/js/autoptimize_046dae4b6ee4da2a8c9ea5eadc0940c2.js (Mem:75.0M)
    [May 04 08:29:50:1493850590.922786:4:info] Scanning: /home/jsmithco/public_html/wp-content/cache/autoptimize/js/autoptimize_046d57ae29ec44cc53a7e186c163f05b.js (Mem:75.0M)
    [May 04 08:29:50:1493850590.883808:4:info] Scanning: /home/jsmithco/public_html/wp-content/cache/autoptimize/js/autoptimize_04666ff9b48e2e074369ba2edb9efce5.js (Mem:75.0M)
    [May 04 08:29:50:1493850590.843976:4:info] Scanning: /home/jsmithco/public_html/wp-content/cache/autoptimize/js/autoptimize_0465359ee1e442b6f523a484ee604dec.js (Mem:75.0M)
    [May 04 08:29:50:1493850590.804101:4:info] Scanning: /home/jsmithco/public_html/wp-content/cache/autoptimize/js/autoptimize_0464366ba029129b86f6c05a95d5ea59.js (Mem:75.0M)
    [May 04 08:29:50:1493850590.764093:4:info] Scanning: /home/jsmithco/public_html/wp-content/cache/autoptimize/js/autoptimize_045352cca85d27a5bf8f61bd0cb8d24a.js (Mem:75.0M)
    [May 04 08:29:50:1493850590.724854:4:info] Scanning: /home/jsmithco/public_html/wp-content/cache/autoptimize/js/autoptimize_0452851149a57d95221d25618b71dd03.js (Mem:75.0M)
    [May 04 08:29:50:1493850590.685895:4:info] Scanning: /home/jsmithco/public_html/wp-content/cache/autoptimize/js/autoptimize_044d6670fa7a60ff76964810f1bfe9bd.js (Mem:75.0M)
    [May 04 08:29:50:1493850590.646056:4:info] Scanning: /home/jsmithco/public_html/wp-content/cache/autoptimize/js/autoptimize_0423c9c4f4d588fc45debf53efdbad6b.js (Mem:75.0M)
    [May 04 08:29:50:1493850590.606136:4:info] Scanning: /home/jsmithco/public_html/wp-content/cache/autoptimize/js/autoptimize_040a7fa01d7445eaacf4a688d6435100.js (Mem:75.0M)
    [May 04 08:29:50:1493850590.564644:4:info] Scanning: /home/jsmithco/public_html/wp-content/cache/autoptimize/js/autoptimize_03ecedf2207fed5aaae0c19ef277feef.js (Mem:75.0M)
    [May 04 08:29:50:1493850590.521390:4:info] Scanning: /home/jsmithco/public_html/wp-content/cache/autoptimize/js/autoptimize_03cd2b5d1c3f4527983f6470df706592.js (Mem:75.0M)
    [May 04 08:29:50:1493850590.481451:4:info] Scanning: /home/jsmithco/public_html/wp-content/cache/autoptimize/js/autoptimize_03bed391a8d30c825f28628f7b5f320f.js (Mem:75.0M)
    [May 04 08:29:50:1493850590.440528:4:info] Scanning: /home/jsmithco/public_html/wp-content/cache/autoptimize/js/autoptimize_03beb0e0375b2d72c7c97613164de191.js (Mem:75.0M)
    [May 04 08:29:50:1493850590.398108:4:info] Scanning: /home/jsmithco/public_html/wp-content/cache/autoptimize/js/autoptimize_03bcf82a5120511bd91314e567d5bfd4.js (Mem:75.0M)
    [May 04 08:29:50:1493850590.356579:4:info] Scanning: /home/jsmithco/public_html/wp-content/cache/autoptimize/js/autoptimize_03b8cbb06a0485857de542b918a733e9.js (Mem:75.0M)
    [May 04 08:29:50:1493850590.314952:4:info] Scanning: /home/jsmithco/public_html/wp-content/cache/autoptimize/js/autoptimize_03aec3368950b7f011f5885b63c2abe5.js (Mem:75.0M)
    [May 04 08:29:50:1493850590.274770:4:info] Scanning: /home/jsmithco/public_html/wp-content/cache/autoptimize/js/autoptimize_03ade9201596065f2114e724a31553b5.js (Mem:75.0M)
    [May 04 08:29:50:1493850590.235657:4:info] Scanning: /home/jsmithco/public_html/wp-content/cache/autoptimize/js/autoptimize_03a7f9f4765e2ddb2e95fd087ae2244c.js (Mem:75.0M)
    [May 04 08:29:50:1493850590.196052:4:info] Scanning: /home/jsmithco/public_html/wp-content/cache/autoptimize/js/autoptimize_03a764b2240890a5c8560ae2641301ce.js (Mem:75.0M)
    [May 04 08:29:50:1493850590.156899:4:info] Scanning: /home/jsmithco/public_html/wp-content/cache/autoptimize/js/autoptimize_03a6fe48952bdaae25c9744a2de601bd.js (Mem:75.0M)

Viewing 4 replies - 1 through 4 (of 4 total)
  • could be due to your Autoptimize cache getting too big @baldarch, consider disabling AO’s “also aggregate inline JS” and/ or “also aggregate inline CSS” to keep cache size under control and hence require less files to be scanned by wordfence?

    frank (ao dev)

    Thread Starter baldarch

    (@baldarch)

    Thanks Frank for the suggestion.

    I deactivated AO, but there seems to be something else causing the timing out.

    Latest log file shows this:

    [May 04 18:44:43:1493887483.069178:2:error] Scan terminated with error: The scan time limit of 25 seconds has been exceeded and the scan will be terminated. This limit can be customized on the options page. Get More Information
    [May 04 18:44:43:1493887483.068856:2:info] Wordfence used 10.39MB of memory for scan. Server peak memory usage was: 72.48MB
    [May 04 18:44:42:1493887482.143609:4:info] Calling Wordfence API v2.23:https://noc1.wordfence.com/v2.23/?v=4.7.4&s=http%3A%2F%2Fjsmith.com.au&k=c06e9029b5809a38f6091c180b79cdb5bc888947dea1a3b5f7f5ecc974b51e3b2dac9c62f9495d0843b620a9c5c6432acb4dac222de4d179479145bb10083cf2defb59738857dd5398eaf3e28add41ae&openssl=268439647&phpv=5.4.45&betaFeed=0&cacheType=disabled&action=record_scan_metrics
    [May 04 18:44:42:1493887482.035067:10:info] SUM_FINAL:Scan interrupted. You have 1 new issue to fix. See below.
    [May 04 18:44:42:1493887482.034763:1:info] Scan interrupted. Scanned 14930 files, 37 plugins, 2 themes, 4 pages, 0 comments and 70612 records in 26 seconds.
    [May 04 18:44:42:1493887482.034357:1:info] ——————-
    [May 04 18:44:41:1493887481.997095:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/fonts/ionicons.woff (Mem:72.0M)
    [May 04 18:44:41:1493887481.994741:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/wordfenceBox.css (Mem:72.0M)
    [May 04 18:44:41:1493887481.991652:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/wf-ionicons.css (Mem:72.0M)
    [May 04 18:44:41:1493887481.989083:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/wf-adminbar.css (Mem:72.0M)
    [May 04 18:44:41:1493887481.986629:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/select2.min.css (Mem:72.0M)
    [May 04 18:44:41:1493887481.984351:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/phpinfo.css (Mem:72.0M)
    [May 04 18:44:41:1493887481.983440:2:info] Analyzed 3900 files containing 50.76 MB of data so far
    [May 04 18:44:41:1493887481.980079:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/main.css (Mem:72.0M)
    [May 04 18:44:41:1493887481.977695:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/jquery-ui.theme.min.css (Mem:72.0M)
    [May 04 18:44:41:1493887481.975275:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/jquery-ui.structure.min.css (Mem:72.0M)
    [May 04 18:44:41:1493887481.972554:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/jquery-ui.min.css (Mem:72.0M)
    [May 04 18:44:41:1493887481.970314:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/jquery-ui-timepicker-addon.css (Mem:72.0M)
    [May 04 18:44:41:1493887481.967965:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/iptraf.css (Mem:72.0M)
    [May 04 18:44:41:1493887481.965594:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/images/ui-icons_fff_256x240.png (Mem:72.0M)
    [May 04 18:44:41:1493887481.963284:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/images/ui-icons_fbe569_256x240.png (Mem:72.0M)
    [May 04 18:44:41:1493887481.960831:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/images/ui-icons_cd0a0a_256x240.png (Mem:72.0M)
    [May 04 18:44:41:1493887481.958522:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/images/ui-icons_222222_256x240.png (Mem:72.0M)
    [May 04 18:44:41:1493887481.956306:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/images/ui-bg_highlight-soft_75_a5a5a5_1x100.png (Mem:72.0M)
    [May 04 18:44:41:1493887481.954040:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/images/ui-bg_glass_95_fef1ec_1x400.png (Mem:72.0M)
    [May 04 18:44:41:1493887481.951841:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/images/ui-bg_flat_75_ffffff_40x100.png (Mem:72.0M)
    [May 04 18:44:41:1493887481.949634:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/images/ui-bg_flat_100_222_40x100.png (Mem:72.0M)
    [May 04 18:44:41:1493887481.947464:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/images/ui-bg_flat_100_1997c7_40x100.png (Mem:72.0M)
    [May 04 18:44:41:1493887481.945307:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/images/ui-bg_flat_0_aaaaaa_40x100.png (Mem:72.0M)
    [May 04 18:44:41:1493887481.943136:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/fullLog.css (Mem:72.0M)
    [May 04 18:44:41:1493887481.940874:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/dt_table.css (Mem:72.0M)
    [May 04 18:44:41:1493887481.938639:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/diff.css (Mem:72.0M)
    [May 04 18:44:41:1493887481.936358:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/colorbox.css (Mem:72.0M)
    [May 04 18:44:41:1493887481.934115:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/wordfence/css/activity-report-widget.css (Mem:72.0M)
    [May 04 18:44:41:1493887481.931956:4:info] Scanning: /home/jsmithco/public_html/wp-content/plugins/updraftplus/vendor/symfony/event-dispatcher/phpunit.xml.dist (Me

    Thread Starter baldarch

    (@baldarch)

    Resolved by deactivating (with setting “Delete WordFence tables and data on deactivation”) and reactivating.

    Hi baldarch,
    It could be one of the “Scans to Include” options was enabled and causing this “max_execution_time” timeout, I suspect “Scan images, binary, and other files as if they were executable” option, when you deactivate the plugin with “Delete WordFence tables and data on deactivation” option checked, the database tables will be created again upon re-activation with the default settings, which seems to resolve this issue for you.

    Thanks.

    P.S. Thanks Frank for helping out in this thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordFence scans hanging’ is closed to new replies.