Project

General

Profile

Actions

Bug #19962

closed

500 Internal Error - Candlepin

Added by Clayton Cowart over 7 years ago. Updated over 6 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Virt-who fails with 500 Internal Error when trying to send to candlepin.

Production.log shows:

2017-06-07 03:21:42 8d7636c6 [katello/cp_proxy] [E] NoMethodError: undefined method `string' for #<PhusionPassenger::Utils::TeeInput:0x007fd38f5fcdb8> | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.0.2/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb:117:in `async_hypervisors_update'


Files

production.tar.gz production.tar.gz 203 KB Clayton Cowart, 06/07/2017 07:48 PM

Related issues 1 (0 open1 closed)

Related to Katello - Bug #19963: Hypervisor can't report to katello ClosedSean O'Keeffe06/08/2017Actions
Actions #2

Updated by Clayton Cowart over 7 years ago

  • Description updated (diff)
Actions #3

Updated by Mario Gamboa over 7 years ago

  • Related to Bug #19963: Hypervisor can't report to katello added
Actions #4

Updated by Mario Gamboa over 7 years ago

fixed with this patch

diff --git a/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb b/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb
index 0d53b1c..5dd509b 100644
--- a/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb
+++ b/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb
@ -114,7 +114,7 @ module Katello # Note that this request comes in as content-type 'text/plain' so that # tomcat won't parse the json. Here we just pass the plain body through to candlepin
def async_hypervisors_update
- raw_json = request.body.string
+ raw_json = request.body.read
task = Katello::Resources::Candlepin::Consumer.async_hypervisors(params[:owner], raw_json)
async_task(::Actions::Katello::Host::Hypervisors, nil, :task_id => task['id'])

Actions #5

Updated by Daniel Lobato Garcia over 7 years ago

  • Status changed from New to Duplicate

Should this be a duplicate of #19963? It looks like the same error. I'm closing it as dupe just in case, feel free to reopen if they are different.

Actions

Also available in: Atom PDF