Error running pulp-manage-db

Problem:
I can’t run the command pulp-manage-db, it returns the error below.

[root@lum-ifc-infra-automa-01 ~]# su - apacheLast login: Mon Jun 7 09:44:36 -03 2021 on pts/0
-bash-4.2$ pulp-manage-db
Traceback (most recent call last):
File “/bin/pulp-manage-db”, line 9, in
load_entry_point(‘pulp-server==2.21.5’, ‘console_scripts’, ‘pulp-manage-db’)()
File “/usr/lib/python2.7/site-packages/pulp/server/db/manage.py”, line 294, in main
_logger.critical(str(e))
AttributeError: ‘NoneType’ object has no attribute ‘critical’

Foreman and Proxy versions:
[root@lum-ifc-infra-automa-01 ~]# rpm -qa | grep foreman
foreman-installer-2.3.4-1.el7.noarch
foreman-vmware-2.3.4-1.el7.noarch
tfm-rubygem-foreman_remote_execution-4.2.2-1.fm2_3.el7.noarch
lum-ifc-infra-automa-01.ifc.lum-foreman-proxy-client-1.0-1.noarch
foreman-debug-2.3.4-1.el7.noarch
foreman-gce-2.3.4-1.el7.noarch
foreman-release-2.3.4-1.el7.noarch
tfm-rubygem-hammer_cli_foreman-2.3.2-1.el7.noarch
foreman-ec2-2.3.4-1.el7.noarch
foreman-service-2.3.4-1.el7.noarch
tfm-rubygem-hammer_cli_foreman_docker-0.0.7-1.el7.noarch
tfm-rubygem-foreman_remote_execution_core-1.4.0-1.el7.noarch
foreman-2.3.4-1.el7.noarch
foreman-cli-2.3.4-1.el7.noarch
foreman-postgresql-2.3.4-1.el7.noarch
foreman-proxy-2.3.4-1.el7.noarch
tfm-rubygem-hammer_cli_foreman_tasks-0.0.15-1.fm2_2.el7.noarch
tfm-rubygem-foreman-tasks-3.0.5-1.fm2_3.el7.noarch
lum-ifc-infra-automa-01.ifc.lum-foreman-client-1.0-1.noarch
foreman-installer-katello-2.3.4-1.el7.noarch
rubygem-foreman_maintain-0.7.9-1.el7.noarch
tfm-rubygem-foreman_setup-7.0.0-2.fm2_1.el7.noarch
foreman-dynflow-sidekiq-2.3.4-1.el7.noarch
tfm-rubygem-hammer_cli_foreman_bootdisk-0.3.0-1.el7.noarch
tfm-rubygem-foreman-tasks-core-0.3.4-1.fm2_1.el7.noarch
lum-ifc-infra-automa-01.ifc.lum-foreman-proxy-1.0-1.noarch

Distribution and version:
[root@lum-ifc-infra-automa-01 ~]# cat /etc/*release
CentOS Linux release 7.9.2009 (Core)
NAME=“CentOS Linux”
VERSION=“7 (Core)”
ID=“centos”
ID_LIKE=“rhel fedora”
VERSION_ID=“7”
PRETTY_NAME=“CentOS Linux 7 (Core)”
ANSI_COLOR=“0;31”
CPE_NAME=“cpe:/o:centos:centos:7”
HOME_URL=“https://www.centos.org/
BUG_REPORT_URL=“https://bugs.centos.org/

CENTOS_MANTISBT_PROJECT=“CentOS-7”
CENTOS_MANTISBT_PROJECT_VERSION=“7”
REDHAT_SUPPORT_PRODUCT=“centos”
REDHAT_SUPPORT_PRODUCT_VERSION=“7”

CentOS Linux release 7.9.2009 (Core)
CentOS Linux release 7.9.2009 (Core)