Bug #32936
closedError when trying to restart Traces: TypeError in Katello::RemoteExecutionController#create no implicit conversion of nil into String
Description
Host details page > Traces tab:
When I select a Trace and click Restart Selected, I get that rails error.
Stack trace (no pun intended):
20:12:56 rails.1 | b5e92d58 | TypeError (no implicit conversion of nil into String):
20:12:56 rails.1 | b5e92d58 |
20:12:56 rails.1 | b5e92d58 | /home/vagrant/katello/app/controllers/katello/remote_execution_controller.rb:34:in `hosts'
20:12:56 rails.1 | b5e92d58 | /home/vagrant/katello/app/controllers/katello/remote_execution_controller.rb:30:in `prepare_composer'
20:12:56 rails.1 | b5e92d58 | /home/vagrant/katello/app/controllers/katello/remote_execution_controller.rb:12:in `create'
20:12:56 rails.1 | b5e92d58 | app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone'
20:12:56 rails.1 | b5e92d58 | app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
20:12:56 rails.1 | b5e92d58 | app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
20:12:56 rails.1 | b5e92d58 | /home/vagrant/katello/lib/katello/middleware/organization_created_enforcer.rb:18:in `call'
20:12:56 rails.1 | b5e92d58 | /home/vagrant/katello/lib/katello/middleware/event_daemon.rb:10:in `call'
20:12:56 rails.1 | b5e92d58 | lib/foreman/middleware/telemetry.rb:10:in `call'
20:12:56 rails.1 | b5e92d58 | lib/foreman/middleware/catch_json_parse_errors.rb:9:in `call'
20:12:56 rails.1 | b5e92d58 | lib/foreman/middleware/logging_context_session.rb:22:in `call'
20:12:56 rails.1 | b5e92d58 | lib/foreman/middleware/logging_context_request.rb:11:in `call'
20:12:56 rails.1 | b5e92d58 | /home/vagrant/katello/lib/katello/prevent_json_parsing.rb:12:in `call'
20:12:56 rails.1 | 2021-07-01T20:12:56 [I|app|ce974c34] Started GET "/sockjs-node/info?t=1625170376548" for 192.168.122.1 at 2021-07-01 20:12:56 +0000
20:12:56 rails.1 | 2021-07-01T20:12:56 [F|app|ce974c34]
Updated by The Foreman Bot over 3 years ago
- Status changed from New to Ready For Testing
- Assignee set to Jonathon Turel
- Pull request https://github.com/Katello/katello/pull/9440 added
Updated by The Foreman Bot over 3 years ago
- Fixed in Releases Katello 4.2.0 added
Updated by Jonathon Turel over 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|a186876abe8ba1218834d403e65d4fa4cde59a4e.
Updated by James Jeffers over 3 years ago
- Has duplicate Bug #32929: Unable to restart or reboot service/system after update in content hosts / traces added