Sync fails with ApacheServerException KeyError: state

Solution Verified - Updated -

Issue

  • Sync of the repositories fails with following error in root/.rhui/rhui.log
2019-02-25 14:31:02,680 - 
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/rhui/tools/cli.py", line 69, in run
    Cli.run(self, args)
  File "/usr/lib/python2.7/site-packages/rhui/common/cli.py", line 272, in run
    command_or_section.execute(remaining_args)
  File "/usr/lib/python2.7/site-packages/rhui/common/cli.py", line 113, in execute
    self.method(**arg_dict)
  File "/usr/lib/python2.7/site-packages/rhui/tools/commands/status.py", line 68, in show
    ret_code = self._status(kwargs['--code'])
  File "/usr/lib/python2.7/site-packages/rhui/tools/commands/status.py", line 96, in _status
    repos = self.pulp.repos_with_sync_status()
  File "/usr/lib/python2.7/site-packages/rhui/tools/pulp_api.py", line 336, in repos_with_sync_status
    redhat_repos = self.redhat_repo_list()
  File "/usr/lib/python2.7/site-packages/rhui/tools/pulp_api.py", line 252, in redhat_repo_list
    response = self.repo_group_api.repo_group(GROUP_RED_HAT)
  File "/usr/lib/python2.7/site-packages/pulp/bindings/repo_groups.py", line 93, in repo_group
    return self.server.GET(path)
  File "/usr/lib/python2.7/site-packages/pulp/bindings/server.py", line 92, in GET
    return self._request('GET', path, queries, ignore_prefix=ignore_prefix)
  File "/usr/lib/python2.7/site-packages/pulp/bindings/server.py", line 166, in _request
    self._handle_exceptions(response_code, response_body)
  File "/usr/lib/python2.7/site-packages/pulp/bindings/server.py", line 202, in _handle_exceptions
    raise exceptions.ApacheServerException(response_body)
ApacheServerException
2019-02-26 13:22:19,811 - Connecting to RHUA [rhua.example.com]...
2019-02-26 13:22:19,815 - Successfully connected to [rhua.example.com]
2019-02-26 13:22:19,840 - Loading the dict with registered subscriptions
2019-02-26 14:21:11,582 - Connecting to RHUA [rhua.example.com]...
2019-02-26 14:21:19,081 - Successfully connected to [rhua.example.com]  <<<<<
2019-02-26 14:21:19,105 - Loading the dict with registered subscriptions
2019-02-26 14:22:38,344 - <type 'exceptions.KeyError'>
2019-02-26 14:22:38,345 - Unexpected error caught at the shell level
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/rhui/tools/shell.py", line 92, in safe_listen
    self.listen(clear=first_run)
  File "/usr/lib/python2.7/site-packages/rhui/tools/shell.py", line 131, in listen
    Shell.listen(self)
  File "/usr/lib/python2.7/site-packages/rhui/common/shell.py", line 186, in listen
    item.func(*args, **item.kwargs)
  File "/usr/lib/python2.7/site-packages/rhui/tools/screens/sync.py", line 144, in repo_sync
    repos = self.pulp.repos_with_sync_status()
  File "/usr/lib/python2.7/site-packages/rhui/tools/pulp_api.py", line 375, in repos_with_sync_status
    next_sync_date, progress = _next_scheduled_sync_and_progress(sync_list)
  File "/usr/lib/python2.7/site-packages/rhui/tools/pulp_api.py", line 1126, in _next_scheduled_sync_and_progress
    if task['state'] == 'waiting':
KeyError: 'state'
  • Following erros under /var/log/httpd/pulp-https_error_ssl.log
[Tue Feb 26 13:22:50.720231 2019] [:error] [pid 6844] [remote xxx.xx.xx.xxx:xxx] ServerSelectionTimeoutError: localhost:27017: [Errno 111] Connection refused
[Tue Feb 26 13:23:20.807018 2019] [:error] [pid 6844] [remote xxx.xx.xx.xxx:248] mod_wsgi (pid=6844): Target WSGI script '/usr/share/pulp/wsgi/webservices.wsgi' cannot be loaded as Python module.
[Tue Feb 26 13:23:20.807058 2019] [:error] [pid 6844] [remote xxx.xx.xx.xxx:248] mod_wsgi (pid=6844): Exception occurred processing WSGI script '/usr/share/pulp/wsgi/webservices.wsgi'.
[Tue Feb 26 13:23:20.807099 2019] [:error] [pid 6844] [remote xxx.xx.xx.xxx:248] Traceback (most recent call last):
[Tue Feb 26 13:23:20.807118 2019] [:error] [pid 6844] [remote xxx.xx.xx.xxx:248]   File "/usr/share/pulp/wsgi/webservices.wsgi", line 19, in <module>
[Tue Feb 26 13:23:20.807147 2019] [:error] [pid 6844] [remote xxx.xx.xx.xxx:248]     application = wsgi_application()
[Tue Feb 26 13:23:20.807212 2019] [:error] [pid 6844] [remote xxx.xx.xx.xxx:248] File"/usr/lib/python2.7/sitepackages/pulp/server/webservices/application.py",line122, in wsgi_application
[Tue Feb 26 13:23:20.807241 2019] [:error] [pid 6844] [remote xxx.xx.xx.xxx:248]     raise e
[Tue Feb 26 13:23:20.807259 2019] [:error] [pid 6844] [remote xxx.xx.xx.xxx:248] ServerSelectionTimeoutError: localhost:27017: [Errno 111] Connection refused

Environment

  • Red Hat Update Infrastructure 3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In