Page 1 of 3

Unable to start cxs Watch daemon

Posted: 06 Mar 2012, 23:24
by virtuali
I keep getting this error when trying to start the daemon.. I have tried all the fixes on the net and in here.. but I still cant get that value to change.. I am using centos5...

Unable to start cxs Watch daemon: /proc/sys/fs/inotify/max_user_watches is set too low [currently:8192]

I have tried changing the value via fs.inotify.max_user_watches = 65536 but I still get the above error...

Anybody have an idea how to fix this..?????

Re: Unable to start cxs Watch daemon

Posted: 07 Mar 2012, 14:39
by ciwguru
This can't be a coincidence, since I have the exact same problem

Unable to start cxs Watch daemon: /proc/sys/fs/inotify/max_user_watches is set too low [currently:8192]

How do I get the ConfigServer eXploit Scanner enabled since it will not start.

Re: Unable to start cxs Watch daemon

Posted: 08 Mar 2012, 08:36
by Sarah
The reason you are getting that error is that you are running cxs on a Virtuozzo VPS. You will have to get your VPS provider to increase the max_user_watches, it is not possible as the VPS user to do this. If they are not willing to increase that number for you, you will not be able to run cxs watch.

You can determine the approximate number that /proc/sys/fs/inotify/max_user_watches should be set to by running this command (all one line):

Code: Select all

find /home/ -type d | grep -v "/\." | grep -v /home/cpeasyapache | grep -v /home/cprestore | grep -v /home/backup| grep -v cpmove- | wc -l
Edit: You should add 50% to the number you get from the above command, to allow room for growth and the fact that the number obtained is only an approximation.

Re: Unable to start cxs Watch daemon

Posted: 08 Mar 2012, 08:49
by virtuali
what is the alternative if cxs watch cant be run..?? Is there another option..??

Re: Unable to start cxs Watch daemon

Posted: 08 Mar 2012, 09:52
by Sarah
You can use ftp and web script upload scanning as per the instructions, as well as manual and scheduled scans.

Regards,
Sarah

Re: Unable to start cxs Watch daemon

Posted: 09 Mar 2012, 04:10
by staff_tech
How to increase max_user_watches from main node?

Re: Unable to start cxs Watch daemon

Posted: 10 Mar 2012, 20:33
by virtuali
Hi Sarah,

I am trying to use the alternative method above... but I am hitting a snag... it seems my pureftp is not compiled with the CallUploadScript option...

Do you know how this would be done on Centos5 with pureftp??

Thank you..

Re: Unable to start cxs Watch daemon

Posted: 10 Mar 2012, 21:07
by Sarah
If it is a cPanel server, which is the only type of server currently supported for cxs, then pureftpd should already be compiled with the required options. If it's not a cPanel server, then I'm afraid we can't really help.

Re: Unable to start cxs Watch daemon

Posted: 10 Mar 2012, 21:12
by virtuali
It is a whm/cpanel server... on Centos 5.. The reason I think it isnt compliled with it is because as soon as I uncomment the uploadscript option in the config file the restart fails...

Re: Unable to start cxs Watch daemon

Posted: 10 Mar 2012, 21:28
by Sarah
What command are you using for the restart? It should be:

Code: Select all

/etc/init.d/pure-uploadscript restart