Subscription-manager register fails

Cannot register host with subscription-manager register

Expected outcome:
subscription-manager register adds new host in foreman and server is getting correct repositories

Foreman and Proxy versions:
Foreman: 1.17.1

Foreman and Proxy plugin versions:
Katello: 3.6.0

Other relevant data:
When I’m trying to register either a new host or a already running machine it fails. I made the following steps:

  • subscription-manager register --org=“ORG” --activationkey=“ACTKEY” on the host, this fails with the error:

"Required lock is already taken by other running tasks.
Please inspect their state, fix their errors and resume them.

Required lock: update
Conflicts with tasks:

When I’m looking at that task, it stopped with the result “warning” and printed the following message:



Katello::Errors::CandlepinError: Unable to serialize objects to JSON.

Additional information: Bug #24641: subscription-manager register fails - Katello - Foreman

Martin Angermeier