A smart proxy seems to have been refreshed without pulpcore being running. You may want to

Problem:

While adding new repository in Katello , while click on save, getting following error

A smart proxy seems to have been refreshed without pulpcore being running. You may want to

Not sure You may want to what !!!. all service for pulpcore is running

Expected outcome:
It should save repo

Foreman and Proxy versions:
Foreman -2.2.3
Proxy 2.2.3

Foreman and Proxy plugin versions:
dynflow_core-0.2.6
pulp-2.1.0
Distribution and version:

Other relevant data:
/opt/theforeman/tfm/root/usr/share/gems/gems/puma-4.3.3/lib/puma/server.rb:682:in handle_request' | /opt/theforeman/tfm/root/usr/share/gems/gems/puma-4.3.3/lib/puma/server.rb:472:in process_client’
| /opt/theforeman/tfm/root/usr/share/gems/gems/puma-4.3.3/lib/puma/server.rb:328:in block in run' | /opt/theforeman/tfm/root/usr/share/gems/gems/puma-4.3.3/lib/puma/thread_pool.rb:134:in block in spawn_thread’
| [ concurrent-ruby ]
2021-05-14T20:30:14 [I|bac|] Task {label: Actions::Katello::Repository::CreateRoot, id: 26bcbb16-e434-4a8e-9c27-18e969fdff55, execution_plan_id: 6c67bc78-5ec5-4666-bbcd-6eee9f48b184} state changed: stopped result: error
2021-05-14T20:30:14 [I|bac|] Task {label: Actions::Katello::Repository::CreateRoot, id: 26bcbb16-e434-4a8e-9c27-18e969fdff55, execution_plan_id: 6c67bc78-5ec5-4666-bbcd-6eee9f48b184} state changed: stopped result: error
2021-05-14T20:30:14 [E|app|] Katello::Errors::PulpcoreMissingCapabilities: A smart proxy seems to have been refreshed without pulpcore being running. You may want to
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.3/app/models/katello/concerns/smart_proxy_extensions.rb:185:in fix_pulp3_capabilities' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.3/app/lib/actions/katello/pulp_selector.rb:6:in plan_pulp_action’
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.3/app/lib/actions/katello/repository/create.rb:24:in block in plan' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/execution_plan.rb:384:in switch_flow’
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action.rb:422:in sequence' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.3/app/lib/actions/katello/repository/create.rb:23:in plan’
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action.rb:514:in block (3 levels) in execute_plan' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:27:in pass

Seems that error message is quite incomplete!

The original author is out today, so I wasn’t able to ask what he meant. But you can try a couple things:

  • restart pulpcore services on the smart proxy: sudo systemctl restart pulpcore*
  • if that doesn’t work, try rerunning foreman-installer

Let us know if that helps.

Tried both, but same issue. Tried foreman-installer didt solve the issue.

Tried fresh install of Katello 4.0 with DB on different node. In the doc it says create only 2 databes , foreman and candlepin, did not say anything about pulpcore. Tried the installation specifying the db details as mentioned in doc, It fails for pulpcore, also tried creating the pulpcore db before running installer, Pulpcore db migrate fails. The documentation is not clear. Is pulcore created in local db or remote ?

  1. Create two databases and dedicated roles, one for Foreman and one for Candlepin:

CREATE USER “foreman” WITH PASSWORD ‘Foreman_Password’; CREATE USER “candlepin” WITH PASSWORD ‘Candlepin_Password’; CREATE DATABASE foreman OWNER foreman; CREATE DATABASE candlepin OWNER candlepin;
foreman-installer --scenario katello
–foreman-db-host postgres.example.com
–foreman-db-password Foreman_Password
–foreman-db-database foreman
–katello-candlepin-db-host postgres.example.com
–katello-candlepin-db-name candlepin
–katello-candlepin-db-password Candlepin_Password
–katello-candlepin-manage-db false
–foreman-proxy-content-pulpcore-manage-postgresql false
–foreman-proxy-content-pulpcore-postgresql-host postgres.example.com
–foreman-proxy-content-pulpcore-postgresql-db-name pulpcore
–foreman-proxy-content-pulpcore-postgresql-password Pulpcore_Password

Error

valuate the resource (1593 of 1704)
2021-05-17 01:04:18 [DEBUG ] [configure] Execpulpcore-manager migrate --noinput: Executing check ‘pulpcore-manager migrate --plan | grep “No planned migration operations”’
2021-05-17 01:04:18 [DEBUG ] [configure] Executing with uid=pulp: ‘pulpcore-manager migrate --plan | grep “No planned migration operations”’
2021-05-17 01:04:19 [DEBUG ] [configure] /Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]/unless: Traceback (most recent call last):
2021-05-17 01:04:19 [DEBUG ] [configure] /Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]/unless: File “/usr/bin/pulpcore-manager”, line 11, in
2021-05-17 01:04:19 [DEBUG ] [configure] /Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]/unless: load_entry_point(‘pulpcore==3.9.1’, ‘console_scripts’, ‘pulpcore-manager’)()
2021-05-17 01:04:19 [DEBUG ] [configure] /Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]/unless: File “/usr/lib/python3.6/site-packages/pulpcore/app/manage.py”, line 11, in manage
2021-05-17 01:04:19 [DEBUG ] [configure] /Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]/unless: execute_from_command_line(sys.argv)
2021-05-17 01:04:19 [DEBUG ] [configure] /Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]/unless: File “/usr/lib/python3.6/site-packages/django/core/management/init.py”, line 381, in execute_from_command_line
2021-05-17 01:04:19 [DEBUG ] [configure] /Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]/unless: utility.execute()
2021-05-17 01:04:19 [DEBUG ] [configure] /Stage[main]/Pulpcore::Data

Can you share the link to the doc you’re following? Are you trying to configure Katello to use external databases?

https://docs.theforeman.org/2.4/Installing_Server_on_Red_Hat/index-katello.html#preparing-a-host-for-external-databases_foreman

in that

4.9.3. Installing PostgreSQL

and 4.9.4. Configuring Satellite to use External Databases

Yes, trying to use external databases:

1, Created foreman, candleoin databases and tried, it didnt create pulpcore in external db or local postgres

  1. so tried creating pulpcore db in external DB and tried installer, it failed with above error, with puplcore migrate

Not getting a clean install

Also, is Puppet server mandatory, if we disbale puppet-server false , is it ok ?

What is the state of your external postgres DB? Did you check the output of foreman-maintain service status --only postgresql ?

Same issue, so trying same node install, it is also failing with pulpcore
…there is another thread on this…

Its so complicated install process, even simple installation not gng thru,

Installation wenty thru fine, but not getting UI

isplaying the following service(s): [FAIL]
undefined method `enabled?’ for RemoteDB(postgresql:foreman [10]):ForemanMaintain::Utils::Service::RemoteDB

Scenario [Status Services] failed.

The following steps ended up in failing state:

[service-status]

Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist=“service-status”

Can you confirm that the external DB is running and the credentials you supplied to the installer are correct?

yes, its running and installer created all the schema objects in all 3 databases

Got the issue, it was ipables

Both one node and with external DB installation went thru fine.

Summarizing the fix:

  1. mount /tmp nonexec
  2. set umask 0022
  3. Run installer from /tmp or /
  4. This regarding external db conf, and is not mentioned in Doc, In Doc it says to create two databases candlepin and foreman, but didn’t mention about pulpcore. Created pulpcore
2 Likes

We probably need to make those instructions clear re: external databases. As you point out, it can be confusing. Thank you for letting us know.

2 Likes

It doesn’t help if you post the same issue again in various threads.

It also doesn’t help if you post a known problem which has already been posted a few hours ago by someone else.

Spreading the same issue on various topics just creates chaos because in the end noone knows anything anymore what the problem is, what you have tried, what you have changed, … because that’s all spread on multiple topics.

Please: one issue, one topic. Fix one problem at a time. Don’t start something new in an existing topic. The qpid-proton problem obviously has nothing to due with the title of this topic…

And this doesn’t help other people having similar issues if various problems and solutions are mixed in a single topic…

Katello installs for 4.0 and 4.1 are broken due to qpid-proton update in EPEL on EL7

1 Like