Project

General

Profile

Actions

Bug #22442

closed

Could not open database txn cf_state.lmdb: Invalid argument

Added by Alexander Brunhirl almost 2 years ago. Updated 5 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 #1

Updated by Alexis Mousset almost 2 years ago

  • Assignee set to Alexis Mousset
Actions #2

Updated by Alexis Mousset almost 2 years ago

Does this persist in subsequent agent runs?

Actions #3

Updated by Alexander Brunhirl almost 2 years ago

Hi Alexis,

yes, we have this since the update to 7.2.4 in our logs. For better readability I removed the duplicated entries.

[tux@linux ~]$ sudo journalctl -p err --since="4 days ago"|sort -u |egrep "cf-(agent|serverd|promises)" 
Mar 05 16:43:37 linux cf-promises[16627]: CFEngine(common)  Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 05 17:42:25 linux cf-promises[14843]: CFEngine(common) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 05 18:03:27 linux cf-promises[24907]: CFEngine(common) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 05 18:33:41 linux cf-promises[7725]: CFEngine(common) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 05 19:02:32 linux cf-promises[21446]: CFEngine(common)  Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 05 22:03:34 linux cf-promises[12942]: CFEngine(common)  Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 05 23:43:20 linux cf-promises[29111]: CFEngine(common)  Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 06 05:33:20 linux cf-agent[6091]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 06 05:33:20 linux cf-promises[6414]: CFEngine(common) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 06 10:23:13 linux cf-promises[19921]: CFEngine(common) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 06 16:33:24 linux cf-agent[7460]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 06 16:33:24 linux cf-promises[7982]: CFEngine(common) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 06 18:53:33 linux cf-promises[12883]: CFEngine(common) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 06 20:43:33 linux cf-promises[1205]: CFEngine(common)  Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 06 20:43:34 linux cf-agent[831]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 06 20:43:34 linux cf-promises[1212]: CFEngine(common) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 06 21:33:24 linux cf-agent[24835]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 06 21:33:24 linux cf-promises[25104]: CFEngine(common)  Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 06 23:13:28 linux cf-promises[9238]: CFEngine(common)  Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 06 23:32:54 linux cf-promises[18547]: CFEngine(common)  Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 06 23:32:55 linux cf-agent[18248]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 06 23:32:55 linux cf-promises[18554]: CFEngine(common) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 07 16:42:45 linux cf-agent[24761]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 08 05:03:00 linux cf-promises[11134]: CFEngine(common)  Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 08 06:33:18 linux cf-agent[12022]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 08 11:12:49 linux cf-agent[24451]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 08 11:12:49 linux cf-promises[24710]: CFEngine(common) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 08 13:13:39 linux cf-agent[17719]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 08 13:13:39 linux cf-promises[18335]: CFEngine(common) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 08 17:23:07 linux cf-agent[8173]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 08 17:23:08 linux cf-promises[8804]: CFEngine(common) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 08 20:03:07 linux cf-agent[28123]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 08 20:03:07 linux cf-promises[28652]: CFEngine(common) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 09 04:23:01 linux cf-promises[7887]: CFEngine(common)  Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 09 06:03:02 linux cf-promises[17248]: CFEngine(common) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 09 07:22:50 linux cf-promises[11345]: CFEngine(common)  Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 09 07:22:51 linux cf-promises[11353]: CFEngine(common) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 09 08:23:04 linux cf-agent[22164]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 09 08:23:04 linux cf-promises[22456]: CFEngine(common) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 09 14:13:10 linux cf-agent[26409]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 09 14:13:10 linux cf-promises[26519]: CFEngine(common) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
[tux@linux ~]$
Actions #4

Updated by Alexander Brunhirl almost 2 years ago

One of the best ways to reproduce the behavior is by triggering a rudder agent reset.
A user triggered rudder agent run can create this as well but not always.

[tux@linux ~]$ sudo sh -c 'date; rudder agent reset; date; rudder agent update; date; rudder agent run -qu; date'
Thu Mar  9 15:21:14 UTC 2023
R: Initial policies have been successfully downloaded from the policy server
ok: Rudder agent policies were updated.
ok: Rudder agent state has been reset.
Thu Mar  9 15:21:17 UTC 2023
   error: Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
   error: Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
   error: While persisting class, unable to open database at '/var/rudder/cfengine-community/state/cf_state.lmdb' (OpenDB: Resource temporarily unavailable)
   error: Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
   error: Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
   error: While persisting class, unable to open database at '/var/rudder/cfengine-community/state/cf_state.lmdb' (OpenDB: Resource temporarily unavailable)
   error: Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
   error: Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
   error: While persisting class, unable to open database at '/var/rudder/cfengine-community/state/cf_state.lmdb' (OpenDB: Resource temporarily unavailable)
   error: Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
   error: Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
   error: While persisting class, unable to open database at '/var/rudder/cfengine-community/state/cf_state.lmdb' (OpenDB: Resource temporarily unavailable)
   error: Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
   error: Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
   error: While persisting class, unable to open database at '/var/rudder/cfengine-community/state/cf_state.lmdb' (OpenDB: Resource temporarily unavailable)
   error: Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
   error: While persisting class, unable to open database at '/var/rudder/cfengine-community/state/cf_state.lmdb' (OpenDB: Resource temporarily unavailable)

error: Rudder agent policies could not be updated.
Thu Mar  9 15:21:31 UTC 2023
Rudder agent 7.2.4
Node uuid: 396bb049-df8b-411a-a7f5-93dbf0b5cbe1
ok: Rudder agent policies were updated.
Start execution with config [20230303-122605-6ae8bb94]

M| State         Technique                 Component                 Key                Message
E| repaired      Common                    Update                                       Policy or configuration library were updated

## Summary #####################################################################
Not all components were displayed because we are not in full compliance mode. Please run with -g to force full compliance mode.
   => 1 components in Enforce mode
      -> 1 repaired
Execution time: 39.71s
################################################################################
Reports sent.
Thu Mar  9 15:22:19 UTC 2023
[tux@linux ~]$
[tux@linux ~]$ sudo journalctl -p 0..3 --follow
-- Logs begin at Sat 2023-02-04 22:47:15 UTC. --
Mar 09 15:21:25 linux cf-promises[24431]: CFEngine(common) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 09 15:21:25 linux cf-agent[24321]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 09 15:21:25 linux cf-agent[24321]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 09 15:21:25 linux cf-agent[24321]: CFEngine(agent) rudder While persisting class, unable to open database at '/var/rudder/cfengine-community/state/cf_state.lmdb' (OpenDB: Resource temporarily unavailable)
Mar 09 15:21:25 linux cf-agent[24321]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 09 15:21:25 linux cf-agent[24321]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 09 15:21:25 linux cf-agent[24321]: CFEngine(agent) rudder While persisting class, unable to open database at '/var/rudder/cfengine-community/state/cf_state.lmdb' (OpenDB: Resource temporarily unavailable)
Mar 09 15:21:25 linux cf-agent[24321]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 09 15:21:25 linux cf-agent[24321]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 09 15:21:25 linux cf-agent[24321]: CFEngine(agent) rudder While persisting class, unable to open database at '/var/rudder/cfengine-community/state/cf_state.lmdb' (OpenDB: Resource temporarily unavailable)
Mar 09 15:21:25 linux cf-agent[24321]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 09 15:21:25 linux cf-agent[24321]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 09 15:21:25 linux cf-agent[24321]: CFEngine(agent) rudder While persisting class, unable to open database at '/var/rudder/cfengine-community/state/cf_state.lmdb' (OpenDB: Resource temporarily unavailable)
Mar 09 15:21:25 linux cf-agent[24321]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 09 15:21:25 linux cf-agent[24321]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 09 15:21:25 linux cf-agent[24321]: CFEngine(agent) rudder While persisting class, unable to open database at '/var/rudder/cfengine-community/state/cf_state.lmdb' (OpenDB: Resource temporarily unavailable)
Mar 09 15:21:25 linux cf-agent[24321]: CFEngine(agent) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 09 15:21:25 linux cf-agent[24321]: CFEngine(agent) rudder While persisting class, unable to open database at '/var/rudder/cfengine-community/state/cf_state.lmdb' (OpenDB: Resource temporarily unavailable)
Mar 09 15:21:25 linux cf-promises[24431]: CFEngine(common) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 09 15:21:25 linux cf-promises[24431]: CFEngine(common) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 09 15:21:25 linux cf-promises[24431]: CFEngine(common) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 09 15:21:25 linux cf-promises[24431]: CFEngine(common) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Mar 09 15:21:25 linux cf-promises[24431]: CFEngine(common) rudder Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
Actions #5

Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 7.2.5 to 7.2.6
Actions #6

Updated by Benoît PECCATTE over 1 year ago

  • UX impact set to It bothers me each time
  • User visibility set to Operational - other Techniques | Rudder settings | Plugins
  • Priority changed from 0 to 64
Actions #7

Updated by Benoît PECCATTE over 1 year ago

  • Priority changed from 64 to 63
The problem is :
  • I cannot reproduce
  • I can find where the ldmb call is in cfengine
  • I cannot find the documentation for this error
  • I cannot find where the error could happen in the lmdb source code

So I have no clue for a possible cause.

Actions #8

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.2.6 to 7.2.7
Actions #9

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.2.7 to 7.2.8
  • Priority changed from 63 to 62
Actions #10

Updated by Alexander Brunhirl over 1 year ago

  • Priority changed from 62 to 61

It seems that this error can be caused if the update from the Rudder root server cannot be fetched.
On the Rudder root server there are no hints/errors in the logs.
It also appears to be distribution independent and also occurs on newly installed systems (e.g. SLES15 SP4, Ubuntu 22.04).

root@ubuntu:~# rudder agent run -qu
Rudder agent 7.2.7
Node uuid: 1ab5a04b-6688-4ae9-abaa-a0314bc708bf
   error: Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
   error: While persisting class, unable to open database at '/var/rudder/cfengine-community/state/cf_state.lmdb' (OpenDB: Resource temporarily unavailable)
   error: Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument
   error: While persisting class, unable to open database at '/var/rudder/cfengine-community/state/cf_state.lmdb' (OpenDB: Resource temporarily unavailable)
   error: Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument

error: Rudder agent policies could not be updated.
Start execution with config [20230629-090713-209eac33]

## Summary #####################################################################
Not all components were displayed because we are not in full compliance mode. Please run with -g to force full compliance mode.
Execution time: 13.16s
################################################################################
Reports sent.
root@ubuntu:~#
root@ubuntu:~# rudder agent update
ok: Rudder agent policies were updated.
root@ubuntu:~# rudder agent run -qu
Rudder agent 7.2.7
Node uuid: 1ab5a04b-6688-4ae9-abaa-a0314bc708bf
ok: Rudder agent policies were updated.
Start execution with config [20230629-090713-209eac33]

## Summary #####################################################################
Not all components were displayed because we are not in full compliance mode. Please run with -g to force full compliance mode.
Execution time: 12.63s
################################################################################
Reports sent.
root@ubuntu:~#
Actions #11

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.2.8 to 7.2.9
Actions #12

Updated by Alexis Mousset over 1 year ago

I just got it on our Rudder production server! I'll investigate on it.

It happened just after a policy generation on the Rudder server itself. It disapeared in subsequent runs.

# rudder agent run -ui
Rudder agent 7.3.0
Node uuid: root
   error: Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument

error: Rudder agent policies could not be updated.

Actions #13

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.2.9 to 7.2.10
  • Priority changed from 61 to 60
Actions #14

Updated by Alexis Mousset over 1 year ago

  • Target version changed from 7.2.10 to 7.2.11
Actions #15

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.2.11 to 1046
  • Priority changed from 60 to 58
Actions #16

Updated by Alexis Mousset about 1 year ago

  • Target version changed from 1046 to 7.3.8
Actions #17

Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 7.3.8 to 7.3.9
  • Priority changed from 58 to 57
Actions #18

Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 7.3.9 to 7.3.10
Actions #19

Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 7.3.10 to 7.3.11
  • Priority changed from 57 to 56
Actions #20

Updated by Vincent MEMBRÉ 11 months ago

  • Target version changed from 7.3.11 to 7.3.12
  • Priority changed from 56 to 54
Actions #21

Updated by Vincent MEMBRÉ 10 months ago

  • Target version changed from 7.3.12 to 7.3.13
  • Priority changed from 54 to 53
Actions #22

Updated by Vincent MEMBRÉ 10 months ago

  • Target version changed from 7.3.13 to 7.3.14
Actions #23

Updated by Félix DALLIDET 9 months ago

This still occurs quite often on fresh install.
See this case on Amazon Linux 2023 with a 8.0.7-nightly:

[2024-03-15T13:06:47.446Z]         "Rudder agent 8.0.7~git202403150211",

[2024-03-15T13:06:47.446Z]         "Node uuid: root",

[2024-03-15T13:06:47.446Z]         "   error: Could not open database txn /var/rudder/cfengine-community/state/cf_state.lmdb: Invalid argument",

[2024-03-15T13:06:47.446Z]         "   error: While persisting class, unable to open database at '/var/rudder/cfengine-community/state/cf_state.lmdb' (OpenDB: Resource temporarily unavailable)",

[2024-03-15T13:06:47.446Z]         "Start execution with config [20240315-130635-6bd2c58c]",

[2024-03-15T13:06:47.446Z]         "",

[2024-03-15T13:06:47.446Z]         "2024-03-15T13:06:44+00:00 R: [INFO] Starting CFEngine 3.21.2a.e421816a7 on host deploydirectiveserver.rudder.local (AmazonLinux x86_64)",

[2024-03-15T13:06:47.446Z]         "M| State         Technique                 Component                 Key                Message",

[2024-03-15T13:06:47.446Z]         "E| compliant     Common                    ncf Initialization                           Configuration library initialization was correct",

Actions #24

Updated by Vincent MEMBRÉ 8 months ago

  • Target version changed from 7.3.14 to 7.3.15
Actions #25

Updated by Vincent MEMBRÉ 7 months ago

  • Target version changed from 7.3.15 to 7.3.16
Actions #26

Updated by Vincent MEMBRÉ 6 months ago

  • Target version changed from 7.3.16 to 7.3.17
Actions #27

Updated by Alexis Mousset 5 months ago

  • Target version changed from 7.3.17 to 8.1.6
Actions #28

Updated by Alexis Mousset 5 months ago

  • Status changed from New to In progress
Actions #29

Updated by Alexis Mousset 5 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis Mousset to Félix DALLIDET
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/2888
Actions #30

Updated by Alexis Mousset 5 months ago

  • Status changed from Pending technical review to Pending release
Actions #31

Updated by Alexis Mousset 5 months ago

  • Subtask #25166 added
Actions #32

Updated by Alexis Mousset 5 months ago

  • Fix check changed from To do to Checked
Actions #33

Updated by Vincent MEMBRÉ 5 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 8.1.6 which was released today.

Actions

Also available in: Atom PDF