There was an issue with the backend service pulp3

Problem:
When adding a repository to a product in Foreman-Katello UI, I am met with the error

There was an issue with the backend service pulp3: Pulp redis connection issue at https://katello.example.com/pulp/api/v3

Logs:
journalctl pulpcore-api gives

[INFO] Listening at: http://127.0.0.1:24817
[INFO] using worker: sync
[INFO] booting worker with PID: 2312
pulp: pulpcore.app.serializers.base:WARNING: Please provide either ‘view_name’ or 'vi
127.0.0.1 - - “GET /pulp/api/v3/status HTTP:/1.1” 301 0"
pulp: pulpcore.app.views.status: Connection to Redis failed during status check

what’s the version of katello and foreman ?

1 Like

I have foreman 2.1.3 and Katello 3.16

you did upgrade or fresh installation ?

1 Like

Also run : foreman-maintain health check

1 Like

Please run below and share results.

#su - postgres

$psql pulpcore -c ‘SHOW SERVER_ENCODING’ -U postgres (make sure to check single quote if you copy paste this command)

It returns,

> Following services are not running: pulpcore-resource-manager, pulpcore-worker@*
-----------------------------------------------------------------------------------
continue with step [Restart applicable services]?, [y(yes), n(no), q(quit)]

continuing with yes results in
Server response check failed

This command returned
UTF8
(1 row)

fresh installation or upgrade ? from which version to which version ?

Its a fresh install

sorry for late reply , I recommend fresh installation but set environment variable to utf8 before installation , email me asad@bluewire.io if you need help .

Thanks for your reply.

Specifically how should i set the environment variable to utf8?

nano /etc/environment (you can use vi also ) add these two lines in that file.

LANG=en_US.utf-8

LC_ALL=en_US.utf-8

nano /etc/environment

LANG=en_US.utf-8
LC_ALL=en_US.utf-8

Also sethostname

hostnamectl set-hostname local.localdomain

yum -y localinstall https://yum.theforeman.org/releases/2.2/el7/x86_64/foreman-release.rpm
yum -y localinstall https://fedorapeople.org/groups/katello/releases/yum/3.17/katello/el7/x86_64/katello-repos-latest.rpm
yum -y localinstall https://yum.puppet.com/puppet6-release-el-7.noarch.rpm
yum -y install epel-release centos-release-scl-rh

timedatectl list-timezones

timedatectl set-timezone America/New_York

yum -y update

yum -y install katello

foreman-installer --scenario katello

this is complete foreman installation, once completed you will see user / password
make sure your firewall is off or add rules.
also disable selinux if you are not using.

This should fix it. It’s being backported to Foreman 2.1.4 and the next 2.2 RC.

https://github.com/theforeman/puppet-pulpcore/commit/48b63dd75bc52357d56f16f28850812eb337e78e

2 Likes