• Resolved frauinga

    (@frauinga)


    Hi,

    every time, when I try to start the scanning process, I get this message:

    “Cannot find the snapshot file, scan report cannot be created.”

    Then the scanning stops. Clicking again on the Scan button the scanning starts.

    Because of this I’ve read the troubleshooting file and your comments. I’ve tried the following possibilities:
    – Settings/Advanced Settings/Nerd Settings -> Clear Snapshot an scan report
    – Settings/Advanced Settings – Incremnteal scan: enable “Attempt to force-restart the scan using an alternate method.”
    – Delete the folder wp-content/ninjascanner/nscan xxxx/cache
    – File size from 1024 to 512
    – delete ninja scanner complete and install it again.

    The warning because of the missing snapshot file remains. I don’t wonder about, because I never had a file with this name

    As if this wasn’t enough, the scan hangs on at Step 9.

    How is the solution / Is there any solution?

    Thank you and best regards
    Inga

    • This topic was modified 4 years, 8 months ago by frauinga.

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author nintechnet

    (@nintechnet)

    The “Cannot find the snapshot file” error looks like you’re having a connection issue, i.e., timeout, when connecting back to your site (the scanner keeps connecting to your site using the AJAX API). That’s probably why the second click works: it gets the first click response.

    It the scanner hangs, it is likely a memory issue as indicated in the NinjaScanner Troubleshooting post (scroll down to the “The scanning process does not terminate” section to see how to increase the memory limit).

    Thread Starter frauinga

    (@frauinga)

    Hi,

    as I wrote I’ve tried already the solutions from the Troubleshooting post. Nothing helped. That why I aks here.

    I just tried this one more time:
    Incremental scan: enable “Attempt to force-restart the scan using an alternate method.”

    The scan runs and breaks at step 9.

    This is the notice in the log-file
    “17-Jul-20 08:18:35 DEBUG NSCAN_MAX_EXEC_TIME reached; exiting process and attempting to restart”

    I cant’ find the word SIGKILL in the log file.

    Thanks und best regards,
    Inga

    Addendum
    This is the allocated memory:
    “17-Jul-20 08:47:56 DEBUG Process used 61.883.128 bytes out of 65.011.712 bytes of allocated memory.” (It looks similar with every step)

    Display in the front end: “memory_limit is set to 256M”

    • This reply was modified 4 years, 8 months ago by frauinga.
    • This reply was modified 4 years, 8 months ago by frauinga.
    • This reply was modified 4 years, 8 months ago by frauinga.
    Plugin Author nintechnet

    (@nintechnet)

    If there’s no error in your PHP error log, I recommend to uncheck the “Attempt to force-restart the scan using an alternate method” option.

    The memory looks fine. Maybe a PHP execution timeout. What is your PHP maximum execution time value?

    Is this your own server or a shared host?

    Hi, I also have this error on 3 diffrent hosts (shared), I also check-up all the above options, switched forks, deleted cache and so on. This error is also coming back here and here in support forums for several years now. As I see here we are advanced users, so do not blame us we have something bad set – we do not. Can you, developers, investigate this more deeply? Or maybe you can change the way /the code the snapshot is created? Maybe it’s time to refactor this code? Your plugin is great, we like it, but this error is really, really annoying, and we (you and us) are wasting time to find the solution. The solution is obvious – just fix it, please.

    Plugin Author nintechnet

    (@nintechnet)

    This is a generic message, which means the scanner crashed or was killed by PHP (or another process), or the AJAX requests timed out, hence it couldn’t save the scan results to that file called ‘snapshot’.
    There could be a lot of reasons that lead to this error, but I need to have more details: do you have any log (PHP, HTTP) showing errors or anything that can show us why it failed?

    Jaso

    (@subwebsites)

    Plugin Author nintechnet

    (@nintechnet)

    @subwebsites : Can you try to change the fork method in the “NinjaScanner > Advanced Users Settings > Scanning process” option?

    Jaso

    (@subwebsites)

    I changed, but then this happens: https://prnt.sc/ugtpnt

    Plugin Author nintechnet

    (@nintechnet)

    You have something wrong in your installation. Is the WP-Cron system working as expected on the blog?

    Plugin Author nintechnet

    (@nintechnet)

    @subwebsites : Try to update NinjaScanner to the latest version released today (2.0.9), then switch back to “Scanning process > Fork process using WordPress built-in Ajax Process Execution” and check if it works. The new version fixed a JS bug that could result in the same problem as yours when the site is a bit slow to respond to AJAX queries.

    Jaso

    (@subwebsites)

    nope, still doesnt work, on any of my 13 sites: https://prnt.sc/uncf8p

    Plugin Author nintechnet

    (@nintechnet)

    The error message is different.
    Clear the cache and all files: “NinjaScanner > Settings > Advanced Users Settings > Nerds Settings > Run the garbage collector”, check “Clear snapshot and scan report” and then click “Run Now”.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Cannot find the snapshot file + Scan hangs on’ is closed to new replies.