pulp-admin on RHUI fails with "error_message": "Authentication with username admin failed: invalid username or password".

Solution Verified - Updated -

Environment

  • Red Hat Update Infrastructure 3.0

Issue

  • pulp-admin failing with invalid credentails error:
# pulp-admin -u admin -p <pulpAdminPassword> repo list
"error_message": "Authentication with username admin failed: invalid username or password"

Resolution

  • Verify if the pulp-admin's password being used is correct:
[root@rhua ~]# cat /etc/rhui-installer/answers.yaml | grep rhui_manager_password
rhui_manager_password: eGqxQSfSTibGjrS6tf3naWYFM6znVaFV     <===== These passwords should match.

[root@rhua ~]# cat /etc/pulp/server.conf|grep default_password
default_password: eGqxQSfSTibGjrS6tf3naWYFM6znVaFV     <===== These passwords should match.

[root@rhua ~]# pulpAdminPassword=$(grep ^default_password /etc/pulp/server.conf | cut -d' ' -f2)
[root@rhua ~]# echo $pulpAdminPassword
eGqxQSfSTibGjrS6tf3naWYFM6znVaFV          <===== These passwords should match.
  • Try resetting the admin user's password through rhui-manager by referring this documentation.

Root Cause

  • Invalid password used to authorize pulp-admin.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments