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"}"
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
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.