Never ending tasks

Hi,

I'm new to katello, so I don't quite know where to look. I'm having tasks
related to metadata (Metadata generate {"locale"=>"en"}
<https://localhost:4443/foreman_tasks/tasks/4329f8c4-3c51-4dba-bbfb-e18701d5a26b>)
and candlepin (Listen on candlepin events {"locale"=>"en"}) that never end.
They are stuck at 50%. The metadata ones are paused, and when I resume one
of them, it seems to do nothing
<https://localhost:4443/foreman_tasks/tasks/2b8b0f69-4315-457e-83e4-7a321cc33f37>
I also have a couple of repositories that just never end syncing. They are
stucket at the same point where there was a network error, but I see no
network activity regarding http to the repositories (the sources)
Any hint is wellcome.
Regards,
<https://localhost:4443/foreman_tasks/tasks/2b8b0f69-4315-457e-83e4-7a321cc33f37>

The Candlepin task is designed to appear to run forever since it is reading
messages off a message bus and updating data. The metadata generate being
stuck at 50% usually indicates that the server is not reaching the Capsule
so it continues to poll it. Sounds like you mention having had a network
error – can you verify that your server can resolve and reach your
Capsule?

··· On Thu, Aug 13, 2015 at 9:47 PM, Juan Pablo Lorier wrote:

Hi,

I’m new to katello, so I don’t quite know where to look. I’m having tasks
related to metadata (Metadata generate {“locale”=>“en”}
https://localhost:4443/foreman_tasks/tasks/4329f8c4-3c51-4dba-bbfb-e18701d5a26b)
and candlepin (Listen on candlepin events {“locale”=>“en”}) that never
end. They are stuck at 50%. The metadata ones are paused, and when I resume
one of them, it seems to do nothing
https://localhost:4443/foreman_tasks/tasks/2b8b0f69-4315-457e-83e4-7a321cc33f37
I also have a couple of repositories that just never end syncing. They are
stucket at the same point where there was a network error, but I see no
network activity regarding http to the repositories (the sources)
Any hint is wellcome.
Regards,

https://localhost:4443/foreman_tasks/tasks/2b8b0f69-4315-457e-83e4-7a321cc33f37


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.


Eric D. Helms
Red Hat Engineering
Ph.D. Student - North Carolina State University

Hi,

I have now no network problems, but still have the candlepin tasks. Have 3
old ones running-error and a new one running-pending

Listen on candlepin events {"locale"=>"en"}
<https://localhost:4443/foreman_tasks/tasks/2b8b0f69-4315-457e-83e4-7a321cc33f37>
running pending 2015-08-14 01:15:12 UTC
Listen on candlepin events {"locale"=>"en"}
<https://localhost:4443/foreman_tasks/tasks/c90ed5e0-cfd1-4aad-95b7-8e684e464d8d>
running error 2015-08-11 14:46:31 UTC
Metadata generate {"locale"=>"en"}
<https://localhost:4443/foreman_tasks/tasks/87e2671c-57ff-41dc-bb1c-3dc34d417f59>
running error 2015-08-11 14:07:35 UTC foreman_api_admin Listen on candlepin
events {"locale"=>"en"}
<https://localhost:4443/foreman_tasks/tasks/c0c7a035-a151-4fe3-8731-acfcb429c46e>
running error 2015-08-05 19:20:08 UTC
This is the dynaflow for the second from the top:

2: Actions::Candlepin::ListenOnCandlepinEvents (suspended) [ 250728.68s /
10.38s ]

Started at: 2015-08-11 14:46:31 UTC

Ended at: 2015-08-14 12:25:19 UTC

Real time: 250728.68s

Execution time (excluding suspended state): 10.38s

Input:

··· --- locale: en

Output:


messages: 0
last_message:
connection: Connected

Error:

StandardError

Abnormal termination (previous state: suspended)

---- /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:859:in
`block in assigns’

  • /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:858:in
    `tap’
  • /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:858:in
    assigns'- /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:138:inmatch_value’
  • /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:inmatch’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/execution_plan/steps/error.rb:12:in
    `new’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/world.rb:204:in
    block (2 levels) in consistency_check'- /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/world.rb:202:ineach’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/world.rb:202:in
    `block in consistency_check’
  • /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/world.rb:193:in
    each'- /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/world.rb:193:inconsistency_check’
  • /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.13/lib/foreman_tasks/dynflow.rb:50:in
    `block in initialize!’
  • /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.13/lib/foreman_tasks/dynflow.rb:40:in
    tap'- /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.13/lib/foreman_tasks/dynflow.rb:40:ininitialize!’
  • /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.13/lib/foreman_tasks/engine.rb:77:in
    `block in class:Engine
  • /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:30:in
    instance_exec'- /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:30:inrun’
  • /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:55:in
    `block in run_initializers’
  • /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:54:in
    each'- /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/initializable.rb:54:inrun_initializers’
  • /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/application.rb:136:in
    `initialize!’
  • /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in
    method_missing'- /usr/share/foreman/config/environment.rb:12:in<top (required)>’
  • /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require’
  • /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in require'- /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:inblock in require’
  • /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in
    `load_dependency’
  • /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in
    require'- /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.13/lib/foreman_tasks/dynflow/daemon.rb:15:inrun’
  • /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.13/lib/foreman_tasks/dynflow/daemon.rb:50:in
    `block in run_background’
  • /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.1.4/lib/daemons/application.rb:249:in
    call'- /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.1.4/lib/daemons/application.rb:249:inblock in start_proc’
  • /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.1.4/lib/daemons/daemonize.rb:197:in
    `call’
  • /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.1.4/lib/daemons/daemonize.rb:197:in
    call_as_daemon'- /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.1.4/lib/daemons/application.rb:253:instart_proc’
  • /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.1.4/lib/daemons/application.rb:293:in
    `start’
  • /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.1.4/lib/daemons/controller.rb:70:in
    run'- /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.1.4/lib/daemons.rb:195:inblock
    in run_proc’
  • /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.1.4/lib/daemons/cmdline.rb:109:in
    `call’
  • /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.1.4/lib/daemons/cmdline.rb:109:in
    catch_exceptions'- /opt/rh/ruby193/root/usr/share/gems/gems/daemons-1.1.4/lib/daemons.rb:194:inrun_proc’
  • /opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.13/lib/foreman_tasks/dynflow/daemon.rb:43:in
    `run_background’
  • /usr/bin/foreman-tasks:5:in `’

El viernes, 14 de agosto de 2015, 10:10:10 (UTC-3), Eric Helms escribió:

The Candlepin task is designed to appear to run forever since it is
reading messages off a message bus and updating data. The metadata generate
being stuck at 50% usually indicates that the server is not reaching the
Capsule so it continues to poll it. Sounds like you mention having had a
network error – can you verify that your server can resolve and reach your
Capsule?

On Thu, Aug 13, 2015 at 9:47 PM, Juan Pablo Lorier <jplo...@gmail.com > <javascript:>> wrote:

Hi,

I’m new to katello, so I don’t quite know where to look. I’m having tasks
related to metadata (Metadata generate {“locale”=>“en”}
https://localhost:4443/foreman_tasks/tasks/4329f8c4-3c51-4dba-bbfb-e18701d5a26b)
and candlepin (Listen on candlepin events {“locale”=>“en”}) that never
end. They are stuck at 50%. The metadata ones are paused, and when I resume
one of them, it seems to do nothing
https://localhost:4443/foreman_tasks/tasks/2b8b0f69-4315-457e-83e4-7a321cc33f37
I also have a couple of repositories that just never end syncing. They
are stucket at the same point where there was a network error, but I see no
network activity regarding http to the repositories (the sources)
Any hint is wellcome.
Regards,

https://localhost:4443/foreman_tasks/tasks/2b8b0f69-4315-457e-83e4-7a321cc33f37


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 <javascript:>.
To post to this group, send email to forema...@googlegroups.com
<javascript:>.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Eric D. Helms
Red Hat Engineering
Ph.D. Student - North Carolina State University