Subject: Re: cron task hangs RaQ1 - NetBSD 1.6.1
To: None <port-cobalt@netbsd.org>
From: cape canaveral <somniosus@gmail.com>
List: port-cobalt
Date: 06/29/2004 01:56:59
On Mon, 28 Jun 2004 07:11:38 -0700, cape canaveral <somniosus@gmail.com> wrote:
> 
> Hi,
> 
> The following cron task hangs my raq1:
> 
> # do daily/weekly/monthly maintenance
> 15      3       *       *       *       /bin/sh /etc/daily 2>&1 | tee
> /var/log/daily.out | sendmail -t
> 
> I thought it was a sendmail problem, but if I try and run just
> "/bin/sh /etc/daily 2>&1 | tee /var/log/daily.out" the machine still
> hangs.  Here is the output of that command:
> 
> To: root
> Subject:  daily output for Mon Jun 28 07:26:48 UTC 2004
> 
> Uptime:  7:26AM up 23 mins, 1 user, load averages: 1.12, 1.11, 0.88
> 
> Checking subsystem status:
> 
> disks:
> Filesystem  1K-blocks     Used     Avail Capacity iused   ifree
> %iused  Mounted on
> /dev/wd0a    73843144   204846  69946140     0%   11303 9228503     0%   /
> /dev/wd0f     2064766      728   1960798     0%     147  259435     0%   /var
> /dev/wd0g      496303        2    471485     0%       3  124411     0%   /tmp
> 
> Last dump(s) done (Dump '>' file systems):
> 
> network:
> Name  Mtu   Network       Address              Ipkts Ierrs    Opkts Oerrs Colls
> tlp0  1500  <Link>        00:10:e0:00:3e:7e      301     0      216     0     0
> tlp0  1500  192.168.1     192.168.1.15           301     0      216     0     0
> lo0   33220 <Link>                                 2     0        2     0     0
> lo0   33220 127           127.0.0.1                2     0        2     0     0
> 
> The system has been freshly installed using the 1.6.1 recovery CD.
> Has anyone run into this before?  I've already reinstalled the system
> and it's made no difference.
> 
> Aaron
> 

I've tracked down the cause; it's something in /etc/security which is
called from /etc/daily

When run by itself, it gives the following output, then the machine
simply appears to hang:

bash-2.05b# /bin/sh /etc/security
ci: /var/backups/work/device.current,v:991: unexpected end of file
ci aborted
co: /var/backups/work/device.current,v:991: unexpected end of file
co aborted
ci: /var/backups/work/device.current,v:991: unexpected end of file
ci aborted
co: /var/backups/work/device.current,v:991: unexpected end of file
co aborted

I'm still stumped, but at least I have some clues now... =]