How do i get pass this error. I recent upgrading cfengine to 3.23.0 - Line from package inventory 'py39-openssl,23.2.0,1,amd64,pkg' did not yield correct number of elements. #5458
Replies: 3 comments 8 replies
-
It looks like the error comes from the https://github.com/cfengine/core/blob/master/libpromises/evalfunction.c#L1756 That code expects 4 comma separated items and I see you have five in all cases above. For example: You could examine The function I wonder if the data your system is/was getting for Ah. I see, some package names do have commas in them!
and I see that in software_packages.csv
I suspect that the format of your software_packages.csv is "old" somehow and if you move it aside and let CFEngine regenerate it, it might include the quotes and resolve your issue.
The bundle |
Beta Was this translation helpful? Give feedback.
-
i upgraded from 3.21.1 and 3.22.0. Upgrading from any of these versions to 3.23.0 produces that error. @craigcomstock the suggestion above is not working for me. I deleted the state file but when i restart cf-serverd, it still produces that error but doesn't create a new software.csv file. When i make the change on a cf agent clientit recreates the file and still produces that error |
Beta Was this translation helpful? Give feedback.
-
cf-agent-debug.log I have attached both files |
Beta Was this translation helpful? Give feedback.
-
OS: FreeBSD
Version: 13.2
CFengine Version: 3.23.0
Errors
error: Line from package inventory 'tdb,1.4.7,1,amd64,pkg' did not yield correct number of elements.
error: Line from package inventory 'brotli,1.1.0,1,amd64,pkg' did not yield correct number of elements.
error: Line from package inventory 'dbus,1.14.10,1,amd64,pkg' did not yield correct number of elements.
error: Line from package inventory 'glib,2.78.0,2,amd64,pkg' did not yield correct number of elements.
error: Line from package inventory 'icu,73.2,1,amd64,pkg' did not yield correct number of elements.
error: Line from package inventory 'joe,4.6,1,amd64,pkg' did not yield correct number of elements.
error: Line from package inventory 'libarchive,3.7.1,1,amd64,pkg' did not yield correct number of elements.
error: Line from package inventory 'libedit,3.1.20221030,1,amd64,pkg' did not yield correct number of elements.
error: Line from package inventory 'liblz4,1.9.4,1,amd64,pkg' did not yield correct number of elements.
error: Line from package inventory 'libssh2,1.11.0,3,amd64,pkg' did not yield correct number of elements.
error: Line from package inventory 'lmdb,0.9.31,1,amd64,pkg' did not yield correct number of elements.
error: Line from package inventory 'lsof,4.97.0,8,amd64,pkg' did not yield correct number of elements.
error: Line from package inventory 'mg,20230501,1,amd64,pkg' did not yield correct number of elements.
error: Line from package inventory 'mpfr,4.2.1,1,amd64,pkg' did not yield correct number of elements.
error: Line from package inventory 'net-snmp,5.9.1_4,1,amd64,pkg' did not yield correct number of elements.
error: Line from package inventory 'open-vm-tools-nox11,12.2.5_2,2,amd64,pkg' did not yield correct number of elements.
error: Line from package inventory 'p5-TimeDate,2.33,1,amd64,pkg' did not yield correct number of elements.
error: Line from package inventory 'py39-cryptography,41.0.3_1,1,amd64,pkg' did not yield correct number of elements.
error: Line from package inventory 'py39-dnspython,2.4.2,1,amd64,pkg' did not yield correct number of elements.
error: Line from package inventory 'py39-openssl,23.2.0,1,amd64,pkg' did not yield correct number of elements.
error: Line from package inventory 'python,3.9_3,2,amd64,pkg' did not yield correct number of elements.
error: Line from package inventory 'ruby,3.1.4_1,1,amd64,pkg' did not yield correct number of elements.
error: Line from package inventory 'sqlite3,3.43.1,1,amd64,pkg' did not yield correct number of elements.
error: Line from package inventory 'tdb,1.4.7,1,amd64,pkg' did not yield correct number of elements
This started happening after i upgraded cfe to 3.23.0.
I'm not sure of which policy file to update so that this package format can also be supported
Beta Was this translation helpful? Give feedback.
All reactions