SUSE Support

Here When You Need Us

Task stuck in SUMA webUI - Task Engine Status.

This document (7022435) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Manager 3.2
SUSE Manager 3

Situation

In SUMA webUI, "Admin - Task Engine Status - Runtime Status" running tasks are still observed, although in the taskomatic logs, it is clear that  the job has actually already finished.
 
Example:
INFO   | jvm 1    | 2017/11/30 05:44:00 | 2017-11-30 05:44:00,143 [DefaultQuartzScheduler_Worker-1] INFO  com.redhat.rhn.taskomatic.task.ChannelRepodata - In the queue: 1
INFO   | jvm 1    | 2017/11/30 05:44:00 | 2017-11-30 05:44:00,162 [Thread-15686] INFO  com.redhat.rhn.taskomatic.task.repomd.RepositoryWriter - File Modified Date:2017-11-28 05:46:36 CET
INFO   | jvm 1    | 2017/11/30 05:44:00 | 2017-11-30 05:44:00,162 [Thread-15686] INFO  com.redhat.rhn.taskomatic.task.repomd.RepositoryWriter - Channel Modified Date:2017-11-30 05:43:43 CET
INFO   | jvm 1    | 2017/11/30 05:44:00 | 2017-11-30 05:44:00,190 [Thread-15686] INFO  com.redhat.rhn.taskomatic.task.repomd.RepositoryWriter - Generating new repository metadata for channel 'sles11-sp4-updates-x86_64'(sha1) 2953 packages, 637 errata
INFO   | jvm 1    | 2017/11/30 05:44:05 | 2017-11-30 05:44:05,809 [Thread-15678] INFO  com.redhat.rhn.taskomatic.task.RepoSyncTask - 05:43:53 ======================================
INFO   | jvm 1    | 2017/11/30 05:44:05 | 05:43:53 | Channel: sle11-sdk-sp4-pool-x86_64
INFO   | jvm 1    | 2017/11/30 05:44:05 | 05:43:53 ======================================
INFO   | jvm 1    | 2017/11/30 05:44:05 | 05:43:53 Sync of channel started.
INFO   | jvm 1    | 2017/11/30 05:44:05 | 05:43:57 Repo URL: https://updates.suse.com/repo/$RCE/SLE11-SDK-SP4-Pool/sle-11-x86_64/?gGVRvB0TGIi90EruqJIS-SgUkyJc58JLsoI1WmvTVXNNNDKjy1g2HumK5ntSNzcOePLGuSk9kEXRfWo5TEylglQPDCpC_aVv3PPKcg4btjfOcX97lvPEqEKljPz1QOppxiT9mXygiRrT
INFO   | jvm 1    | 2017/11/30 05:44:05 | 05:43:57 Packages in repo:              2752
INFO   | jvm 1    | 2017/11/30 05:44:05 | 05:44:05 No new packages to sync.
INFO   | jvm 1    | 2017/11/30 05:44:05 | 05:44:05 Repo https://updates.suse.com/repo/$RCE/SLE11-SDK-SP4-Pool/sle-11-x86_64/?gGVRvB0TGIi90EruqJIS-SgUkyJc58JLsoI1WmvTVXNNNDKjy1g2HumK5ntSNzcOePLGuSk9kEXRfWo5TEylglQPDCpC_aVv3PPKcg4btjfOcX97lvPEqEKljPz1QOppxiT9mXygiRrT has 0 patches.
INFO   | jvm 1    | 2017/11/30 05:44:05 | 05:44:05 Sync completed.

Resolution

To resolve this properly, the following must be fixed directly in SQL (only restarting spacewalk is not sufficient !).

Example :
spacewalk-service stop
spacewalk-sql - <<<"UPDATE rhnTaskoRun SET status = 'FINISHED', end_time = now() WHERE status = 'RUNNING' OR end_time IS NULL;"
spacewalk-service start

Cause

Tasks that were already finished were incorrectly identified as still running.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7022435
  • Creation Date: 06-Dec-2017
  • Modified Date:23-Jul-2020
    • SUSE Manager

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.