Failed to patch CentOS

Hi, I am using download plugin to patch CentOS. I read the log but I cannot find the issue. Can you help me to address the issue. thx.

25216 : 2019-06-14 10:14:37 : Level 1911 : CentOS R2 Download Plugin version 1.0.0.2. Gonna get to work now.
25216 : 2019-06-14 10:14:37 : INFO : Using regular HTTP wrapper.
25216 : 2019-06-14 10:14:37 : DEBUG : Unforced setup.
25216 : 2019-06-14 10:14:37 : DEBUG : Unforced setup.
25216 : 2019-06-14 10:14:37 : DEBUG : Disabling SSL certificate verification.
25216 : 2019-06-14 10:14:37 : DEBUG : Unforced setup.
25216 : 2019-06-14 10:14:37 : DEBUG : Proxy set to XXX/XX/*************** @ http://XX.XX.com:80.
25216 : 2019-06-14 10:14:37 : INFO : New download: {‘sha1’: None, ‘url’: ‘CentOSR2Protocol://get.repo.list.content/centos/7/x64’, ‘file’: ‘D:\Program Files (x86)\BigFix Enterprise\BES Server\wwwrootbes\bfmirror\downloads\ActiveDownloads\indexed_368_1’, ‘size’: None, ‘id’: 15}
25216 : 2019-06-14 10:14:37 : INFO : CentOS R2 Plugin download url CentOSR2Protocol://get.repo.list.content/centos/7/x64.
25216 : 2019-06-14 10:14:37 : DEBUG : op: get.repo.list.content, params: centos/7/x64
25216 : 2019-06-14 10:14:37 : DEBUG : Checking cache for repo data for name: CentOS - OS, baseurl: http://mirror.centos.org/centos/7/os/x86_64/.
25216 : 2019-06-14 10:14:37 : DEBUG : Using cached repo data for name: CentOS - OS, baseurl: http://mirror.centos.org/centos/7/os/x86_64/.
25216 : 2019-06-14 10:14:37 : DEBUG : Cached repo data found for name: CentOS - OS, baseurl: http://mirror.centos.org/centos/7/os/x86_64/.
25216 : 2019-06-14 10:14:37 : DEBUG : Checking cache for repo data for name: CentOS - Updates, baseurl: http://mirror.centos.org/centos/7/updates/x86_64/.
25216 : 2019-06-14 10:14:37 : DEBUG : Using cached repo data for name: CentOS - Updates, baseurl: http://mirror.centos.org/centos/7/updates/x86_64/.
25216 : 2019-06-14 10:14:37 : DEBUG : Cached repo data found for name: CentOS - Updates, baseurl: http://mirror.centos.org/centos/7/updates/x86_64/.
25216 : 2019-06-14 10:14:37 : DEBUG : Checking cache for repo data for name: CentOS - Extras, baseurl: http://mirror.centos.org/centos/7/extras/x86_64/.
25216 : 2019-06-14 10:14:37 : DEBUG : Using cached repo data for name: CentOS - Extras, baseurl: http://mirror.centos.org/centos/7/extras/x86_64/.
25216 : 2019-06-14 10:14:37 : DEBUG : Cached repo data found for name: CentOS - Extras, baseurl: http://mirror.centos.org/centos/7/extras/x86_64/.
25216 : 2019-06-14 10:14:37 : DEBUG : Checking cache for repo data for name: CentOS - Fastrack, baseurl: http://mirror.centos.org/centos/7/fasttrack/x86_64/.
25216 : 2019-06-14 10:14:37 : DEBUG : Using cached repo data for name: CentOS - Fastrack, baseurl: http://mirror.centos.org/centos/7/fasttrack/x86_64/.
25216 : 2019-06-14 10:14:37 : DEBUG : Cached repo data found for name: CentOS - Fastrack, baseurl: http://mirror.centos.org/centos/7/fasttrack/x86_64/.
25216 : 2019-06-14 10:14:37 : INFO : ******************************************
25216 : 2019-06-14 10:14:37 : INFO : Repo list Summary for: centos-7-x64
25216 : 2019-06-14 10:14:37 : INFO :
25216 : 2019-06-14 10:14:37 : INFO : Repo: CentOSOS
25216 : 2019-06-14 10:14:37 : INFO : Repodata files count: 4
25216 : 2019-06-14 10:14:37 : INFO : Repo: CentOSUpdates
25216 : 2019-06-14 10:14:37 : INFO : Repodata files count: 4
25216 : 2019-06-14 10:14:37 : INFO : Repo: CentOSExtras
25216 : 2019-06-14 10:14:37 : INFO : Repodata files count: 4
25216 : 2019-06-14 10:14:37 : INFO : Repo: CentOSFastrack
25216 : 2019-06-14 10:14:37 : INFO : Repodata files count: 4
25216 : 2019-06-14 10:14:37 : INFO : ******************************************
25216 : 2019-06-14 10:14:37 : DEBUG : Wrote repo list to D:\Program Files (x86)\BigFix Enterprise\BES Server\wwwrootbes\bfmirror\downloads\ActiveDownloads\indexed_368_1.
25216 : 2019-06-14 10:14:37 : DEBUG : Operation get_repo_list_content took 15.62 millis.
25216 : 2019-06-14 10:14:37 : DEBUG : Download status.
25216 : 2019-06-14 10:14:37 : DEBUG : {‘sha1’: None, ‘url’: ‘CentOSR2Protocol://get.repo.list.content/centos/7/x64’, ‘file’: ‘D:\Program Files (x86)\BigFix Enterprise\BES Server\wwwrootbes\bfmirror\downloads\ActiveDownloads\indexed_368_1’, ‘size’: None, ‘id’: 15}
25216 : 2019-06-14 10:14:37 : DEBUG : {‘error’: None, ‘success’: True, ‘id’: 15}
25216 : 2019-06-14 10:14:37 : INFO : Download successful.
25216 : 2019-06-14 10:14:37 : INFO : Plugin returned with code 0.

There don’t appear to be any errors in that log. Can you post the client’s EDR log (from /var/opt/besclient/EDR_DeployData ) ?

I’m blind about this yum

47790    : 2019-06-13 23:06:46 : INFO     : Start Task ID: 19067901
47790    : 2019-06-13 23:06:46 : INFO     : CentOS-Patch-Client at version 2.0.1.0
47790    : 2019-06-13 23:06:46 : DEBUG    : Exit code file is not None, and /var/opt/BESClient/EDRDeployData//EDR_ExitCode_19067901 is a file. Reading file ...
47790    : 2019-06-13 23:06:46 : DEBUG    : Exit code file, first row is 0. Will continue.
47790    : 2019-06-13 23:06:46 : INFO     : 01 setup and request repomd.xml
47790    : 2019-06-13 23:06:46 : CRITICAL : Unexpected error!
47790    : 2019-06-13 23:06:46 : CRITICAL : Exception type: <class 'configparser.DuplicateOptionError'>
47790    : 2019-06-13 23:06:46 : CRITICAL : While reading from '/etc/yum.conf' [line 14]: option 'proxy' in section 'main' already exists
Traceback (most recent call last):
  File "<string>", line 47, in <module>
  File "<string>", 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 71, in load_sys_yum_config
  File "configparser.py", line 672, in read
  File "configparser.py", line 1070, in _read
configparser.DuplicateOptionError: While reading from '/etc/yum.conf' [line 14]: option 'proxy' in section 'main' already exists
47792    : 2019-06-13 23:06:46 : DEBUG    : Exit code file is not None, and /var/opt/BESClient/EDRDeployData//EDR_ExitCode_19067901 is a file. Reading file ...
47792    : 2019-06-13 23:06:46 : DEBUG    : Exit code file, first row is not 0. Will not continue.
47792    : 2019-06-13 23:06:46 : ERROR    : Lock repo data will not continue, last command exit code is not 0
47795    : 2019-06-13 23:06:46 : DEBUG    : Exit code file is not None, and /var/opt/BESClient/EDRDeployData//EDR_ExitCode_19067901 is a file. Reading file ...
47795    : 2019-06-13 23:06:46 : DEBUG    : Exit code file, first row is not 0. Will not continue.
47795    : 2019-06-13 23:06:46 : ERROR    : Dependency resolution will not continue, last command exit code is not 0
47799    : 2019-06-13 23:06:47 : DEBUG    : Exit code file is not None, and /var/opt/BESClient/EDRDeployData//EDR_ExitCode_19067901 is a file. Reading file ...
47799    : 2019-06-13 23:06:47 : DEBUG    : Exit code file, first row is not 0. Will not continue.
47799    : 2019-06-13 23:06:47 : ERROR    : yum command not continue, last command exit code is not 0
47954    : 2019-06-13 23:09:27 : INFO     : Start Task ID: 19067901
47954    : 2019-06-13 23:09:27 : INFO     : CentOS-Patch-Client at version 2.0.1.0
47954    : 2019-06-13 23:09:27 : DEBUG    : Exit code file is not None, and /var/opt/BESClient/EDRDeployData//EDR_ExitCode_19067901 is a file. Reading file ...
47954    : 2019-06-13 23:09:27 : DEBUG    : Exit code file, first row is 0. Will continue.
47954    : 2019-06-13 23:09:27 : INFO     : 01 setup and request repomd.xml
47954    : 2019-06-13 23:09:27 : CRITICAL : Unexpected error!
47954    : 2019-06-13 23:09:27 : CRITICAL : Exception type: <class 'configparser.DuplicateOptionError'>
47954    : 2019-06-13 23:09:27 : CRITICAL : While reading from '/etc/yum.conf' [line 14]: option 'proxy' in section 'main' already exists
Traceback (most recent call last):
  File "<string>", line 47, in <module>
  File "<string>", 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 71, in load_sys_yum_config
  File "configparser.py", line 672, in read
  File "configparser.py", line 1070, in _read
configparser.DuplicateOptionError: While reading from '/etc/yum.conf' [line 14]: option 'proxy' in section 'main' already exists
47957    : 2019-06-13 23:09:28 : DEBUG    : Exit code file is not None, and /var/opt/BESClient/EDRDeployData//EDR_ExitCode_19067901 is a file. Reading file ...
47957    : 2019-06-13 23:09:28 : DEBUG    : Exit code file, first row is not 0. Will not continue.
47957    : 2019-06-13 23:09:28 : ERROR    : Lock repo data will not continue, last command exit code is not 0
47959    : 2019-06-13 23:09:28 : DEBUG    : Exit code file is not None, and /var/opt/BESClient/EDRDeployData//EDR_ExitCode_19067901 is a file. Reading file ...
47959    : 2019-06-13 23:09:28 : DEBUG    : Exit code file, first row is not 0. Will not continue.
47959    : 2019-06-13 23:09:28 : ERROR    : Dependency resolution will not continue, last command exit code is not 0
47962    : 2019-06-13 23:09:28 : DEBUG    : Exit code file is not None, and /var/opt/BESClient/EDRDeployData//EDR_ExitCode_19067901 is a file. Reading file ...
47962    : 2019-06-13 23:09:28 : DEBUG    : Exit code file, first row is not 0. Will not continue.
47962    : 2019-06-13 23:09:28 : ERROR    : yum command not continue, last command exit code is not 0
48537    : 2019-06-13 23:18:51 : INFO     : Start Task ID: 19023001
48537    : 2019-06-13 23:18:51 : INFO     : CentOS-Patch-Client at version 2.0.1.0
48537    : 2019-06-13 23:18:51 : DEBUG    : Exit code file is not None, and /var/opt/BESClient/EDRDeployData//EDR_ExitCode_19023001 is a file. Reading file ...
48537    : 2019-06-13 23:18:51 : DEBUG    : Exit code file, first row is 0. Will continue.
48537    : 2019-06-13 23:18:51 : INFO     : 01 setup and request repomd.xml
48537    : 2019-06-13 23:18:51 : CRITICAL : Unexpected error!
48537    : 2019-06-13 23:18:51 : CRITICAL : Exception type: <class 'configparser.DuplicateOptionError'>
48537    : 2019-06-13 23:18:51 : CRITICAL : While reading from '/etc/yum.conf' [line 14]: option 'proxy' in section 'main' already exists
Traceback (most recent call last):
  File "<string>", line 47, in <module>
  File "<string>", 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 71, in load_sys_yum_config
  File "configparser.py", line 672, in read
  File "configparser.py", line 1070, in _read
configparser.DuplicateOptionError: While reading from '/etc/yum.conf' [line 14]: option 'proxy' in section 'main' already exists
48539    : 2019-06-13 23:18:51 : DEBUG    : Exit code file is not None, and /var/opt/BESClient/EDRDeployData//EDR_ExitCode_19023001 is a file. Reading file ...
48539    : 2019-06-13 23:18:51 : DEBUG    : Exit code file, first row is not 0. Will not continue.
48539    : 2019-06-13 23:18:51 : ERROR    : Lock repo data will not continue, last command exit code is not 0
48542    : 2019-06-13 23:18:51 : DEBUG    : Exit code file is not None, and /var/opt/BESClient/EDRDeployData//EDR_ExitCode_19023001 is a file. Reading file ...
48542    : 2019-06-13 23:18:51 : DEBUG    : Exit code file, first row is not 0. Will not continue.
48542    : 2019-06-13 23:18:51 : ERROR    : Dependency resolution will not continue, last command exit code is not 0
48545    : 2019-06-13 23:18:52 : DEBUG    : Exit code file is not None, and /var/opt/BESClient/EDRDeployData//EDR_ExitCode_19023001 is a file. Reading file ...
48545    : 2019-06-13 23:18:52 : DEBUG    : Exit code file, first row is not 0. Will not continue.
48545    : 2019-06-13 23:18:52 : ERROR    : yum command not continue, last command exit code is not 0

Ok, DONE. Just removed the duplicate line. :sweat_smile::sweat_smile::sweat_smile:

edited: the status now pending download. many file is Cached on Server but one is:

polkit-0.112-18.el7_6.1.x86_64.rpm
 Failed
 [-]
[+] Download error:  "<urlopen error [Errno 11001] getaddrinfo failed>" 
 Download requested by client: 
 URL: CentOSR2Protocol://get.file/aHR0cDovL21pcnJvci5jZW50b3Mub3JnL2NlbnRvcy83L3VwZGF0ZXMveDg2XzY0Lw==/Packages/polkit-0.112-18.el7_6.1.x86_64.rpm 
 Hash: (sha256)a847baf6b52f85897d12a9111765df56d69af9e92f092083134832b9186371d6 
 Size: 172268 bytes 
 Next retry: 10 minutes. Retry now 

I don;'t see a847baf6b52f85897d12a9111765df56d69af9e92f092083134832b9186371d6 in \DownloadPlugins\CentOSR2Protocol\cache folder? Whar should I do?

Have you configured the download plugin for CentOS?

Sure. I have registered it. What else should I do?

Edit:

Yes the configuration is wrong. It works now. Thx u very much.

1 Like