jmstacey said:
Giving us more information will help troubleshoot your problem
Unfortunately, there is nowhere to get more information cos there is no error message in DA logs, etc.
Reset executed from crontab - but BW just not resetted.
This thing happens _every_ month with one of our servers.
But today 1.04.2005 - bandwith not resetted on 3 of 6 our servers.
WTF ?! Why I shoud run reset command manually every month?
1st server (RH9.0):
from /var/log/cron:
Code:
...
Apr 1 03:10:00 alpha CROND[17340]: (root) CMD (echo 'action=tally&value=all' >>
/usr/local/directadmin/data/task.queue)
...
Apr 1 04:20:01 alpha CROND[23629]: (root) CMD (echo 'action=reset&value=all' >>
/usr/local/directadmin/data/task.queue)
...
from /var/log/directadmin/system.log:
Code:
...
2005:04:01-03:10:01: Tally All Begin
...
2005:04:01-03:38:31: Tally All Complete
2005:04:01-03:39:14: httpd restarted
2005:04:01-08:56:44: httpd restarted
...
There is no entries in /var/log/directadmin/error.log or /log/directadmin/errortaskq.log after 03:39 at all.
2nd server (FreeBSD 4.10):
from /var/log/cron:
Code:
...
Apr 1 00:30:00 gamma /usr/sbin/cron[44191]: (root) CMD (echo 'action=tally&valu
e=all' >> /usr/local/directadmin/data/task.queue)
...
Apr 1 01:40:00 gamma /usr/sbin/cron[52596]: (root) CMD (echo 'action=reset&valu
e=all' >> /usr/local/directadmin/data/task.queue)
...
from /var/log/directadmin/system.log:
Code:
2005:04:01-00:30:01: Tally All Begin
...
2005:04:01-00:43:07: Tally All Complete
2005:04:01-00:44:02: httpd restarted
2005:04:01-08:54:20: httpd restarted
...
Also no entries in /var/log/directadmin/error.log or /log/directadmin/errortaskq.log with time close to reset start.
3rd server (FreeBSD 4.10):
from /var/log/cron
Code:
...
Apr 1 00:30:00 delta /usr/sbin/cron[13951]: (root) CMD (echo 'action=tally&valu
e=all' >> /usr/local/directadmin/data/task.queue)
...
Apr 1 01:40:00 delta /usr/sbin/cron[20567]: (root) CMD (echo 'action=reset&valu
e=all' >> /usr/local/directadmin/data/task.queue)
...
whole /var/log/directadmin/system.log:
Code:
2005:04:01-08:08:02: named reloaded
2005:04:01-10:09:00: httpd reloaded
2005:04:01-11:04:05: httpd restarted
2005:04:01-11:04:07: named reloaded
2005:04:01-11:11:01: httpd reloaded
2005:04:01-11:11:01: named reloaded
2005:04:01-11:35:00: httpd reloaded
2005:04:01-11:35:03: named reloaded
2005:04:01-11:36:00: httpd reloaded
2005:04:01-11:36:00: named reloaded
(Funny. It seems tally also "skipped" this night. Yep, in Webalizer stats - "Generated 30-Mar-2005 00:34 MSD")
whole /var/log/directadmin/errortaskq.log:
Code:
2005:04:01-05:00:00: Unable to find cron id 1 in ./data/admin/backup_crons.list
2005:04:01-05:00:00: type=Unable to find that cron ID is an unknown type for the
backup action
whole /var/log/directadmin/error.log:
Code:
2005:04:01-03:01:28: The username hasn't been set. Won't run the script without
dropping privileges
2005:04:01-11:33:38: Socket write error: fd is connected to a pipe or socket who
se reading end is closed. When this happens the writing process will also rece
ive a SIG_PIPE signal. (Thus, the write return value is seen only if the progr
am catches, blocks or ignores this signal.)
2005:04:01-11:33:38: Error while sending ./data/skins/enhanced/images/nav-bg.gif
2005:04:01-11:33:40: bad sock
2005:04:01-11:33:45: bad sock
2005:04:01-11:33:46: bad sock
Can you reset the bandwidth by initiating the proper command from the command line?
Code:
echo "action=reset&value=all" >> /usr/local/directadmin/data/task.queue
Yes. But I though it's DA function to do that every month, isn't it?