host: isc_socket_create: not enough free resources socket.c:2117: REQUIRE(maxfd <= (i

PRB

Verified User
Joined
Oct 18, 2008
Messages
155
host: isc_socket_create: not enough free resources socket.c:2117: REQUIRE(maxfd <= (i

Hello,

I used to have alot of these errors:
host: isc_socket_create: not enough free resources socket.c:2117: REQUIRE(maxfd <= (int)1024) failed.
host: isc_socket_create: not enough free resources

So I found this tutorial: http://www.directadmin.com/help/item.php?id=9

so I ran these commands:
HTML:
cd /usr/local/directadmin/data/templates
cp virtual_host*.conf custom
cd custom
perl -pi -e 's/Error/#Error/' virtual_host*.conf
perl -pi -e 's/CustomLog/#CustomLog/' virtual_host*.conf
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue

I no longer have those errors, but now the following problems occur:
1) Apache bandwidth isnt updated anymore, my users have had the same bandwidth for like 3-4 days now (thats how many days ago I ran above commands)
2) webalizer doesnt update any more

can someone help me please?
 
I might also add that I changed the loglevel to crit in httpd.conf. Is the problem because of that?

I suspect its because of the commands above. Should I undo something?

my etc/cron.d/directadmin_cron file:
* * * * * root /usr/local/directadmin/dataskq
2 0-23/6 * * * root echo 'action=vacation&value=all' >> /usr/local/directadmin/data/task.queue;
#5 5 * * 0 root /sbin/quotaoff -a; /sbin/quotacheck -augm; /sbin/quotaon -a;
10 0 * * * root echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue
20 4 1 * * root echo 'action=reset&value=all' >> /usr/local/directadmin/data/task.queue
0 4 * * * root echo 'action=check&value=license' >> /usr/local/directadmin/data/task.queue
0 * * * * root echo '/etc/init.d/ntpd stop; ntpdate pool.ntp.org; /etc/init.d/ntpd start;' >> /usr/local/directadmin/data/task.queue
15 * * * * root echo '/etc/init.d/ntpd stop; ntpdate pool.ntp.org; /etc/init.d/ntpd start;' >> /usr/local/directadmin/data/task.queue
30 * * * * root echo '/etc/init.d/ntpd stop; ntpdate pool.ntp.org; /etc/init.d/ntpd start;' >> /usr/local/directadmin/data/task.queue
45 * * * * root echo '/etc/init.d/ntpd stop; ntpdate pool.ntp.org; /etc/init.d/ntpd start;' >> /usr/local/directadmin/data/task.queue
 
Hello,

I used to have alot of these errors:
host: isc_socket_create: not enough free resources socket.c:2117: REQUIRE(maxfd <= (int)1024) failed.
host: isc_socket_create: not enough free resources

So I found this tutorial: http://www.directadmin.com/help/item.php?id=9

so I ran these commands:
HTML:
cd /usr/local/directadmin/data/templates
cp virtual_host*.conf custom
cd custom
perl -pi -e 's/Error/#Error/' virtual_host*.conf
perl -pi -e 's/CustomLog/#CustomLog/' virtual_host*.conf
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue

I no longer have those errors, but now the following problems occur:
1) Apache bandwidth isnt updated anymore, my users have had the same bandwidth for like 3-4 days now (thats how many days ago I ran above commands)
2) webalizer doesnt update any more

can someone help me please?

Well I'm going to guess that the way DA calculates data usage and webstats is through the customlog. Re-enabling it may be a good idea.
 
Back
Top