Remote-execution-cockpit shows black screen with message Sorry Try Again

When i try to start Web Console for a host i get black screen with the message Sorry Try Again.
Remote-execution-cockpit is enabled and cockpit-system package is installed on the managed hosts (RHEL 8 and RHEL 7). It is not working either on RHEL 8 and not on RHEL 7. Is there anything else that has to be set?


Expected outcome:

Foreman and Proxy versions:

  • foreman-3.0.1-1.el7.noarch
  • katello-4.2.1-1.el7.noarch
    Foreman and Proxy plugin versions:
  • tfm-rubygem-foreman_remote_execution-cockpit-4.8.0-1.fm3_0.el7.noarch
    Distribution and version:
    CentOS 7.9
    Other relevant data:

IIRC this should mean that you’re accessing Foreman under a different name than under which it knows itself. The name you use to access Foreman has to match whatever is set in Administer > Settings > General > Foreman URL. I’ve seen this happen when folks were accessing foreman using its ip or an an alias