Please check your mailbox, as the support replied to you earlier today (Ticket #2504).
Thank’s for the reply but I do not have received reply by email.
Your log show PHP notices, not errors, hence this is unlikely the problem because PHP will write the notice to the log but will keep running as usual and will not throw a 503 error.
If you cannot find any error in the PHP error log, try to check your HTTP server error log instead and paste here all 503 lines so that I can see what requests it was.
Also, do you have any security on your server that could block HTTP requests sent by NinjaScanner and return a 503 code (rate limit etc)?
Nothing on the HTTP server error log and I have deactivated the ModSecurity.
My website works fine without Ninjascanner and has many 503 errors with it so it is impossible for me to use it!
-Do you have the 503 error when the scanner is running, or even when it’s not running?
-Are you using a reverse proxy, cache or CDN? We need to find which application throw the 503 error.
I have deactivated all the plugins and install again WordPress 5.7
Then I have activated Ninjascanner (only this extension) and started a scan.
The scan starts then it stops on the files list creation. No debug.log php information.
The information of Ninjascanner are :
`24-Mar-21 11:13:51 INFO Traitement de l’étape 1/14
24-Mar-21 11:13:51 INFO Vérification de l’intégrité des fichiers de NinjaScanner
24-Mar-21 11:13:51 DEBUG Utilisation de la version locale (cache) des sommes de contrôle
24-Mar-21 11:13:51 INFO L’intégrité des fichiers est OK
24-Mar-21 11:13:51 DEBUG Processus exécuté en 0.1 secondes et a utilisé 217,80 Mo de mémoire (mémoire additionnelle pour NinjaScanner : 0,00 Mo).
24-Mar-21 11:15:39 INFO Traitement de l’étape 2/14
24-Mar-21 11:15:39 INFO Création de la liste des fichiers
24-Mar-21 11:15:52 INFO Nombre total de fichiers trouvés : 211 363
24-Mar-21 11:15:52 INFO Création du hachage pour les articles et pages de la DB
24-Mar-21 11:15:52 INFO 4 articles et 105 pages trouvé dans la base de données
24-Mar-21 11:15:52 DEBUG Processus exécuté en 13.1 secondes et a utilisé 217,80 Mo de mémoire (mémoire additionnelle pour NinjaScanner : 0,00 Mo).`
And I have the error “Le serveur HTTP a retourné le code d’erreur suivant : 200 SyntaxError: Unexpected token < in JSON at position 0.”
It really looks like there’s an application on your server that blocked the scanner.
Between those two lines, there’s 1 minute 48s, and that’s not normal:
24-Mar-21 11:13:51 DEBUG Processus exécuté en 0.1 secondes et a utilisé 217,80 Mo de mémoire (mémoire additionnelle pour NinjaScanner : 0,00 Mo).
24-Mar-21 11:15:39 INFO Traitement de l’étape 2/14
And then it stopped (or was blocked) without error in the log after step 2.
Do you have a reverse proxy, cache or CDN? Or another security application or security rules are the HTTP server level?
-
This reply was modified 1 year, 12 months ago by
nintechnet.
Hello,
Yesterday, have activated again the NinjaScanner and launched a scan then I had to go out of home.
When I came back, I did not have access to my website by http(s) but also by ftp and to my mails servers.
I have informed my hosting support. My public IP had been blacklisted by the ddos protection.
They have replied to me
Several thousand requests have been made in a very short period of time from your IP.
I do not know what is the exact problem, but I cannot use NinjaScanner anymore!
Olivier
That’s what I thought: your host has a security protection that is very unusual and annoying. They killed the scanner’s process for whatever reason, and your browser kept trying to connect to the site many times because it didn’t receive a response from the scanner over AJAX. And then, they blocked your IP 🙁
You can contact the support if you want to cancel/refund your license or use it on another site.
Ok, I understand, but I think NinjaScanner is a good plugin.
Is it possible to reduce the flow of connections / requests ?
You can lower the connection requests sent by your browsers via AJAX to your site.By default, it sends 1 request every 1.5 second.
Open your wp-config.php and add those lines:
// NinjaScanner AJAX interval (milliseconds):
if (! defined( 'NSCAN_MILLISECONDS' ) ) {
define( 'NSCAN_MILLISECONDS', 3000 ); // 3 seconds
}
This will change it to 1 request every 3 seconds (3000 milliseconds). You can change this value to whatever you want but make sure to not increase it too much. I wouldn’t personally increase it more than 5 seconds.
Note that this applies to manual scans only. Scheduled scans don’t send those AJAX requests as they are only use to update the status of the page while you are logged in.
-
This reply was modified 1 year, 12 months ago by
nintechnet.
Ok, thanks I understand but is it possible to control the flow of the plugin’s requests ?
The plugin will send around 14 requests during the whole scan, that’s not a lot. You cannot control that, but you can change the fork method: NinjaScanner > Settings > Advanced Users Settings > Scanning process” and choose WP CRON for instance.
I have tried, but it does not work.
A fatal error 500 occurs on each scan start.