Dataskq problems...

tdldp

Verified User
Joined
May 9, 2005
Messages
150
Hi

I've updated since 02/09 my version of DA from 1.24.2 to 1.24.4 and from there on i get in DirectAdmin task queue logs constantly :

2005:09:02-04:16:01: DaTaskQ is already running. Delete the file /var/run/dataskq.pid to reset
2005:09:03-04:17:01: DaTaskQ is already running. Delete the file /var/run/dataskq.pid to reset
2005:09:04-04:16:01: DaTaskQ is already running. Delete the file /var/run/dataskq.pid to reset
2005:09:05-04:17:01: DaTaskQ is already running. Delete the file /var/run/dataskq.pid to reset
2005:09:06-04:17:01: DaTaskQ is already running. Delete the file /var/run/dataskq.pid to reset
2005:09:07-04:17:01: DaTaskQ is already running. Delete the file /var/run/dataskq.pid to reset
2005:09:08-04:16:01: DaTaskQ is already running. Delete the file /var/run/dataskq.pid to reset
2005:09:09-04:17:01: DaTaskQ is already running. Delete the file /var/run/dataskq.pid to reset
2005:09:10-04:16:01: DaTaskQ is already running. Delete the file /var/run/dataskq.pid to reset
2005:09:11-04:16:01: DaTaskQ is already running. Delete the file /var/run/dataskq.pid to reset
2005:09:12-04:16:01: DaTaskQ is already running. Delete the file /var/run/dataskq.pid to reset
2005:09:13-04:17:01: DaTaskQ is already running. Delete the file /var/run/dataskq.pid to reset
2005:09:14-04:16:01: DaTaskQ is already running. Delete the file /var/run/dataskq.pid to reset

I also at that exact time get average loads that tweak up and hit limits thus having nagios going bezerks and messaging me...

2 questions (i'm newbie but willing to learn and understand) :

How do i solve this problem ??? Why can't i find this file in the required directory ??? Do i have to take any special precaution due to the fact it's a DA thing ?? My main thought is that this could be a bug of DA due to the fact the pid file is erased once dataskq has been executed, so a script is not working normally as it is blocked by an already working task.... But there again i'm a newbie, and will not take position not knowing.

What does dataskq do exactly ??? Could it explain high load noted at the same hour on mrtg and nagios logs ???

Thks for your answers...

Tdldp
 
DA runs internally in a client-server configuration.
When you run DA from the command line many functions act as a client, creating a request. The requests are entered into the datasq queue, which is a fifo queue (first in, first out).

The datasq process reads the queue and runs everything in it.

Jeff
 
thks jeff for explaining my second part of questions...

Just a thing though ... why do i have those pid errors ???
Are several requests sent in same time giving those log errors ???


Thks again...

tdldp
 
It appears that something is attempting to bring up the program, but it's already running but something is trying to restart it.

Did you delete the file as it says?

Jeff
 
Problem

Hi well in fact in that directory, there is no dataskq.pid file in it...

I suppose that finishing the DA queue, the pid gets flushed, but it is when processing the queue at 4 o'clock that the problem appears...

My problem is where can i know what is asked to da to run in queue ???
Is it a cron job ?? is it a process that disfunctions ???

In any case, it is a recent problem that appeared after upgrading DA to 1.24.4

The only additions i made to original DA is :
SIM,
Mrtg,
Nagios,
php 4.4.0 (upgraded)
exim 4.52
mailblocker,
clamav 0,82
spamassassin.

i have the following cron jobs working :
Da Cron
* * * * * root /usr/local/directadmin/dataskq
2 0-23/6 * * * root echo 'action=vacation&value=all' >> /usr/local/directadmin/data/task.queue;
5 * * * * root /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -awstatsprog=/usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats.pl 1>/dev/null 2>&1
#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

Crontab :
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=admin
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
*/5 * * * * root /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/core/mrtg.cfg

*/5 * * * * root /usr/local/sim/sim -q >> /dev/null 2>&1

Thks for help ;)

Tdldp
 
Hello,

The dataksq is called every minute by the cron program. When the dataskq runs, it creates the pid file until it's done. The dataskq can often take a long time to run, so the pid file exists for a long time as well. The cron program continue to run the dataskq every minute. The dataskq will check to make sure that file doesn't exist before it runs, if it's there, it won't start up, and will leave the message.

It's not really an error, it's just saying that the dataskq is currently active.

John
 
Thks for answer

John thks for your answer, but couldn't it be made less verbose in log files ???

If this is not a bug, which i understand, it shouldn't create those errors in log files ...

Could this be checked for next versions ??? or is there a solution meanwhile
 
Back
Top