Foreman Katello Plugins installation issue

Hi Team,

I have Installed Foreman Katello 3.3 Version and I’m able to access it. I want to install the Ansible and Openscap Plugins. during the installation of plugins getting below error.

I have tried multiple ways to debug the issue, but we didn’t find any solution.

Could you please anyone help me on this.

Thanks!

Best Regards,
Abdul Hadi

Hi,
Can you please upload the error from /var/log/foreman/production.log file, that can give us more info.

Hi @lstejska,

Please find the production.logs below.

2022-10-10T13:27:18 [I|app|] Rails cache backend: File
2022-10-10T13:27:19 [W|app|] You are trying to replace import_subnets from . Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:20 [W|app|] Setting remote_execution_workers_pool_size has no definition, please define it before using
2022-10-10T13:27:20 [W|app|] Setting host_tasks_workers_pool_size has no definition, please define it before using
2022-10-10T13:27:20 [W|app|] Creating scope :exportable. Overwriting existing method Katello::Repository.exportable.
2022-10-10T13:27:24 [W|app|] Creating scope :completer_scope. Overwriting existing method Organization.completer_scope.
2022-10-10T13:27:25 [W|app|] You are trying to replace view_hosts from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:25 [W|app|] You are trying to replace view_hostgroups from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:25 [W|app|] You are trying to replace edit_hosts from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:25 [W|app|] You are trying to replace edit_hostgroups from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:25 [W|app|] Creating scope :completer_scope. Overwriting existing method Location.completer_scope.
2022-10-10T13:27:25 [W|app|] You are trying to replace edit_hosts from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:25 [W|app|] You are trying to replace view_hosts from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:25 [W|app|] You are trying to replace edit_hostgroups from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:25 [W|app|] You are trying to replace create_oval_policies from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:26 [W|app|] Creating scope :execution_scope. Overwriting existing method Host::Managed.execution_scope.
2022-10-10T13:27:27 [W|app|] Scoped order is ignored, it’s forced to be batch order.
2022-10-10T13:27:28 [W|app|] ignoring associations organization_ids, location_ids audit definition for ForemanOpenscap::ArfReport, the resource is not audited
2022-10-10T13:27:28 [W|app|] Scoped order is ignored, it’s forced to be batch order.
2022-10-10T13:27:28 [W|app|] Scoped order is ignored, it’s forced to be batch order.
2022-10-10T13:27:39 [I|app|] Rails cache backend: File
2022-10-10T13:27:40 [W|app|] You are trying to replace import_subnets from . Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:41 [W|app|] Setting remote_execution_workers_pool_size has no definition, please define it before using
2022-10-10T13:27:41 [W|app|] Setting host_tasks_workers_pool_size has no definition, please define it before using
2022-10-10T13:27:41 [W|app|] Creating scope :exportable. Overwriting existing method Katello::Repository.exportable.
2022-10-10T13:27:45 [W|app|] Creating scope :completer_scope. Overwriting existing method Organization.completer_scope.
2022-10-10T13:27:46 [W|app|] You are trying to replace view_hosts from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:46 [W|app|] You are trying to replace view_hostgroups from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:46 [W|app|] You are trying to replace edit_hosts from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:46 [W|app|] You are trying to replace edit_hostgroups from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:46 [W|app|] Creating scope :completer_scope. Overwriting existing method Location.completer_scope.
2022-10-10T13:27:47 [W|app|] You are trying to replace edit_hosts from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:47 [W|app|] You are trying to replace view_hosts from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:47 [W|app|] You are trying to replace edit_hostgroups from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:47 [W|app|] You are trying to replace create_oval_policies from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:47 [W|app|] Creating scope :execution_scope. Overwriting existing method Host::Managed.execution_scope.
2022-10-10T13:27:48 [W|app|] Scoped order is ignored, it’s forced to be batch order.
2022-10-10T13:27:49 [W|app|] ignoring associations organization_ids, location_ids audit definition for ForemanOpenscap::ArfReport, the resource is not audited
2022-10-10T13:27:49 [W|app|] Scoped order is ignored, it’s forced to be batch order.
2022-10-10T13:27:49 [W|app|] Scoped order is ignored, it’s forced to be batch order.
2022-10-10T13:30:10 [I|app|] Rails cache backend: File
2022-10-10T13:30:11 [W|app|] You are trying to replace import_subnets from . Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:30:12 [W|app|] Setting remote_execution_workers_pool_size has no definition, please define it before using
2022-10-10T13:30:12 [W|app|] Setting host_tasks_workers_pool_size has no definition, please define it before using
2022-10-10T13:30:13 [W|app|] Creating scope :exportable. Overwriting existing method Katello::Repository.exportable.
2022-10-10T13:30:16 [W|app|] Creating scope :completer_scope. Overwriting existing method Organization.completer_scope.
2022-10-10T13:30:17 [W|app|] You are trying to replace view_hosts from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:30:17 [W|app|] You are trying to replace view_hostgroups from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:30:17 [W|app|] You are trying to replace edit_hosts from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:30:17 [W|app|] You are trying to replace edit_hostgroups from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:30:17 [W|app|] Creating scope :completer_scope. Overwriting existing method Location.completer_scope.
2022-10-10T13:30:17 [W|app|] You are trying to replace edit_hosts from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:30:17 [W|app|] You are trying to replace view_hosts from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:30:17 [W|app|] You are trying to replace edit_hostgroups from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:30:17 [W|app|] You are trying to replace create_oval_policies from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:30:18 [W|app|] Creating scope :execution_scope. Overwriting existing method Host::Managed.execution_scope.
2022-10-10T13:30:19 [W|app|] Scoped order is ignored, it’s forced to be batch order.
2022-10-10T13:30:20 [W|app|] ignoring associations organization_ids, location_ids audit definition for ForemanOpenscap::ArfReport, the resource is not audited
2022-10-10T13:30:20 [W|app|] Scoped order is ignored, it’s forced to be batch order.
2022-10-10T13:30:20 [W|app|] Scoped order is ignored, it’s forced to be batch order.
2022-10-10T14:00:12 [I|app|] Rails cache backend: File
2022-10-10T14:00:13 [W|app|] You are trying to replace import_subnets from . Adding allowed actions from plugin permissions to the existing one.
2022-10-10T14:00:14 [W|app|] Setting remote_execution_workers_pool_size has no definition, please define it before using
2022-10-10T14:00:15 [W|app|] Setting host_tasks_workers_pool_size has no definition, please define it before using
2022-10-10T14:00:15 [W|app|] Creating scope :exportable. Overwriting existing method Katello::Repository.exportable.
2022-10-10T14:00:20 [W|app|] Creating scope :completer_scope. Overwriting existing method Organization.completer_scope.
2022-10-10T14:00:20 [W|app|] You are trying to replace view_hosts from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T14:00:20 [W|app|] You are trying to replace view_hostgroups from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T14:00:20 [W|app|] You are trying to replace edit_hosts from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T14:00:20 [W|app|] You are trying to replace edit_hostgroups from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T14:00:21 [W|app|] Creating scope :completer_scope. Overwriting existing method Location.completer_scope.
2022-10-10T14:00:21 [W|app|] You are trying to replace edit_hosts from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T14:00:21 [W|app|] You are trying to replace view_hosts from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T14:00:21 [W|app|] You are trying to replace edit_hostgroups from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T14:00:21 [W|app|] You are trying to replace create_oval_policies from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T14:00:22 [W|app|] Creating scope :execution_scope. Overwriting existing method Host::Managed.execution_scope.
2022-10-10T14:00:24 [W|app|] Scoped order is ignored, it’s forced to be batch order.
2022-10-10T14:00:24 [W|app|] ignoring associations organization_ids, location_ids audit definition for ForemanOpenscap::ArfReport, the resource is not audited
2022-10-10T14:00:24 [W|app|] Scoped order is ignored, it’s forced to be batch order.
2022-10-10T14:00:25 [W|app|] Scoped order is ignored, it’s forced to be batch order.

I’m unable to upload the file. for that reason i have pasted log file here.

If you need any other info, please let me know.

I will need the part in log with the error message, can you upload the file or paste here the log part with the error stack trace?

I’ve moved this from Development to Support since this is a user installation.

Hi @lstejska.

Please find the error message.

[DEBUG ] [configure] Automatic Parameter Lookup of ‘foreman_proxy::log_buffer_errors’
Line 6178: 2022-10-10 15:55:54 [DEBUG ] [configure] Searching for “foreman_proxy::log_buffer_errors”
Line 6188: 2022-10-10 15:55:54 [DEBUG ] [configure] No such key: “foreman_proxy::log_buffer_errors”
Line 6196: 2022-10-10 15:55:54 [DEBUG ] [configure] Found key: “foreman_proxy::log_buffer_errors” value: 1000
Line 16345: 2022-10-10 16:05:43 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[my_url]: Could not evaluate: Error making GET request to Foreman at my_url/api/v2/smart_proxies: Response: 500 Internal Server Error: Check /var/log/foreman/production.log on my_url for detailed information
9

This is error from the installer, i need error with stack trace from the /var/log/foreman/production.log, see the message Check /var/log/foreman/production.log on my_url for detailed information

And reading that message - why is it calling my_url?

Hi @lstejska,

I have hidden my company URL.

1 Like

Oh cool then, I was worried it’s some misconfiguration

Sounds like you already have a Foreman server running and installed with the “–scenario katello” and with a working remote execution script plugin?
So if you just want to enable some more plugins try something like this?

foreman-installer \
--enable-foreman-cli-openscap \
--enable-foreman-plugin-openscap \
--enable-foreman-proxy-plugin-openscap \
--enable-foreman-cli-ansible \
--enable-foreman-plugin-ansible \
--enable-foreman-proxy-plugin-ansible \

I have run the script but still facing same issue.

Please help out on this.

Sounds like this is a new install, probably faster to redeploy from scratch, including all plugins needed. If you can’t add a simple plugin to the installation, the installation must be broken.

Hi @tedevil,

Could you please share the installation steps including plugins (Ansible & Openscap).

As mentioned before and in this error message you have to check /var/log/foreman/production.log for the detailed error message and stack trace of this error. That would tell what has happened and what has failed.

Hi @gvde,

Please find the production.logs below.

2022-10-10T13:27:18 [I|app|] Rails cache backend: File
2022-10-10T13:27:19 [W|app|] You are trying to replace import_subnets from . Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:20 [W|app|] Setting remote_execution_workers_pool_size has no definition, please define it before using
2022-10-10T13:27:20 [W|app|] Setting host_tasks_workers_pool_size has no definition, please define it before using
2022-10-10T13:27:20 [W|app|] Creating scope :exportable. Overwriting existing method Katello::Repository.exportable.
2022-10-10T13:27:24 [W|app|] Creating scope :completer_scope. Overwriting existing method Organization.completer_scope.
2022-10-10T13:27:25 [W|app|] You are trying to replace view_hosts from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:25 [W|app|] You are trying to replace view_hostgroups from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:25 [W|app|] You are trying to replace edit_hosts from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:25 [W|app|] You are trying to replace edit_hostgroups from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:25 [W|app|] Creating scope :completer_scope. Overwriting existing method Location.completer_scope.
2022-10-10T13:27:25 [W|app|] You are trying to replace edit_hosts from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:25 [W|app|] You are trying to replace view_hosts from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:25 [W|app|] You are trying to replace edit_hostgroups from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:25 [W|app|] You are trying to replace create_oval_policies from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:26 [W|app|] Creating scope :execution_scope. Overwriting existing method Host::Managed.execution_scope.
2022-10-10T13:27:27 [W|app|] Scoped order is ignored, it’s forced to be batch order.
2022-10-10T13:27:28 [W|app|] ignoring associations organization_ids, location_ids audit definition for ForemanOpenscap::ArfReport, the resource is not audited
2022-10-10T13:27:28 [W|app|] Scoped order is ignored, it’s forced to be batch order.
2022-10-10T13:27:28 [W|app|] Scoped order is ignored, it’s forced to be batch order.
2022-10-10T13:27:39 [I|app|] Rails cache backend: File
2022-10-10T13:27:40 [W|app|] You are trying to replace import_subnets from . Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:41 [W|app|] Setting remote_execution_workers_pool_size has no definition, please define it before using
2022-10-10T13:27:41 [W|app|] Setting host_tasks_workers_pool_size has no definition, please define it before using
2022-10-10T13:27:41 [W|app|] Creating scope :exportable. Overwriting existing method Katello::Repository.exportable.
2022-10-10T13:27:45 [W|app|] Creating scope :completer_scope. Overwriting existing method Organization.completer_scope.
2022-10-10T13:27:46 [W|app|] You are trying to replace view_hosts from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:46 [W|app|] You are trying to replace view_hostgroups from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:46 [W|app|] You are trying to replace edit_hosts from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:46 [W|app|] You are trying to replace edit_hostgroups from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:46 [W|app|] Creating scope :completer_scope. Overwriting existing method Location.completer_scope.
2022-10-10T13:27:47 [W|app|] You are trying to replace edit_hosts from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:47 [W|app|] You are trying to replace view_hosts from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:47 [W|app|] You are trying to replace edit_hostgroups from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:47 [W|app|] You are trying to replace create_oval_policies from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:27:47 [W|app|] Creating scope :execution_scope. Overwriting existing method Host::Managed.execution_scope.
2022-10-10T13:27:48 [W|app|] Scoped order is ignored, it’s forced to be batch order.
2022-10-10T13:27:49 [W|app|] ignoring associations organization_ids, location_ids audit definition for ForemanOpenscap::ArfReport, the resource is not audited
2022-10-10T13:27:49 [W|app|] Scoped order is ignored, it’s forced to be batch order.
2022-10-10T13:27:49 [W|app|] Scoped order is ignored, it’s forced to be batch order.
2022-10-10T13:30:10 [I|app|] Rails cache backend: File
2022-10-10T13:30:11 [W|app|] You are trying to replace import_subnets from . Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:30:12 [W|app|] Setting remote_execution_workers_pool_size has no definition, please define it before using
2022-10-10T13:30:12 [W|app|] Setting host_tasks_workers_pool_size has no definition, please define it before using
2022-10-10T13:30:13 [W|app|] Creating scope :exportable. Overwriting existing method Katello::Repository.exportable.
2022-10-10T13:30:16 [W|app|] Creating scope :completer_scope. Overwriting existing method Organization.completer_scope.
2022-10-10T13:30:17 [W|app|] You are trying to replace view_hosts from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:30:17 [W|app|] You are trying to replace view_hostgroups from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:30:17 [W|app|] You are trying to replace edit_hosts from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:30:17 [W|app|] You are trying to replace edit_hostgroups from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:30:17 [W|app|] Creating scope :completer_scope. Overwriting existing method Location.completer_scope.
2022-10-10T13:30:17 [W|app|] You are trying to replace edit_hosts from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:30:17 [W|app|] You are trying to replace view_hosts from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:30:17 [W|app|] You are trying to replace edit_hostgroups from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:30:17 [W|app|] You are trying to replace create_oval_policies from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T13:30:18 [W|app|] Creating scope :execution_scope. Overwriting existing method Host::Managed.execution_scope.
2022-10-10T13:30:19 [W|app|] Scoped order is ignored, it’s forced to be batch order.
2022-10-10T13:30:20 [W|app|] ignoring associations organization_ids, location_ids audit definition for ForemanOpenscap::ArfReport, the resource is not audited
2022-10-10T13:30:20 [W|app|] Scoped order is ignored, it’s forced to be batch order.
2022-10-10T13:30:20 [W|app|] Scoped order is ignored, it’s forced to be batch order.
2022-10-10T14:00:12 [I|app|] Rails cache backend: File
2022-10-10T14:00:13 [W|app|] You are trying to replace import_subnets from . Adding allowed actions from plugin permissions to the existing one.
2022-10-10T14:00:14 [W|app|] Setting remote_execution_workers_pool_size has no definition, please define it before using
2022-10-10T14:00:15 [W|app|] Setting host_tasks_workers_pool_size has no definition, please define it before using
2022-10-10T14:00:15 [W|app|] Creating scope :exportable. Overwriting existing method Katello::Repository.exportable.
2022-10-10T14:00:20 [W|app|] Creating scope :completer_scope. Overwriting existing method Organization.completer_scope.
2022-10-10T14:00:20 [W|app|] You are trying to replace view_hosts from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T14:00:20 [W|app|] You are trying to replace view_hostgroups from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T14:00:20 [W|app|] You are trying to replace edit_hosts from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T14:00:20 [W|app|] You are trying to replace edit_hostgroups from foreman_ansible. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T14:00:21 [W|app|] Creating scope :completer_scope. Overwriting existing method Location.completer_scope.
2022-10-10T14:00:21 [W|app|] You are trying to replace edit_hosts from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T14:00:21 [W|app|] You are trying to replace view_hosts from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T14:00:21 [W|app|] You are trying to replace edit_hostgroups from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T14:00:21 [W|app|] You are trying to replace create_oval_policies from foreman_openscap. Adding allowed actions from plugin permissions to the existing one.
2022-10-10T14:00:22 [W|app|] Creating scope :execution_scope. Overwriting existing method Host::Managed.execution_scope.
2022-10-10T14:00:24 [W|app|] Scoped order is ignored, it’s forced to be batch order.
2022-10-10T14:00:24 [W|app|] ignoring associations organization_ids, location_ids audit definition for ForemanOpenscap::ArfReport, the resource is not audited
2022-10-10T14:00:24 [W|app|] Scoped order is ignored, it’s forced to be batch order.
2022-10-10T14:00:25 [W|app|] Scoped order is ignored, it’s forced to be batch order.

You need to post the part of production.log which contains the error message. The error message above was at 2022-10-10 16:05:43 and your production.log ends excerpt above ends before at 2022-10-10T14:00:25.