Smart State Scans Failing with Error Too Many Open Files


I am looking some support on an issue that i am having in regards to smart state scans.
My smart state scans work for say 7 days but then they all fail and the only way to get them to work again is by restarting MIQ.

I receive the below error when they start failing.
Unable to mount filesystem. Reason:[Too many open files - /var/www/miq/vmdb/log/vim.log]

I have tried to increase ulimits but this has made no difference.

I am running MIQ vmware appliance - Version ivanchuk-1.20190911145513_9f959bd

Any help would be greatly appreciated.


This is a weird one I’ve not heard before. @jrafanie or @rpo Does this sound familiar to you?

Hmmm, I’ve never seen that. It seems like the worker isn’t closing some file(s), leaking FDs over time.

Any idea how I could resolve the leak?

I found a more detailed error if its any use.

ERROR – : Q-task_id([job_dispatcher]) MIQ(VmScan#process_abort) job aborting, Unable to mount filesystem. Reason:[Too many open files - /var/www/miq/vmdb/log/vim.log]

Does the process get killed when it gets “too many open files” ? If not, does lsof show what files/sockets it has open?