Make sure you don't have both versions of Berkeley hanging
around, so you are getting the header files from one, and
the library from another...
On 3 Nov, Chip Seraphine wrote:
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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272 Email: Mark.Burgess@iu.hio.no
Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine