After installing RHUI4, login fails with rhui-manager.

Solution Verified - Updated -

Issue

After installing RHUI4, login fails with rhui-manager.
username/password is correct.

# rhui-manager
<snip>
RHUI Username: admin
RHUI Password:
Invalid login, please check the authentication credentials and try again.


# less /root/.rhui/rhui.log

<snip>
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/rhui/tools/launcher.py", line 136, in _pulp_api
    auth.login(pulp_api, prompt)
  File "/usr/lib/python3.6/site-packages/rhui/tools/auth.py", line 71, in login
    cookies = _login(pulp, prompt)
  File "/usr/lib/python3.6/site-packages/rhui/tools/auth.py", line 127, in _login
    credentials = pulp.login(username, password)
  File "/usr/lib/python3.6/site-packages/rhui/tools/pulp_api.py", line 250, in login
    raise RhuiException(error_code=error_codes.RHUI0006, message=str(e), host=auth_url)
rhui.common.exceptions.RhuiException: Failed to connect to http://localhost:24817/auth/login/: HTTPConnectionPool(host='<proxy-server>', port
=8080): Max retries exceeded with url: http://localhost:24817/auth/login/ (Caused by ProxyError('Cannot connect to proxy.', NewConnectionErro
r('<urllib3.connection.HTTPConnection object at 0x7fc83dd72588>: Failed to establish a new connection: [Errno 113] No route to host',))).
2022-09-26 18:39:58,691 - Connecting to RHUA [http://localhost:24817]...
2022-09-26 18:40:01,357 - No CSRF middleware token found in HTTP response body.
2022-09-26 18:40:01,752 - Connecting to RHUA [http://localhost:24817]...
2022-09-26 18:40:02,161 - Successfully connected to [http://localhost:24817].

Environment

Red Hat Update Infrastructure 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content