Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-4869

httplib request failed: ConnectionRefusedError: [Errno 111] Connection refused

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Yes
    • None
    • rhel-idm-ipa
    • ssg_idm
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None
    • 57,005

      Description of problem: httplib request failed: ConnectionRefusedError: [Errno 111] Connection refused

      Version-Release number of selected component (if applicable):
      pki-ca-10.12.0-2.module+el8.6.0+14115+8b467244.noarch
      pki-kra-10.12.0-2.module+el8.6.0+14115+8b467244.noarch
      pki-server-10.12.0-2.module+el8.6.0+14115+8b467244.noarch
      ipa-server-4.9.8-7.module+el8.6.0+14337+19b76db2.x86_64
      389-ds-base-1.4.3.28-6.module+el8.6.0+14129+983ceada.x86_64
      selinux-policy-3.14.3-94.el8.noarch

      How reproducible:
      Always

      Steps to Reproduce:
      1. Install IPA server and check the ipaserver-install.log file

      Actual results:
      Although the IPA server install is successful, there is traceback message in the install log due to which httplib request fails

      2022-03-21T17:21:50Z DEBUG [24/29]: importing IPA certificate profiles
      2022-03-21T17:21:50Z DEBUG request GET https://ip-addr.testrealm.test:443/ca/rest/account/login
      2022-03-21T17:21:50Z DEBUG request body ''
      2022-03-21T17:21:50Z DEBUG httplib request failed:
      Traceback (most recent call last):
      File "/usr/lib/python3.6/site-packages/ipapython/dogtag.py", line 272, in _httplib_request
      conn.request(method, path, body=request_body, headers=headers)
      File "/usr/lib64/python3.6/http/client.py", line 1273, in request
      self._send_request(method, url, body, headers, encode_chunked)
      File "/usr/lib64/python3.6/http/client.py", line 1319, in _send_request
      self.endheaders(body, encode_chunked=encode_chunked)
      File "/usr/lib64/python3.6/http/client.py", line 1268, in endheaders
      self._send_output(message_body, encode_chunked=encode_chunked)
      File "/usr/lib64/python3.6/http/client.py", line 1044, in _send_output
      self.send(msg)
      File "/usr/lib64/python3.6/http/client.py", line 982, in send
      self.connect()
      File "/usr/lib64/python3.6/http/client.py", line 1433, in connect
      super().connect()
      File "/usr/lib64/python3.6/http/client.py", line 954, in connect
      (self.host,self.port), self.timeout, self.source_address)
      File "/usr/lib64/python3.6/socket.py", line 724, in create_connection
      raise err
      File "/usr/lib64/python3.6/socket.py", line 713, in create_connection
      sock.connect(sa)
      ConnectionRefusedError: [Errno 111] Connection refused
      2022-03-21T17:21:50Z DEBUG Overriding CA port: cannot connect to 'https://ip-addr.testrealm.test:443/ca/rest/account/login': [Errno 111] Connection refused

      Expected results:
      Fix the issue causing the traceback.

      Additional info:

              frenaud@redhat.com Florence Renaud
              sumenon@redhat.com Sudhir Menon
              Florence Renaud Florence Renaud
              IPA QE Bot IPA QE Bot
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: