We're only running cf3 on a subset of our machines for now, so I'm inclined to 
wait for 3.1.6, as functionality doesn't seem to be impaired. Any adverse 
impact from this beyond warning messages?

On Jun 7, 2011, at 10:00 AM, Mikhail Gusarov wrote:

> On 06/07/2011 06:56 PM, Michael Stevens wrote:
>> I'm intermittently getting these errors on some of my hosts ... I'm only 
>> getting them from automated runs, have been unsuccessful trying to provoke 
>> the errors running cf-agent manually. Any idea what causes this and how I 
>> fix it? All the machines are getting the same HOFFSET erros, but with 
>> different numbers;
>> 
>> Page 5: bad HOFFSET 1552, appears to be 1596
>> Page 5: item order check unsafe: skipping
>> /var/cfengine/state/cf_lock.db: DB_VERIFY_BAD: Database verification failed
>> BDB_VerifyDB: database /var/cfengine/state/cf_lock.db is corrupted: 
>> DB_VERIFY_BAD: Database verification failed
>> 
>> /var/cfengine/state/cf_lock.db: unable to flush: No such file or directory
>> BDB_CloseDB: Unable to close database: No such file or directory
>> CloseDB: Could not close DB handle.
>> CloseDB: Trying to remove handle from open pool anyway.
>> /var/cfengine/state/cf_lock.db: No such file or directory
>> 
>> The "corrupted" lockfile has a timestamp matching the time of the errors 
>> above as seen in the system log;
>> # ls -l /var/cfengine/state/cf_lock.db*
>> -rw------- 1 root root 32768 Jun  7 09:47 /var/cfengine/state/cf_lock.db
>> -rw------- 1 root root 32768 Jun  7 07:47 
>> /var/cfengine/state/cf_lock.db.corrupted
> 
> This has been an attempt to detect corrupted databases and set them
> aside in 3.1.5. Turned out it created more problems that solved
> (recovery process might get in the way and become a cause of database
> corruption due to 1) its length 2) lack of locks guarding verification)
> and it has been reverted in trunk. You could try to use trunk or get a
> patch which removes BDB_VerifyDB from dbm_berkeley.c
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to