I'm running katello 2.1 on rhel 7.1 x86_64. After a manipulation I've made
I'm not able to reach the content hosts page anymore. If I remember well it
was after deleting an activation key and/or a content view on which a
content host was linked to. Since that manipulation I can't see any content
hosts anymore.
Same request in CLI:
[root@host~]# hammer -u xxxxxx content-host list --organization yyyy
[Foreman] password for xxxxxx:
Katello::Resources::Candlepin::Consumer: 410 Gone {"displayMessage":"Unit
a2c3db96-1ddd-48aa-a76e-576315db9c6b has been
deleted","requestUuid":"5c7b4eb5-e9fa-4e65-8ec3-dbee889817ed","deletedId":"a2c3db96-1ddd-48aa-a76e-576315db9c6b"}
(GET /candlepin/consumers/a2c3db96-1ddd-48aa-a76e-576315db9c6b)
When I try to delete that content host id:
[root@host~]# hammer -u xxxxxx content-host delete --id
a2c3db96-1ddd-48aa-a76e-576315db9c6b
[Foreman] password for xxxxxx:
Could not delete content host:
Task f885cfed-0844-4a2b-8997-92ce05099dd4:
Katello::Errors::CandlepinError: Unit a2c3db96-1ddd-48aa-a76e-576315db9c6b
has been deleted; RestClient::ResourceNotFound: 404 Resource Not Found
That task stays on error and i'm forced to Unlock it. This is the Exception
message of the task:
RestClient::ResourceNotFound: 404 Resource Not Found
Does anyone have a work-around for this situation ?
There is a rake task you can run to cleanup these situations:
foreman-rake clean_backend_objects
Eric
···
On Wed, Mar 25, 2015 at 7:21 AM, Raphael Kropp wrote:
Hello,
I’m running katello 2.1 on rhel 7.1 x86_64. After a manipulation I’ve made
I’m not able to reach the content hosts page anymore. If I remember well it
was after deleting an activation key and/or a content view on which a
content host was linked to. Since that manipulation I can’t see any content
hosts anymore.
Same request in CLI:
[root@host~]# hammer -u xxxxxx content-host list --organization yyyy
[Foreman] password for xxxxxx:
Katello::Resources::Candlepin::Consumer: 410 Gone {“displayMessage”:“Unit
a2c3db96-1ddd-48aa-a76e-576315db9c6b has been
deleted”,“requestUuid”:“5c7b4eb5-e9fa-4e65-8ec3-dbee889817ed”,“deletedId”:“a2c3db96-1ddd-48aa-a76e-576315db9c6b”}
(GET /candlepin/consumers/a2c3db96-1ddd-48aa-a76e-576315db9c6b)
When I try to delete that content host id:
[root@host~]# hammer -u xxxxxx content-host delete --id
a2c3db96-1ddd-48aa-a76e-576315db9c6b
[Foreman] password for xxxxxx:
Could not delete content host:
Task f885cfed-0844-4a2b-8997-92ce05099dd4:
Katello::Errors::CandlepinError: Unit a2c3db96-1ddd-48aa-a76e-576315db9c6b
has been deleted; RestClient::ResourceNotFound: 404 Resource Not Found
That task stays on error and i’m forced to Unlock it. This is the
Exception message of the task:
RestClient::ResourceNotFound: 404 Resource Not Found
Does anyone have a work-around for this situation ?
** Invoke katello:clean_backend_objects (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute katello:clean_backend_objects
rake aborted!
Expect initializer to return hash if a group of attributes is defined by
lazy_accessor
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.1.2/app/lib/katello/lazy_accessor.rb:177:in run_initializer' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.1.2/app/lib/katello/lazy_accessor.rb:154:inlazy_attribute_get'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.1.2/app/lib/katello/lazy_accessor.rb:74:in block (2 levels) in lazy_accessor' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.1.2/lib/katello/tasks/clean_backend_objects.rake:11:inblock in cleanup_systems'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:21:in block (2 levels) in find_each' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:21:ineach'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:21:in block in find_each' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:72:infind_in_batches'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:20:in find_each' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/querying.rb:8:infind_each'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.1.2/lib/katello/tasks/clean_backend_objects.rake:5:in cleanup_systems' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.1.2/lib/katello/tasks/clean_backend_objects.rake:57:inblock (2 levels) in <top (required)>'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in call' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:inblock in execute'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in each' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:inexecute'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:158:in block in invoke_with_call_chain' /opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:inmon_synchronize'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in invoke_with_call_chain' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:144:ininvoke'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:116:in invoke_task' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:inblock (2
levels) in top_level'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in each' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:inblock in
top_level'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in standard_exception_handling' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:88:intop_level'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:66:in block in run' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:instandard_exception_handling'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:63:in run' /opt/rh/ruby193/root/usr/bin/rake:32:in<main>'
Tasks: TOP => katello:clean_backend_objects
Cheers,
John
···
On Wednesday, 25 March 2015 11:22:10 UTC, Raphael Kropp wrote:
>
> Hello,
>
> I'm running katello 2.1 on rhel 7.1 x86_64. After a manipulation I've made
> I'm not able to reach the content hosts page anymore. If I remember well it
> was after deleting an activation key and/or a content view on which a
> content host was linked to. Since that manipulation I can't see any content
> hosts anymore.
>
> That's what I get when I try to go on that page:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Same request in CLI:
> [root@host~]# hammer -u xxxxxx content-host list --organization yyyy
> [Foreman] password for xxxxxx:
> Katello::Resources::Candlepin::Consumer: 410 Gone {"displayMessage":"Unit
> a2c3db96-1ddd-48aa-a76e-576315db9c6b has been
> deleted","requestUuid":"5c7b4eb5-e9fa-4e65-8ec3-dbee889817ed","deletedId":"a2c3db96-1ddd-48aa-a76e-576315db9c6b"}
> (GET /candlepin/consumers/a2c3db96-1ddd-48aa-a76e-576315db9c6b)
>
> When I try to delete that content host id:
> [root@host~]# hammer -u xxxxxx content-host delete --id
> a2c3db96-1ddd-48aa-a76e-576315db9c6b
> [Foreman] password for xxxxxx:
> Could not delete content host:
> Task f885cfed-0844-4a2b-8997-92ce05099dd4:
> Katello::Errors::CandlepinError: Unit a2c3db96-1ddd-48aa-a76e-576315db9c6b
> has been deleted; RestClient::ResourceNotFound: 404 Resource Not Found
>
> That task stays on error and i'm forced to Unlock it. This is the
> Exception message of the task:
>
> RestClient::ResourceNotFound: 404 Resource Not Found
>
> Does anyone have a work-around for this situation ?
>
> Regards,
>
> R.
>
I’m running katello 2.1 on rhel 7.1 x86_64. After a manipulation I’ve
made I’m not able to reach the content hosts page anymore. If I remember
well it was after deleting an activation key and/or a content view on which
a content host was linked to. Since that manipulation I can’t see any
content hosts anymore.
Same request in CLI:
[root@host~]# hammer -u xxxxxx content-host list --organization yyyy
[Foreman] password for xxxxxx:
Katello::Resources::Candlepin::Consumer: 410 Gone {“displayMessage”:“Unit
a2c3db96-1ddd-48aa-a76e-576315db9c6b has been
deleted”,“requestUuid”:“5c7b4eb5-e9fa-4e65-8ec3-dbee889817ed”,“deletedId”:“a2c3db96-1ddd-48aa-a76e-576315db9c6b”}
(GET /candlepin/consumers/a2c3db96-1ddd-48aa-a76e-576315db9c6b)
When I try to delete that content host id:
[root@host~]# hammer -u xxxxxx content-host delete --id
a2c3db96-1ddd-48aa-a76e-576315db9c6b
[Foreman] password for xxxxxx:
Could not delete content host:
Task f885cfed-0844-4a2b-8997-92ce05099dd4:
Katello::Errors::CandlepinError: Unit a2c3db96-1ddd-48aa-a76e-576315db9c6b
has been deleted; RestClient::ResourceNotFound: 404 Resource Not Found
That task stays on error and i’m forced to Unlock it. This is the
Exception message of the task:
RestClient::ResourceNotFound: 404 Resource Not Found
Does anyone have a work-around for this situation ?
I've been able to solve my problem with:
foreman-rake katello:clean_backend_objects
Thank's for your help !
Regards,
Raphael
···
Le mercredi 25 mars 2015 18:26:50 UTC+1, Eric Helms a écrit :
>
> Howdy,
>
> There is a rake task you can run to cleanup these situations:
>
> foreman-rake clean_backend_objects
>
>
> Eric
>
> On Wed, Mar 25, 2015 at 7:21 AM, Raphael Kropp > wrote:
>
>> Hello,
>>
>> I'm running katello 2.1 on rhel 7.1 x86_64. After a manipulation I've
>> made I'm not able to reach the content hosts page anymore. If I remember
>> well it was after deleting an activation key and/or a content view on which
>> a content host was linked to. Since that manipulation I can't see any
>> content hosts anymore.
>>
>> That's what I get when I try to go on that page:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Same request in CLI:
>> [root@host~]# hammer -u xxxxxx content-host list --organization yyyy
>> [Foreman] password for xxxxxx:
>> Katello::Resources::Candlepin::Consumer: 410 Gone {"displayMessage":"Unit
>> a2c3db96-1ddd-48aa-a76e-576315db9c6b has been
>> deleted","requestUuid":"5c7b4eb5-e9fa-4e65-8ec3-dbee889817ed","deletedId":"a2c3db96-1ddd-48aa-a76e-576315db9c6b"}
>> (GET /candlepin/consumers/a2c3db96-1ddd-48aa-a76e-576315db9c6b)
>>
>> When I try to delete that content host id:
>> [root@host~]# hammer -u xxxxxx content-host delete --id
>> a2c3db96-1ddd-48aa-a76e-576315db9c6b
>> [Foreman] password for xxxxxx:
>> Could not delete content host:
>> Task f885cfed-0844-4a2b-8997-92ce05099dd4:
>> Katello::Errors::CandlepinError: Unit a2c3db96-1ddd-48aa-a76e-576315db9c6b
>> has been deleted; RestClient::ResourceNotFound: 404 Resource Not Found
>>
>> That task stays on error and i'm forced to Unlock it. This is the
>> Exception message of the task:
>>
>> RestClient::ResourceNotFound: 404 Resource Not Found
>>
>> Does anyone have a work-around for this situation ?
>>
>> Regards,
>>
>> R.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Foreman users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to foreman-user...@googlegroups.com .
>> To post to this group, send email to forema...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/foreman-users.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
After clearing the stalled sync tasks, and attempting a re-sync on the
repositories which failed to sync, I was left with a single repository that
gives out an error, CentOS 6.6 Extras. The error given by Katello is:
···
On Friday, 12 June 2015 09:59:25 UTC+1, John Beranek - PA wrote:
>
> Getting similar issues syncing repositories on our Katello 2.1
> installation. Output from katello:clean_backend_objects:
>
> # foreman-rake katello:clean_backend_objects --trace
> ** Invoke katello:clean_backend_objects (first_time)
> ** Invoke environment (first_time)
> ** Execute environment
> ** Execute katello:clean_backend_objects
> rake aborted!
> Expect initializer to return hash if a group of attributes is defined by
> lazy_accessor
> /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.1.2/app/lib/katello/lazy_accessor.rb:177:in
> `run_initializer'
> /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.1.2/app/lib/katello/lazy_accessor.rb:154:in
> `lazy_attribute_get'
> /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.1.2/app/lib/katello/lazy_accessor.rb:74:in
> `block (2 levels) in lazy_accessor'
> /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.1.2/lib/katello/tasks/clean_backend_objects.rake:11:in
> `block in cleanup_systems'
> /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:21:in
> `block (2 levels) in find_each'
> /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:21:in
> `each'
> /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:21:in
> `block in find_each'
> /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:72:in
> `find_in_batches'
> /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:20:in
> `find_each'
> /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/querying.rb:8:in
> `find_each'
> /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.1.2/lib/katello/tasks/clean_backend_objects.rake:5:in
> `cleanup_systems'
> /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.1.2/lib/katello/tasks/clean_backend_objects.rake:57:in
> `block (2 levels) in '
> /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in `call'
> /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in `block in execute'
> /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in `each'
> /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in `execute'
> /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:158:in `block in
> invoke_with_call_chain'
> /opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:in `mon_synchronize'
> /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in
> `invoke_with_call_chain'
> /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:144:in `invoke'
> /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:116:in
> `invoke_task'
> /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `block (2
> levels) in top_level'
> /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `each'
> /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in `block in
> top_level'
> /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in
> `standard_exception_handling'
> /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:88:in `top_level'
> /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:66:in `block in
> run'
> /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in
> `standard_exception_handling'
> /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:63:in `run'
> /opt/rh/ruby193/root/usr/bin/rake:32:in `'
> Tasks: TOP => katello:clean_backend_objects
>
> Cheers,
>
> John
>
> On Wednesday, 25 March 2015 11:22:10 UTC, Raphael Kropp wrote:
>>
>> Hello,
>>
>> I'm running katello 2.1 on rhel 7.1 x86_64. After a manipulation I've
>> made I'm not able to reach the content hosts page anymore. If I remember
>> well it was after deleting an activation key and/or a content view on which
>> a content host was linked to. Since that manipulation I can't see any
>> content hosts anymore.
>>
>> That's what I get when I try to go on that page:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Same request in CLI:
>> [root@host~]# hammer -u xxxxxx content-host list --organization yyyy
>> [Foreman] password for xxxxxx:
>> Katello::Resources::Candlepin::Consumer: 410 Gone {"displayMessage":"Unit
>> a2c3db96-1ddd-48aa-a76e-576315db9c6b has been
>> deleted","requestUuid":"5c7b4eb5-e9fa-4e65-8ec3-dbee889817ed","deletedId":"a2c3db96-1ddd-48aa-a76e-576315db9c6b"}
>> (GET /candlepin/consumers/a2c3db96-1ddd-48aa-a76e-576315db9c6b)
>>
>> When I try to delete that content host id:
>> [root@host~]# hammer -u xxxxxx content-host delete --id
>> a2c3db96-1ddd-48aa-a76e-576315db9c6b
>> [Foreman] password for xxxxxx:
>> Could not delete content host:
>> Task f885cfed-0844-4a2b-8997-92ce05099dd4:
>> Katello::Errors::CandlepinError: Unit a2c3db96-1ddd-48aa-a76e-576315db9c6b
>> has been deleted; RestClient::ResourceNotFound: 404 Resource Not Found
>>
>> That task stays on error and i'm forced to Unlock it. This is the
>> Exception message of the task:
>>
>> RestClient::ResourceNotFound: 404 Resource Not Found
>>
>> Does anyone have a work-around for this situation ?
>>
>> Regards,
>>
>> R.
>>
>
There isn't a comprehensive list of katello rake tasks in Katello.org.
Each of the sections might contain info about some task if it's
relevant. However, you can see all tasks here:
···
On 03/25, Vladimir Stackov wrote:
>
> 2015-03-25 20:26 GMT+03:00 Eric D Helms :
>
> > Howdy,
> >
> > There is a rake task you can run to cleanup these situations:
> >
> > foreman-rake clean_backend_objects
> >
> >
> > Eric
> >
> > On Wed, Mar 25, 2015 at 7:21 AM, Raphael Kropp > > wrote:
> >
> >> Hello,
> >>
> >> I'm running katello 2.1 on rhel 7.1 x86_64. After a manipulation I've
> >> made I'm not able to reach the content hosts page anymore. If I remember
> >> well it was after deleting an activation key and/or a content view on which
> >> a content host was linked to. Since that manipulation I can't see any
> >> content hosts anymore.
> >>
> >> That's what I get when I try to go on that page:
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> Same request in CLI:
> >> [root@host~]# hammer -u xxxxxx content-host list --organization yyyy
> >> [Foreman] password for xxxxxx:
> >> Katello::Resources::Candlepin::Consumer: 410 Gone {"displayMessage":"Unit
> >> a2c3db96-1ddd-48aa-a76e-576315db9c6b has been
> >> deleted","requestUuid":"5c7b4eb5-e9fa-4e65-8ec3-dbee889817ed","deletedId":"a2c3db96-1ddd-48aa-a76e-576315db9c6b"}
> >> (GET /candlepin/consumers/a2c3db96-1ddd-48aa-a76e-576315db9c6b)
> >>
> >> When I try to delete that content host id:
> >> [root@host~]# hammer -u xxxxxx content-host delete --id
> >> a2c3db96-1ddd-48aa-a76e-576315db9c6b
> >> [Foreman] password for xxxxxx:
> >> Could not delete content host:
> >> Task f885cfed-0844-4a2b-8997-92ce05099dd4:
> >> Katello::Errors::CandlepinError: Unit a2c3db96-1ddd-48aa-a76e-576315db9c6b
> >> has been deleted; RestClient::ResourceNotFound: 404 Resource Not Found
> >>
> >> That task stays on error and i'm forced to Unlock it. This is the
> >> Exception message of the task:
> >>
> >> RestClient::ResourceNotFound: 404 Resource Not Found
> >>
> >> Does anyone have a work-around for this situation ?
> >>
> >> Regards,
> >>
> >> R.
> >>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Foreman users" group.
> >> To unsubscribe from this group and stop receiving emails from it, send an
> >> email to foreman-users+unsubscribe@googlegroups.com.
> >> To post to this group, send email to foreman-users@googlegroups.com.
> >> Visit this group at http://groups.google.com/group/foreman-users.
> >> For more options, visit https://groups.google.com/d/optout.
> >>
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Foreman users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to foreman-users+unsubscribe@googlegroups.com.
> > To post to this group, send email to foreman-users@googlegroups.com.
> > Visit this group at http://groups.google.com/group/foreman-users.
> > For more options, visit https://groups.google.com/d/optout.
> >
>
>
>
> --
> Kind regards,
> Vladimir.
>
> --
> You received this message because you are subscribed to the Google Groups "Foreman users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
> To post to this group, send email to foreman-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/foreman-users.
> For more options, visit https://groups.google.com/d/optout.
I am in a similar state but my foreman-rake katello:clean_backend_objects
fails. RHEL 6.6 host Katello 2.2/Foreman 1.8RC2
hammer -u xxx content-host list --organization xyz
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/…/
abstract.rb:68: warning: already initialized constant DEFAULT_LABEL_INDENT
Katello::Resources::Candlepin::Consumer: 410 Gone {"displayMessage":"Unit
cdeb46d7-5562-4342-960d-c4c6a62bfcc0 has been deleted","requestUuid":
"1f036e1d-2790-4470-aafb-416970e40c17","deletedId":
"cdeb46d7-5562-4342-960d-c4c6a62bfcc0"} (GET /candlepin/consumers/cdeb46d7-
5562-4342-960d-c4c6a62bfcc0)
foreman-rake katello:clean_backend_objects
Workaround for RbVmomi may not work as ComputeResource is already loaded:
ComputeResource
System 24 host.example.com 514665f7-ea97-4331-9a6a-6dfd6aab6796 is
partially missing. Cleaning.
rake aborted!
PGError: ERROR: update or delete on table "katello_systems" violates
foreign key constraint "katello_system_repositories_system_id_fk" on table
"katello_system_repositories"
DETAIL: Key (id)=(24) is still referenced from table
"katello_system_repositories".
: DELETE FROM "katello_systems" WHERE "katello_systems"."id" = 24
Tasks: TOP => katello:clean_backend_objects
(See full trace by running task with --trace)
Full Trace:
foreman-rake katello:clean_backend_objects --trace
** Invoke katello:clean_backend_objects (first_time)
** Invoke environment (first_time)
** Execute environment
Workaround for RbVmomi may not work as ComputeResource is already loaded:
ComputeResource
** Execute katello:clean_backend_objects
System 24 host.example.com 514665f7-ea97-4331-9a6a-6dfd6aab6796 is
partially missing. Cleaning.
rake aborted!
PGError: ERROR: update or delete on table "katello_systems" violates
foreign key constraint "katello_system_repositories_system_id_fk" on table
"katello_system_repositories"
DETAIL: Key (id)=(24) is still referenced from table
"katello_system_repositories".
: DELETE FROM "katello_systems" WHERE "katello_systems"."id" = 24
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/
active_record/connection_adapters/postgresql_adapter.rb:1158:in async_exec' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1158:inexec_no_cache'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:675:in block in exec_delete' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/ active_record/connection_adapters/abstract_adapter.rb:280:inblock in log'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in instrument' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:inlog'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/
active_record/connection_adapters/postgresql_adapter.rb:674:in exec_delete' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:101:indelete'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in delete' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/ active_record/relation.rb:413:indelete_all'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation.rb:442:in delete' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/querying.rb:7:indelete'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/
active_record/persistence.rb:119:in delete' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0/lib/katello/tasks/clean_backend_objects.rake:25:inblock in cleanup_systems'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:21:in block (2 levels) in find_each' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/ active_record/relation/batches.rb:21:ineach'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:21:in block in find_each' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:72:infind_in_batches'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/
active_record/relation/batches.rb:20:in find_each' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/querying.rb:8:infind_each'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0/lib/katello/tasks/clean_backend_objects.rake:5:in cleanup_systems' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0/lib/katello/tasks/ clean_backend_objects.rake:67:inblock (2 levels) in <top (required)>'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in call' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:inblock in execute'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in each' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:inexecute'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:158:in block in invoke_with_call_chain' /opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:inmon_synchronize'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in invoke_with_call_chain' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:144:ininvoke'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:116:in invoke_task' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:inblock (2
levels) in top_level'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in each' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:inblock in
top_level'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in standard_exception_handling' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:88:intop_level'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:66:in block in run' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in
standard_exception_handling'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:63:in run' /opt/rh/ruby193/root/usr/bin/rake:32:in<main>'
caused by: (PGError) ERROR: update or delete on table "katello_systems"
violates foreign key constraint "katello_system_repositories_system_id_fk"
on table "katello_system_repositories"
DETAIL: Key (id)=(24) is still referenced from table
"katello_system_repositories".
... skipped 40 lines
Tasks: TOP => katello:clean_backend_objects
···
On Thursday, March 26, 2015 at 2:12:55 AM UTC-7, Raphael Kropp wrote:
>
> Hi Eric,
>
> I've been able to solve my problem with:
> foreman-rake katello:clean_backend_objects
> Thank's for your help !
> Regards,
>
> Raphael
>
> Le mercredi 25 mars 2015 18:26:50 UTC+1, Eric Helms a écrit :
>>
>> Howdy,
>>
>> There is a rake task you can run to cleanup these situations:
>>
>> foreman-rake clean_backend_objects
>>
>>
>> Eric
>>
>> On Wed, Mar 25, 2015 at 7:21 AM, Raphael Kropp >> wrote:
>>
>>> Hello,
>>>
>>> I'm running katello 2.1 on rhel 7.1 x86_64. After a manipulation I've
>>> made I'm not able to reach the content hosts page anymore. If I remember
>>> well it was after deleting an activation key and/or a content view on which
>>> a content host was linked to. Since that manipulation I can't see any
>>> content hosts anymore.
>>>
>>> That's what I get when I try to go on that page:
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Same request in CLI:
>>> [root@host~]# hammer -u xxxxxx content-host list --organization yyyy
>>> [Foreman] password for xxxxxx:
>>> Katello::Resources::Candlepin::Consumer: 410 Gone
>>> {"displayMessage":"Unit a2c3db96-1ddd-48aa-a76e-576315db9c6b has been
>>> deleted","requestUuid":"5c7b4eb5-e9fa-4e65-8ec3-dbee889817ed","deletedId":"a2c3db96-1ddd-48aa-a76e-576315db9c6b"}
>>> (GET /candlepin/consumers/a2c3db96-1ddd-48aa-a76e-576315db9c6b)
>>>
>>> When I try to delete that content host id:
>>> [root@host~]# hammer -u xxxxxx content-host delete --id
>>> a2c3db96-1ddd-48aa-a76e-576315db9c6b
>>> [Foreman] password for xxxxxx:
>>> Could not delete content host:
>>> Task f885cfed-0844-4a2b-8997-92ce05099dd4:
>>> Katello::Errors::CandlepinError: Unit a2c3db96-1ddd-48aa-a76e-576315db9c6b
>>> has been deleted; RestClient::ResourceNotFound: 404 Resource Not Found
>>>
>>> That task stays on error and i'm forced to Unlock it. This is the
>>> Exception message of the task:
>>>
>>> RestClient::ResourceNotFound: 404 Resource Not Found
>>>
>>> Does anyone have a work-around for this situation ?
>>>
>>> Regards,
>>>
>>> R.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Foreman users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to foreman-user...@googlegroups.com.
>>> To post to this group, send email to forema...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/foreman-users.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
I fixed my own issue, I found a task that was in default org to delete the
host in question. I was able to dynflow to skip steps and after clearing
the task I was able to run the katello:clean_backend_objects successfully.
···
On Monday, April 6, 2015 at 11:38:57 AM UTC-7, Michael Bassler wrote:
>
> I am in a similar state but my foreman-rake katello:clean_backend_objects
> fails. RHEL 6.6 host Katello 2.2/Foreman 1.8RC2
>
> hammer -u xxx content-host list --organization xyz
> /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/../
> abstract.rb:68: warning: already initialized constant DEFAULT_LABEL_INDENT
> Katello::Resources::Candlepin::Consumer: 410 Gone {"displayMessage":"Unit
> cdeb46d7-5562-4342-960d-c4c6a62bfcc0 has been deleted","requestUuid":
> "1f036e1d-2790-4470-aafb-416970e40c17","deletedId":
> "cdeb46d7-5562-4342-960d-c4c6a62bfcc0"} (GET /candlepin/consumers/cdeb46d7
> -5562-4342-960d-c4c6a62bfcc0)
>
>
> foreman-rake katello:clean_backend_objects
> Workaround for RbVmomi may not work as ComputeResource is already loaded:
> ComputeResource
> System 24 host.example.com 514665f7-ea97-4331-9a6a-6dfd6aab6796 is
> partially missing. Cleaning.
> rake aborted!
> PGError: ERROR: update or delete on table "katello_systems" violates
> foreign key constraint "katello_system_repositories_system_id_fk" on
> table "katello_system_repositories"
> DETAIL: Key (id)=(24) is still referenced from table
> "katello_system_repositories".
> : DELETE FROM "katello_systems" WHERE "katello_systems"."id" = 24
>
> Tasks: TOP => katello:clean_backend_objects
> (See full trace by running task with --trace)
>
> Full Trace:
> foreman-rake katello:clean_backend_objects --trace
> ** Invoke katello:clean_backend_objects (first_time)
> ** Invoke environment (first_time)
> ** Execute environment
> Workaround for RbVmomi may not work as ComputeResource is already loaded:
> ComputeResource
> ** Execute katello:clean_backend_objects
> System 24 host.example.com 514665f7-ea97-4331-9a6a-6dfd6aab6796 is
> partially missing. Cleaning.
> rake aborted!
> PGError: ERROR: update or delete on table "katello_systems" violates
> foreign key constraint "katello_system_repositories_system_id_fk" on
> table "katello_system_repositories"
> DETAIL: Key (id)=(24) is still referenced from table
> "katello_system_repositories".
> : DELETE FROM "katello_systems" WHERE "katello_systems"."id" = 24
> /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/
> active_record/connection_adapters/postgresql_adapter.rb:1158:in
> `async_exec'
> /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1158:in
> `exec_no_cache'
> /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:675:in
> `block in exec_delete'
> /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/
> active_record/connection_adapters/abstract_adapter.rb:280:in `block in
> log'
> /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in
> `instrument'
> /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in
> `log'
> /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/
> active_record/connection_adapters/postgresql_adapter.rb:674:in
> `exec_delete'
> /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:101:in
> `delete'
> /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in
> `delete'
> /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/
> active_record/relation.rb:413:in `delete_all'
> /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation.rb:442:in
> `delete'
> /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/querying.rb:7:in
> `delete'
> /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/
> active_record/persistence.rb:119:in `delete'
> /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0/lib/katello/tasks/clean_backend_objects.rake:25:in
> `block in cleanup_systems'
> /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:21:in
> `block (2 levels) in find_each'
> /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/
> active_record/relation/batches.rb:21:in `each'
> /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:21:in
> `block in find_each'
> /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:72:in
> `find_in_batches'
> /
> ...
After the easter weekend I came back to a broken Katello 2.1. My daily
sync plan has several repo's stuck
ActiveRecord::RecordNotUnique: PGError: ERROR: duplicate key value violates unique constraint "katello_system_errata_eid_sid"
: INSERT INTO katello_system_errata (erratum_id, system_id) VALUES (5442, 2)
I have now restarted the server, resumed the sync tasks, skipped and
resumed the NodeContentGenerator tasks (they wouldn't resume).
But I get more problems and I'm unable to sync some of the repos properly:
Katello::Errors::PulpError: PLP0000: [Errno 2] No such file or directory: '/var/lib/pulp/content/drpm/drpms/spice-gtk-0.20-8.el7_0.22-2.el7.i686.drpm'
Is there a way to clear the repository and reinitialize the sync? Or
should I remove and readd the repo's to get things going again?
From production.log:
Connection reset by peer (Errno::ECONNRESET)
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/serialization.rb:67:in
`gets'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/serialization.rb:67:in
`receive_message'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/socket.rb:44:in
`block in listen'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/socket.rb:38:in
`each'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/socket.rb:38:in
`listen'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/socket.rb:21:in
`block (3 levels) in initialize'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/socket.rb:21:in
`loop'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/socket.rb:21:in
`block (2 levels) in initialize'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/socket.rb:21:in
`catch'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/socket.rb:21:in
`block in initialize'
/opt/rh/ruby193/root/usr/share/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:in
`call'
/opt/rh/ruby193/root/usr/share/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:in
`block in create_with_logging_context'
Client disconnected.
message could not be sent
Dynflow::Listeners::Serialization::Protocol::Done[request_id: 23]
because Broken pipe
PGError: ERROR: duplicate key value violates unique constraint
"katello_system_errata_eid_sid"
: INSERT INTO katello_system_errata (erratum_id, system_id) VALUES
(5442, 2) (ActiveRecord::RecordNotUnique)
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:654:in
`async_exec'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:654:in
`block in execute'
<snip>
/opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:116:in
`block in match'
/opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:115:in
`each'
/opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:115:in
`match'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/executors/parallel/worker.rb:17:in
`on_message'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:82:in
`on_envelope'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:72:in
`receive'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:99:in
`block (2 levels) in run'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:99:in
`loop'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:99:in
`block in run'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:99:in
`catch'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:99:in
`run'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:13:in
`block in initialize'
/opt/rh/ruby193/root/usr/share/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:in
`call'
/opt/rh/ruby193/root/usr/share/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:in
`block in create_with_logging_context'
caused by: (PGError) ERROR: duplicate key value violates unique
constraint "katello_system_errata_eid_sid"
... skipped 91 lines
message could not be sent
Dynflow::Listeners::Serialization::Protocol::Done[request_id: 21]
because Broken pipe
message could not be sent
Dynflow::Listeners::Serialization::Protocol::Done[request_id: 24]
because Broken pipe
message could not be sent
Dynflow::Listeners::Serialization::Protocol::Done[request_id: 4]
because Broken pipe
message could not be sent
Dynflow::Listeners::Serialization::Protocol::Done[request_id: 5]
because Broken pipe
message could not be sent
Dynflow::Listeners::Serialization::Protocol::Done[request_id: 13]
because Broken pipe
Processing by HostsController#externalNodes as YML
Parameters: {"name"=>"back1en.netbulae.mgmt"}
message could not be sent
Dynflow::Listeners::Serialization::Protocol::Done[request_id: 7]
because Broken pipe
Rendered text template (0.0ms)
Completed 200 OK in 496ms (Views: 0.7ms | ActiveRecord: 12.9ms)
···
On Tue, Apr 7, 2015 at 7:15 AM, Jorick Astrego wrote:
Hi,
After the easter weekend I came back to a broken Katello 2.1. My daily
sync plan has several repo’s stuck
ActiveRecord::RecordNotUnique: PGError: ERROR: duplicate key value violates unique constraint “katello_system_errata_eid_sid”
: INSERT INTO katello_system_errata (erratum_id, system_id) VALUES (5442, 2)
I have now restarted the server, resumed the sync tasks, skipped and
resumed the NodeContentGenerator tasks (they wouldn’t resume).
But I get more problems and I’m unable to sync some of the repos properly:
Katello::Errors::PulpError: PLP0000: [Errno 2] No such file or directory: ‘/var/lib/pulp/content/drpm/drpms/spice-gtk-0.20-8.el7_0.22-2.el7.i686.drpm’
Is there a way to clear the repository and reinitialize the sync? Or
should I remove and readd the repo’s to get things going again?
From production.log:
Connection reset by peer (Errno::ECONNRESET)
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/serialization.rb:67:in gets' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/serialization.rb:67:inreceive_message’
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/socket.rb:44:in block in listen' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/socket.rb:38:ineach’
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/socket.rb:38:in listen' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/socket.rb:21:inblock (3 levels) in initialize’
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/socket.rb:21:in loop' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/socket.rb:21:inblock (2 levels) in initialize’
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/socket.rb:21:in catch' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/socket.rb:21:inblock in initialize’
/opt/rh/ruby193/root/usr/share/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:in call' /opt/rh/ruby193/root/usr/share/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:inblock in create_with_logging_context’
Client disconnected.
message could not be sent
Dynflow::Listeners::Serialization::Protocol::Done[request_id: 23] because
Broken pipe
PGError: ERROR: duplicate key value violates unique constraint
"katello_system_errata_eid_sid"
: INSERT INTO katello_system_errata (erratum_id, system_id) VALUES (5442,
2) (ActiveRecord::RecordNotUnique)
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:654:in async_exec' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:654:inblock in execute’
/opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:116:in block in match' /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:115:ineach’
/opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:115:in match' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/executors/parallel/worker.rb:17:inon_message’
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:82:in on_envelope' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:72:inreceive’
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:99:in block (2 levels) in run' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:99:inloop’
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:99:in block in run' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:99:incatch’
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:99:in run' /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:13:inblock in initialize’
/opt/rh/ruby193/root/usr/share/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:in call' /opt/rh/ruby193/root/usr/share/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:inblock in create_with_logging_context’
caused by: (PGError) ERROR: duplicate key value violates unique
constraint “katello_system_errata_eid_sid”
... skipped 91 lines
message could not be sent
Dynflow::Listeners::Serialization::Protocol::Done[request_id: 21] because
Broken pipe
message could not be sent
Dynflow::Listeners::Serialization::Protocol::Done[request_id: 24] because
Broken pipe
message could not be sent
Dynflow::Listeners::Serialization::Protocol::Done[request_id: 4] because
Broken pipe
message could not be sent
Dynflow::Listeners::Serialization::Protocol::Done[request_id: 5] because
Broken pipe
message could not be sent
Dynflow::Listeners::Serialization::Protocol::Done[request_id: 13] because
Broken pipe
Processing by HostsController#externalNodes as YML
Parameters: {“name”=>“back1en.netbulae.mgmt”}
message could not be sent
Dynflow::Listeners::Serialization::Protocol::Done[request_id: 7] because
Broken pipe
Rendered text template (0.0ms)
Completed 200 OK in 496ms (Views: 0.7ms | ActiveRecord: 12.9ms)
···
On 04/07/2015 05:29 PM, Eric D Helms wrote:
> What repositories were these that hit this issue?
>
> On Tue, Apr 7, 2015 at 7:15 AM, Jorick Astrego > wrote:
>
> Hi,
>
> After the easter weekend I came back to a broken Katello 2.1. My
> daily sync plan has several repo's stuck
>
> ActiveRecord::RecordNotUnique: PGError: ERROR: duplicate key value violates unique constraint "katello_system_errata_eid_sid"
> : INSERT INTO katello_system_errata (erratum_id, system_id) VALUES (5442, 2)
>
> I have now restarted the server, resumed the sync tasks, skipped
> and resumed the NodeContentGenerator tasks (they wouldn't resume).
>
> But I get more problems and I'm unable to sync some of the repos
> properly:
>
> Katello::Errors::PulpError: PLP0000: [Errno 2] No such file or directory: '/var/lib/pulp/content/drpm/drpms/spice-gtk-0.20-8.el7_0.22-2.el7.i686.drpm'
>
>
> Is there a way to clear the repository and reinitialize the sync?
> Or should I remove and readd the repo's to get things going again?
>
> From production.log:
>
> Connection reset by peer (Errno::ECONNRESET)
> /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/serialization.rb:67:in
> `gets'
> /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/serialization.rb:67:in
> `receive_message'
> /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/socket.rb:44:in
> `block in listen'
> /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/socket.rb:38:in
> `each'
> /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/socket.rb:38:in
> `listen'
> /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/listeners/socket.rb:21:in
> `block (3 levels) in initialize'
> /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/liste