I get an error updating servers from Foreman Web Interface

I register my server with foreman with the following steps.

I am doing the following steps with root on the server.

curl --insecure --output katello-ca-consumer-latest.noarch.rpm https://foreman.xx.local/pub/katello-ca-consumer-latest.noarch.rpm
yum localinstall katello-ca-consumer-latest.noarch.rpm -y
subscription-manager register --org=“TBTK” --activationkey=“ak_RHEL8_X”

I can see the packages that need to be updated from the web interface. However, when I want to update the packages from the foreman web interface, I get an error.
How can I manually update errata and packages from the Foreman web interface? What could be the cause of the update error? I need your support in this regard. Thank you for your help.

To register a host manually, I suggest you look at the https://foreman.xx.local/hosts/register page and create a curl registration command with suitable token life time.

For updating packages/errata you need to setup and use Remote Execution → Foreman :: Plugin Manuals