Bug 1275152 - Exception: undefined method `[]' for nil:NilClass when upgrading from 6.0.8
Summary: Exception: undefined method `[]' for nil:NilClass when upgrading from 6.0.8
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Upgrades
Version: 6.1.0
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-26 06:58 UTC by jnikolak
Modified: 2015-10-26 07:31 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-26 07:31:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
reindex (15.24 MB, text/plain)
2015-10-26 06:58 UTC, jnikolak
no flags Details
foreman_debug (748.49 KB, application/x-xz)
2015-10-26 07:05 UTC, jnikolak
no flags Details

Description jnikolak 2015-10-26 06:58:41 UTC
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

Comment 1 jnikolak 2015-10-26 07:05:19 UTC
Created attachment 1086388 [details]
foreman_debug


Note You need to log in before you can comment on or make changes to this bug.