dataskq not running task.queue

Manie

Verified User
Joined
Jul 18, 2006
Messages
121
Location
Utrecht / Netherlands
Hi all,

Yesterday I ran ./build update_versions by accident in my custombuild.
( Just wanted to download latest versions. )

I think something broke during that process,
because this night my backups did not run on this server.

I noticed the following:

Two files:
Code:
/usr/local/directadmin/data/task.queue
/usr/local/directadmin/data/task.queue.da

I read all the information I could find in the forum and the Knowledge base:

Cronjobs are running dataskq:
Code:
server1:/usr/local/directadmin/data# tail /var/log/syslog
Dec 28 11:49:01 server1 /USR/SBIN/CRON[26278]: (root) CMD (/usr/local/directadmin/dataskq)
Dec 28 11:50:01 server1 /USR/SBIN/CRON[26283]: (root) CMD (/usr/local/directadmin/dataskq)
Dec 28 11:51:01 server1 /USR/SBIN/CRON[26286]: (root) CMD (/usr/local/directadmin/dataskq)

I deleted the task files and created a manual backup:
Code:
server1:/usr/local/directadmin/data# tail task.queue
action=backup&local%5Fpath=%2Fhome%2Fadmin%2Fadmin%5Fbackups&owner=admin&type=admin&value=multiple&when=now&where=local&who=all

Still nothing happening, so I run dataskq manually:
Code:
server1:/usr/local/directadmin/data# /usr/local/directadmin/dataskq d
In debug mode
Debug set to level 10
root priv set: uid:0 gid:0 euid:0 egid:0
pidfile written
staring queue
done queue

The result :-(

Code:
server1:/usr/local/directadmin/data# ls
admin  sessions  skins  task.queue  templates  tickets  users

server1:/usr/local/directadmin/data# tail task.queue
action=backup&local%5Fpath=%2Fhome%2Fadmin%2Fadmin%5Fbackups&owner=admin&type=admin&value=multiple&when=now&where=local&who=all

Can anyone help me out here, how should I proceed fixing this issue?
 
And what is in your logs

/var/log/directadmin/error.log
/var/log/directadmin/errortaskq.log

?

Latest log in error.log:

Code:
2010:12:27-14:35:41: Error while sending ./data/skins/enhanced/images/header.gif

( Noting added since yesterday )

tail errortaskq.log
is empty

Code:
server1:/var/log/directadmin# tail errortaskq.log.1
2010:12:20-11:19:43: service directadmin wasn't running, starting it
2010:12:20-12:00:01: service proftpd wasn't running, starting it
 
Hello,

Yesterday I found a bug in the custombuild build script that would add:
pureftp=0

to the start of each line in the /usr/local/directadmin/conf/directadmin.conf.

I fixed the build script fairly quickly after discovering it, but check your directadmin.conf to see if you were affected. If you are.. and each line in your directadmin.conf starts with pureftd=0, then type:
Code:
cd /usr/local/directadmin/conf
cp directadmin.conf directadmin.conf.backup
perl -pi -e 's/pureftp=0//' directadmin.conf
The issue is triggered if "./build proftpd" was run when "pureftpd=0" exists in the directadmin.conf (note the d at the end of the pureftpd). The bug had to do with "grep pureftp" instead of "grep pureftp=" .. thus pureftpd ended up in the grep incorrectly.

Be sure to do a "./build update" to get the newest version of the build script.
To check if you have it, the "setVal()" function will have this line:
Code:
COUNT=`grep -c ${1}= ${3}`
and not this line:
Code:
COUNT=`grep -c $1 $3`
John
 
Back
Top