Created attachment 1086387 [details] reindex The following errors were found when customer upgraded their satellite from Satellite 6.0.8 They can also be reproduced by running # foreman-rake katello:reindex 2015-10-26 02:23:43 [I] Object: #<Katello::ContentViewPuppetEnvironment id: 20, content_view_version_id: 48, environment_id: 2, name: "Cloud-v1.0", pulp_id: "IaaS-Library-Cloud-v1_0", created_at: "2015-05-07 09:56:35", updated_at: "2015-10-15 09:15:01", puppet_environment_id: 10> 2015-10-26 02:23:43 [E] Exception: undefined method `[]' for nil:NilClass 2015-10-26 02:23:43 [E] Stack Trace: /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.73/app/models/katello/glue/pulp/repo.rb:34:in `block (2 levels) in included' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.73/app/lib/katello/lazy_accessor.rb:175:in `instance_eval' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.73/app/lib/katello/lazy_accessor.rb:175:in `run_initializer' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.73/app/lib/katello/lazy_accessor.rb:154:in `lazy_attribute_get' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.73/app/lib/katello/lazy_accessor.rb:74:in `block (2 levels) in lazy_accessor' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.73/app/models/katello/ext/indexed_model.rb:175:in `block in to_indexed_json' ..... /opt/rh/ruby193/root/usr/share/gems/gems/tire-0.6.2/lib/tire/index.rb:273:in `bulk_store' /opt/rh/ruby193/root/usr/share/gems/gems/tire-0.6.2/lib/tire/index.rb:300:in `import' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.73/lib/katello/tasks/reindex.rake:123:in `block (3 levels) in <top (required The upgrade completed but they are getting a new issue, with not being able to delete, refresh or upload new manifest. With the following error: Runtime Error query did not return a unique result: 2 at org.hibernate.internal.AbstractQueryImpl.uniqueElement:918
Created attachment 1086388 [details] foreman_debug