Project

General

Profile

Actions

Bug #21155

open

stack trace when client calls 'enabled_repos'

Added by Brad Buckingham over 7 years ago. Updated 8 months ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1494207

Description of problem:

Occasionally, clients may receive a 500 when calling a PUT on '/rhsm/systems/<UUID>/enabled_repos'. Short version of error is:

NoMethodError: undefined method `save_bound_repos_by_path!' for nil:NilClass | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.144/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb:176:in `block in enabled_repos' | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:72:in `as' | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:78:in `as_anonymous_admin' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.144/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb:175:in `enabled_repos'

See attachment for full error from log, including request params.

I'm not sure how to reproduce this issue, I saw it while looking for an unrelated issue.

Actions

Also available in: Atom PDF