BIGFIX Patch - RHEL Download Plugin - EDR_DeploymentResults - 01 setup and request repomd.xml - Exception type: <class 'KeyError'>

Hi,

I’m having the following issue:
I’ve configured the RHEL Download plugin on the BES Server with the following article:
https://help.hcltechsw.com/bigfix/10.0/patch/Patch/Patch_RH/c_using_rhsm_dlp.html

I’ve configured RHEL 7 X86_64 Multi-Package Baseline with the following article:
https://help.hcltechsw.com/bigfix/10.0/patch/Patch/Patch_RH/t_installing_multiple_packages_in_a_baseline.html

I’ve enabled Debug on the Targeted RHEL Server

I’ve Taking Action to that machine and after the completion of Multiple-Package Baseline Installation Task I’m getting Failed Status.

on the EDR_DeploymentResults.txt file there are the following lines:
34385 : 2021-09-30 11:36:36 : INFO : 01 setup and request repomd.xml
34385 : 2021-09-30 11:36:36 : CRITICAL : Unexpected error!
34385 : 2021-09-30 11:36:36 : CRITICAL : Exception type: <class ‘KeyError’>

Have you encountered this error?
Do you have any pointers to continue with resolving this issue?

Yes we saw this msg during one of our Linux patching but there was also one more line after Exception Type for example - :CRITICAL : [Errno 17] File exists: '/var/opt/BESClient/rhsmyum'

And for that we followed below which solve the problem for us-

delete "{(client folder of current site as string) & "/__appendfile"}"
appendfile #!/bin/sh
appendfile rm -rf /var/opt/BESClient/rhsmyum
appendfile rm -rf /tmp/rhsmyum
appendfile mkdir -p /tmp/rhsmyum
appendfile ln -s /tmp/rhsmyum /var/opt/BESClient/rhsmyum

wait chmod +x "{(client folder of current site as string) & "/__appendfile"}"
run "{(client folder of current site as string) & "/__appendfile"}"

This is the content from the LOG File:

34385 : 2021-09-30 11:36:36 : INFO : Start Task ID: 39016
34385 : 2021-09-30 11:36:36 : INFO : RHEL-Patch-Client at version 2.0.1.0
34385 : 2021-09-30 11:36:36 : DEBUG : Exit code file is not None, and /var/opt/BESClient/EDRDeployData//EDR_ExitCode_39016 is a file. Reading file …
34385 : 2021-09-30 11:36:36 : DEBUG : Exit code file, first row is 0. Will continue.
34385 : 2021-09-30 11:36:36 : INFO : 01 setup and request repomd.xml
34385 : 2021-09-30 11:36:36 : CRITICAL : Unexpected error!
34385 : 2021-09-30 11:36:36 : CRITICAL : Exception type: <class ‘KeyError’>
34385 : 2021-09-30 11:36:36 : CRITICAL : 'main’
Traceback (most recent call last):
File “”, line 47, in
File “”, line 41, in main
File “bfyum/cli/setup.py”, line 71, in do
File “bfyum/yum.py”, line 24, in init
File “bfyum/config.py”, line 25, in init
File “bfyum/config.py”, line 73, in load_sys_yum_config
File “configparser.py”, line 937, in getitem
KeyError: 'main’
34387 : 2021-09-30 11:36:37 : DEBUG : Exit code file is not None, and /var/opt/BESClient/EDRDeployData//EDR_ExitCode_39016 is a file. Reading file …
34387 : 2021-09-30 11:36:37 : DEBUG : Exit code file, first row is not 0. Will not continue.
34387 : 2021-09-30 11:36:37 : ERROR : Lock repo data will not continue, last command exit code is not 0
34389 : 2021-09-30 11:36:37 : DEBUG : Exit code file is not None, and /var/opt/BESClient/EDRDeployData//EDR_ExitCode_39016 is a file. Reading file …
34389 : 2021-09-30 11:36:37 : DEBUG : Exit code file, first row is not 0. Will not continue.
34389 : 2021-09-30 11:36:37 : ERROR : Dependency resolution will not continue, last command exit code is not 0
34392 : 2021-09-30 11:36:37 : DEBUG : Exit code file is not None, and /var/opt/BESClient/EDRDeployData//EDR_ExitCode_39016 is a file. Reading file …
34392 : 2021-09-30 11:36:37 : DEBUG : Exit code file, first row is not 0. Will not continue.
34392 : 2021-09-30 11:36:37 : ERROR : yum command not continue, last command exit code is not 0

On the EDR_ExitCode_39016 file there is the following content:
251
unexpected error

Do you see other info that may help?

Not sure about much what is this content but seems thats area which causing the problems, you might need to check with anyone who is having linux/unix expertise.