-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The scan creates many temp files and doesn't end #175
Comments
Hii @gianmarco-mameli, thanks for reporting. How big is the network you are scanning? Of course, the scan may take a while, if you scan a huge network. Alternatively, try using the parallel option to reduce the |
Ignore my suggestion with the parallel option. There will be a lot of tmp files created only when verifying the certificates. |
Hi @yhabteab, ok thank you, at the first time I supposed too that the problem was the dimension of the network, but the same problem is present scanning a simple /24 net. The other strange thing is that I've updated the module 10 days ago, and for 8 days nothing happen, all worked as expected. |
Have you changed anything within the 2 days? It sounds like something was changed on your network or in the job configs, but even then this shouldn't prevent the scan command to complete. I have made some improvements to how the certificate chains are validated in this PR, can you please test if that helps. And when the problem still occurs (if the scan command still hangs), please run the scan command in debug mode with the |
Hi @yhabteab, nope I haven't changed anything in the meantine, but I've tried your mod on the PR and the problem seems disappeared. |
What do your job configs look like? You might also have a very large network with extremely short schedule intervals. For example, if you have a job that takes over a minute to complete, but you're using the |
I've tested all my jobs before scheduling the scans, each job ends in about 1-2 minutes and my schedules are 10 minutes apart from each other |
Hi, sorry for my late feedback. Apparently all is ok with your PR, so I've reactivated the jobs and is running correctly Thank you |
Describe the bug
When a scan job is launched, automatically via cron job or manually, I noticed many file created on a subfolder inside /tmp, that contains files with prefix intermediateXXXXXXXX or certXXXXXXX.
The task doesn't not complete and I need to kill it to avoid filling the disk space.
To Reproduce
Expected behavior
The scan task ends with no problems from many temp files
Screenshots
Your Environment
icinga2 --version
): 2.13.5php --version
): 7.3.31The text was updated successfully, but these errors were encountered: