• Resolved stosun

    (@stosun)


    Hi,
    I use Wordfence at a small site, which has only 44 pages and 23 theme&plugins.
    I got below message;
    “Scan Failed
    The current scan looks like it has failed. Its last status update was 25 minutes ago. You may continue to wait in case it resumes or stop and restart the scan. Some sites may need adjustments to run scans reliably”.
    Site is hosted at shared hosting package with;
    max_execution_time = 300,
    max_input_time = 120,
    max_input_vars=20000,
    memory_limit = 512M.

    I set performance options as;
    Use low resource scanning (reduces server load by lengthening the scan duration) : Enabled
    Limit the number of issues sent in the scan results email : 1000
    Time limit that a scan can run in seconds : empty
    How much memory should Wordfence request when scanning : 256
    Maximum execution time for each scan stage: 15

    I use lastest versions for both WP and WordFence.

    Could you help me in order to use Wordfence , properly?
    Thanks at advance fro your support.
    Best Regards

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Support WFAdam

    (@wfadam)

    Hello @stosun and thanks for reaching out to us!

    Can you 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.

    Also, if you could do the following steps for me:

    • Go to the Wordfence > Tools > Diagnostics page
    • In the “Debugging Options” section check the circle “Enable debugging mode”
    • Click to “Save Changes”.
    • CANCEL any current scan and start a NEW scan
    • Copy the last 20 lines from the Log (click the “Show Log” link) or so of the activity log once the scan finishes and paste them in this post.

    This will help me see exactly what is happening when the scan fails.

    Let me know if you have any questions!

    Thanks again!

    Thread Starter stosun

    (@stosun)

    Hi WFAdam,
    Thanks for your help.
    I have sent diagnostic report to your email address.
    Here is last 20 lines from log;

    [Jun 07 22:58:49] Calling fork() from wordfenceHash with maxExecTime: 20
    [Jun 07 22:58:49] Entered fork()
    [Jun 07 22:58:49] Calling startScan(true)
    [Jun 07 22:58:49] Got value from wf config maxExecutionTime: 20
    [Jun 07 22:58:49] getMaxExecutionTime() returning config value: 20
    [Jun 07 22:58:50] Test result of scan start URL fetch: array ( 'headers' => Requests_Utility_CaseInsensitiveDictionary::__set_state(array( 'data' => array ( 'content-type' => 'text/html; charset=UTF-8', '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', 'x-frame-options' => 'SAMEORIGIN', 'referrer-policy' => 'strict-origin-when-cross-origin', 'content-length' => '16', 'content-encoding' => 'br', 'vary' => 'Accept-Encoding,User-Agent', 'date' => 'Mon, 07 Jun 2021 19:58:50 GMT', 'server' => 'LiteSpeed', ), )), 'body' => 'WFSCANTESTOK', 'response' => array ( 'code' => 200, 'message' => 'OK', ), 'cookies' => array ( ), 'filename' => NULL, 'http_response' => WP_HTTP_Requests_Response::__set_state(array( 'response' => Requests_Response::__set_state(array(
    [Jun 07 22:58:50] Starting cron with normal ajax at URL https://www.haliyikamatamir.com/wp-admin/admin-ajax.php?action=wordfence_doScan&isFork=1&scanMode=custom&cronKey=3cb0bcf29a8f0a34363e283b55fb2d21&signature=5cac61a429313c6e52b42fff650ecdbe910e3b4123d83da28f8a778dc2179d5e
    [Jun 07 22:58:51] Scan engine received request.
    [Jun 07 22:58:51] Verifying start request signature.
    [Jun 07 22:58:51] Fetching stored cronkey for comparison.
    [Jun 07 22:58:51] Checking cronkey: 3cb0bcf29a8f0a34363e283b55fb2d21 (expecting 3cb0bcf29a8f0a34363e283b55fb2d21)
    [Jun 07 22:58:51] Checking saved cronkey against cronkey param
    [Jun 07 22:58:51] Requesting max memory
    [Jun 07 22:58:51] Setting up error handling environment
    [Jun 07 22:58:51] Setting up scanRunning and starting scan
    [Jun 07 22:58:51] Scan process ended after forking.
    [Jun 07 22:58:51] Got a true deserialized value back from 'wfsd_engine' with type: object
    [Jun 07 22:59:01] Entered fork()
    [Jun 07 23:06:16] Calling Wordfence API v2.26:https://noc1.wordfence.com/v2.26/?k=a7bdc344de53ff3aedd34027ca5f8d7d5ed5a2aaa335c746e55f83f196352847805102a2e294bb972cfa67362d54fc276089d14b9908520a8e2a8a13d915dcb00e172d2691cf46781ab19c7574217d57&s=eyJ3cCI6IjUuNy4yIiwid2YiOiI3LjUuMyIsIm1zIjpmYWxzZSwiaCI6Imh0dHBzOlwvXC93d3cuaGFsaXlpa2FtYXRhbWlyLmNvbSIsInNzbHYiOjI2OTQ4ODI1NSwicHYiOiI3LjMuMjEiLCJwdCI6ImxpdGVzcGVlZCIsImN2IjoiNy43Mi4wIiwiY3MiOiJPcGVuU1NMXC8xLjEuMWciLCJzdiI6IkxpdGVTcGVlZCIsImR2IjoiMTAuMy4yNC1NYXJpYURCLWNsbC1sdmUiLCJsYW5nIjoidHJfVFIifQ&betaFeed=0&action=timestamp
    [Jun 07 23:06:44] Calling Wordfence API v2.26:https://noc1.wordfence.com/v2.26/?k=a7bdc344de53ff3aedd34027ca5f8d7d5ed5a2aaa335c746e55f83f196352847805102a2e294bb972cfa67362d54fc276089d14b9908520a8e2a8a13d915dc

    Thanks at advance for your valuable support.
    Best Regards

    Thread Starter stosun

    (@stosun)

    Hi @wfadam,
    Did you get my diagnostic report? Do you need more info?
    If you have studied it, do you have any inference for the solution?
    I wait your response about what I should do.
    Best Regards

    Plugin Support WFAdam

    (@wfadam)

    Thanks for sending that over!

    The diagnostic looks good! Everything is connecting properly in the settings.

    The scan results you shared looks like something is interrupting the scan right before the fork.

    Try to navigate to Wordfence > Tools > Diagnostics > Debugging and TOGGLE “Start All Scans Remotely” and run another scan. If you could post the results if it fails as you did before.

    Thanks again!

    Thread Starter stosun

    (@stosun)

    Hi WFAdam,
    Thank you very much for your support.
    I enabled “Start All Scans Remotely” as you wrote.
    But it also failed.
    I got these message;
    “Scan Failed
    The scan has failed to start. This is often because the site either cannot make outbound requests or is blocked from connecting to itself. Click here for steps you can try.”
    What do you advise to solve it?
    Best Regards

    Plugin Support WFAdam

    (@wfadam)

    Can you screenshot your Wordfence > Scan > Manage Scan > Performance section for me to review?

    Also, could you screenshot your Wordfence > Tools > Diagnostic > Debugging section as well.

    Thanks again!

    Thread Starter stosun

    (@stosun)

    Hi WFAdam,
    Here are links of screenshots you requested.
    https://easycaptures.com/fs/uploaded/1467/6791418148.png
    https://easycaptures.com/fs/uploaded/1467/2853510513.png

    Thanks at advance for your support.
    Best Regards

    Plugin Support WFAdam

    (@wfadam)

    Thanks for sharing that!

    In the first screenshot, can you adjust the following:
    Time limit that a scan can run in seconds from 3600 to 0.

    This will adjust the allotted scan time from 60 minutes to 3 hours.

    In the second screenshot, can you adjust the following:
    Enable Enable debugging mode (increases database load)
    Disable Start all scans remotely
    Enable Enable SSL Verification

    Then try to run another scan. Wait until it completes or fails. If it fails, copy the last 10 lines of the scan log on the Scan page for me.

    Thanks again!

    Thread Starter stosun

    (@stosun)

    Hi WFAdam,
    Thanks for your support.
    I did at settings what you advised.
    Unfortunately, it failed.
    Here is last lines from log.

    [Jun 21 23:26:15] Scanning: /home/ggehaliy/public_html/wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/Textract/Exception/TextractException.php (Mem:41.0M)
    [Jun 21 23:26:15] Scanning: /home/ggehaliy/public_html/wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/Textract/TextractClient.php (Mem:41.0M)
    [Jun 21 23:26:15] Scanning: /home/ggehaliy/public_html/wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/TimestreamQuery/Exception/TimestreamQueryException.php (Mem:41.0M)
    [Jun 21 23:26:15] Scanning: /home/ggehaliy/public_html/wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/TimestreamQuery/TimestreamQueryClient.php (Mem:41.0M)
    [Jun 21 23:26:15] Scanning: /home/ggehaliy/public_html/wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/TimestreamWrite/Exception/TimestreamWriteException.php (Mem:41.0M)
    [Jun 21 23:26:15] Scanning: /home/ggehaliy/public_html/wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/TimestreamWrite/TimestreamWriteClient.php (Mem:41.0M)
    [Jun 21 23:26:15] Scanning: /home/ggehaliy/public_html/wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/TraceMiddleware.php (Mem:41.0M)
    [Jun 21 23:26:16] Scanning: /home/ggehaliy/public_html/wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/TranscribeService/Exception/TranscribeServiceException.php (Mem:41.0M)
    [Jun 21 23:26:16] Scanning: /home/ggehaliy/public_html/wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/TranscribeService/TranscribeServiceClient.php (Mem:41.0M)
    [Jun 21 23:26:16] Scanning: /home/ggehaliy/public_html/wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/Transfer/Exception/TransferException.php (Mem:41.0M)
    [Jun 21 23:26:16] Scanning: /home/ggehaliy/public_html/wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/Transfer/TransferClient.php (Mem:41.0M)
    [Jun 21 23:26:16] Scanning: /home/ggehaliy/public_html/wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/Translate/Exception/TranslateException.php (Mem:41.0M)

    Best Regards

    Thread Starter stosun

    (@stosun)

    Hi WFAdam,
    I removed w3 total cache plugin and restart scan , but it failed.
    Here is last lines of log.

    [Jun 21 23:56:15] Scanning: /home/ggehaliy/public_html/wp-content/plugins/wordpress-seo/languages/yoast-components-ru_RU.json (Mem:43.0M)
    [Jun 21 23:56:15] Scanning: /home/ggehaliy/public_html/wp-content/plugins/wordpress-seo/languages/yoast-components-sk_SK.json (Mem:43.0M)
    [Jun 21 23:56:15] Scanning: /home/ggehaliy/public_html/wp-content/plugins/wordpress-seo/languages/yoast-components-sr_RS.json (Mem:43.0M)
    [Jun 21 23:56:15] Scanning: /home/ggehaliy/public_html/wp-content/plugins/wordpress-seo/languages/yoast-components-sv_SE.json (Mem:43.0M)
    [Jun 21 23:56:15] Scanning: /home/ggehaliy/public_html/wp-content/plugins/wordpress-seo/languages/yoast-components-tr_TR.json (Mem:43.0M)
    [Jun 21 23:56:15] Scanning: /home/ggehaliy/public_html/wp-content/plugins/wordpress-seo/languages/yoast-components-uk.json (Mem:43.0M)
    [Jun 21 23:56:15] Scanning: /home/ggehaliy/public_html/wp-content/plugins/wordpress-seo/languages/yoast-components-vi.json (Mem:43.0M)
    [Jun 21 23:56:15] Scanning: /home/ggehaliy/public_html/wp-content/plugins/wordpress-seo/languages/yoast-components-zh_CN.json (Mem:43.0M)
    [Jun 21 23:56:15] Scanning: /home/ggehaliy/public_html/wp-content/plugins/wordpress-seo/languages/yoast-components-zh_TW.json (Mem:43.0M)
    [Jun 21 23:56:15] Scanning: /home/ggehaliy/public_html/wp-content/plugins/wordpress-seo/languages/yoast-components.php (Mem:43.0M)
    [Jun 21 23:56:15] Scanning: /home/ggehaliy/public_html/wp-content/plugins/wordpress-seo/languages/yoast-seo-js.json (Mem:43.0M)
    [Jun 21 23:56:15] Scanning: /home/ggehaliy/public_html/wp-content/plugins/wordpress-seo/languages/yoast-seo-js.php (Mem:43.0M)
    [Jun 21 23:56:15] Scanning: /home/ggehaliy/public_html/wp-content/plugins/wordpress-seo/lib/abstract-main.php (Mem:43.0M)
    [Jun 21 23:56:15] Scanning: /home/ggehaliy/public_html/wp-content/plugins/wordpress-seo/lib/dependency-injection/container-registry.php (Mem:43.0M)
    [Jun 21 23:56:15] Scanning: /home/ggehaliy/public_html/wp-content/plugins/wordpress-seo/lib/migrations/adapter.php (Mem:43.0M)
    [Jun 21 23:56:15] Scanning: /home/ggehaliy/public_html/wp-content/plugins/wordpress-seo/lib/migrations/column.php (Mem:43.0M)
    [Jun 21 23:56:16] Calling fork() from wordfenceHash with maxExecTime: 15
    [Jun 21 23:56:16] Entered fork()
    [Jun 21 23:56:16] Calling startScan(true)
    [Jun 21 23:56:16] Got value from wf config maxExecutionTime: 15
    [Jun 21 23:56:16] getMaxExecutionTime() returning config value: 15

    Best Regards

    Plugin Support WFAdam

    (@wfadam)

    Is that the end of the scan? It looks like it’s still running in that log.

    Also, just as a test, it looks like you have your time limit set to 60 minutes (3600 seconds). Set that setting to “0” which will default to 3 hours, then see if this goes through.

    Thanks again!

    Thread Starter stosun

    (@stosun)

    Hi,

    “Time limit that a scan can run in seconds” is 0.
    But it still failed.
    Regards

    Plugin Support WFAdam

    (@wfadam)

    Can you email wftest @ wordfence . com with subject “stosun for WFADAM”? I would like to look at this issue.

    Talk to you there!

    Thanks again!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Scan Failed without any feedback’ is closed to new replies.