[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Rebuilding cf_lastseen.db
From: |
Chip Seraphine |
Subject: |
Rebuilding cf_lastseen.db |
Date: |
Wed, 03 Nov 2004 16:24:33 -0600 |
User-agent: |
Mozilla Thunderbird 0.8 (X11/20040916) |
So I rebuilt my cfengine with BerkeleyDB 3.3 as I have had constant hung
agents of late and there was a suggestion on the thread that it helps.
(That, and gdb shows that my stuck agents are generally lost somewhere
in db-4.2 land.)
The problem is that this makes my cf_lastseen.db file no longer readable:
cfengine:: Directory /var/cfengine/inputs had permission 700, changed it
to 750
/var/cfengine/cf_lastseen.db
cfengine:: Couldn't open last-seen database /var/cfengine/cf_lastseen.db
Segmentation Fault (core dumped)
If I delete it, it is still quite unhappy:
cfengine:: Directory /var/cfengine/inputs had permission 700, changed it
to 750
/var/cfengine/cf_lastseen.db
cfengine:: Couldn't open last-seen database /var/cfengine/cf_lastseen.db
Segmentation Fault (core dumped)
Putting a zero-byte file also doesn't mollify it:
/var/cfengine/cf_lastseen.db
cfengine:: Couldn't open last-seen database /var/cfengine/cf_lastseen.db
cfengine:: db_open: Bad file number
Segmentation Fault (core dumped)
Any suggestions (short of reinstalling the agent altogether)?
Could we get an option to force this file to be rebuilt from scratch? I
don't care about data loss, as the friendstatus stuff is of only minor
importance to me. Even better than a db regeneration option would be
default agent behavior of simply spitting out a warning and regenerating
the file when encountering an invalid cf_lastseen.db file.
--
Chip Seraphine
Unix Administrator
TradeLink, LLC
312-264-2048
chip@trdlnk.com
- Rebuilding cf_lastseen.db,
Chip Seraphine <=