Project

General

Profile

Actions

Bug #22442

closed

Could not open database txn cf_state.lmdb: Invalid argument

Added by Alexander Brunhirl over 1 year ago. Updated 4 months ago.

Status:
Released
Priority:
N/A
Category:
Agent
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
It bothers me each time
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
53
Name check:
To do
Fix check:
Checked
Regression:
No

Description

Hi,

after upgrading Rudder from 6.2.13 to 7.2.4 we found the following cf-agent errors in our logs.
This happend on CentOS 7/RHEL 7, SLES12 SP5, SLES15 SP3, SLES15 SP4

[tux@linux ~]$ sudo journalctl --priority err
       [...]
Mar 08 07:44:41 linux cf-agent[11801]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 08 07:44:41 linux cf-agent[11801]: CFEngine(agent) rudder While persisting class, unable to open database at '/var/rudder/cfengine-community/state/cf_state.lmdb' (OpenDB: Resource temporarily unavailable)
Mar 08 07:44:41 linux cf-agent[11801]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 08 07:44:41 linux cf-agent[11801]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 08 07:44:41 linux cf-agent[11801]: CFEngine(agent) rudder While persisting class, unable to open database at '/var/rudder/cfengine-community/state/cf_state.lmdb' (OpenDB: Resource temporarily unavailable)
Mar 08 07:44:41 linux cf-agent[11801]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 08 07:44:41 linux cf-agent[11801]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 08 07:44:41 linux cf-agent[11801]: CFEngine(agent) rudder While persisting class, unable to open database at '/var/rudder/cfengine-community/state/cf_state.lmdb' (OpenDB: Resource temporarily unavailable)
Mar 08 07:44:41 linux cf-agent[11801]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 08 07:44:41 linux cf-agent[11801]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 08 07:44:41 linux cf-agent[11801]: CFEngine(agent) rudder While persisting class, unable to open database at '/var/rudder/cfengine-community/state/cf_state.lmdb' (OpenDB: Resource temporarily unavailable)
Mar 08 07:44:41 linux cf-agent[11801]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
       [...]
[tux@linux ~]$ sudo rudder agent info

General
           Hostname: linux.example.com
               UUID: 32cd0812-248c-473c-b289-20ad2b5f24eb
      Policy server: rudder.example.com
               Role: node
            Version: 7.2.4

Policies
             Status: enabled
        Report mode: changes-only
       Run interval: 10 min
  Forced audit mode: no
   Configuration id: 20230303-122535-cfc4ea7a
     Policy updated: 2023-03-08 07:49:28
     Inventory sent: 2023-03-08 07:42:41

Key/Certificate
           Key hash: MD5=298988589d5b126a23b5867f11f81069
           Key hash: sha256//+Mfzd8IWnZHyTGPXvD8ZST2i04H8k3CtRZ0xjLeykr4=
  Cert. fingerprint: EF:DA:1D:BC:29:53:36:C1:D1:D7:06:94:73:4F:EC:6A:05:C6:9D:1C
        Key pinning: full
     Cert. creation: 2020-09-10
   Cert. expiration: 2030-09-08

[tux@linux ~]$ 
[tux@linux ~]$ sudo rudder agent health
OK
[tux@linux ~]$ sudo /var/rudder/cfengine-community/bin/cf-agent --self-diagnostics
self-diagnostics for agent using workdir '/var/rudder/cfengine-community'
self-diagnostics for agent using inputdir '/var/rudder/cfengine-community/inputs'
self-diagnostics for agent using logdir '/var/rudder/cfengine-community'
self-diagnostics for agent using statedir '/var/rudder/cfengine-community/state'
[ YES ] Check that agent is bootstrapped: rudder.example.com
[ NO  ] Check if agent is acting as a policy server: Not acting as a policy server
[ YES ] Check private key: OK at '/var/rudder/cfengine-community/ppkeys/localhost.priv'
[ NO  ] Check public key: Public key at '/var/rudder/cfengine-community/ppkeys/localhost.pub' had size 775 bytes, expected 426 bytes
[ NO  ] Check persistent classes DB: Unable to diagnose LMDB file (not implemented) for '/var/rudder/cfengine-community/state/cf_state.lmdb'
[ NO  ] Check checksums DB: Unable to diagnose LMDB file (not implemented) for '/var/rudder/cfengine-community/state/checksum_digests.lmdb'
[ NO  ] Check observations DB: Unable to diagnose LMDB file (not implemented) for '/var/rudder/cfengine-community/state/cf_observations.lmdb'
[ NO  ] Check file stats DB: Unable to diagnose LMDB file (not implemented) for '/var/rudder/cfengine-community/state/stats.lmdb'
[ NO  ] Check locks DB: Unable to diagnose LMDB file (not implemented) for '/var/rudder/cfengine-community/state/cf_lock.lmdb'
[ NO  ] Check performance DB: Unable to diagnose LMDB file (not implemented) for '/var/rudder/cfengine-community/state/performance.lmdb'
[ NO  ] Check lastseen DB: Unable to diagnose LMDB file (not implemented) for '/var/rudder/cfengine-community/state/cf_lastseen.lmdb'
[tux@linux ~]$ 

Subtasks 1 (0 open1 closed)

Bug #25166: Could not open database txn cf_state.lmdb: Invalid argument - remove from 8.2ReleasedVincent MEMBRÉActions
Actions

Also available in: Atom PDF