Translated message

A translation of this page exists in English.

クライアントで rhn_check を実行すると "Error while executing packages action: empty transaction [[6]]" (code -1) が返される

Solution Verified - Updated -

Environment

  • Red Hat Network (RHN) Satellite 5.4.1 または RHN Hosted
  • Red Hat Enterprise Linux (RHEL) v 5.7 (yum-rhn-plugin-0.5.4-22.el5_7.1)
  • Red Hat Enterprise Linux (RHEL) v 6.1 (yum-rhn-plugin-0.9.1-26.el6_1.1)

Issue

  • クライアントにエラータをスケジューリングして、クライアントで rhn_check を実行すると、webUI で以下のエラーが発生します。
This action's status is:Failed.
The client picked up this action on 09/ 2/11 3:37:55 PM BRT.
The client completed this action on 09/ 2/11 3:37:55 PM BRT.
Client execution returned "Error while executing packages action: empty transaction [[6]]" (code -1)
  • RHN hosted にエラータをスケジューリングし、rhn_check を実行しても同じエラーが発生します。
Error while executing packages action: empty transaction [[6]]" (code -1)
  • rhn_check の実行には失敗しますが、rhn_check -v (または -vv、-vvv) は有効です。

Resolution

Red Hat Enterprise Linux 6

(RHBA-2011-1664 から) rhn-client-tools-1.0.0-73.el6 および yum-rhn-plugin-0.9.1-36.el6 以降にアップデートします。

Red Hat Enterprise Linux 5

(RHBA-2011:1281 から) yum-rhn-plugin をバージョン 0.5.4-22.el5_7.2 以降にアップデートします。

回避方法

デプロイメントの制限により yum-rhn-plugin をアップデートできない場合は、以下のように yum-rhn-plugin-0.5.4-22.el5_7.1yum-rhn-plugin-0.5.4-22 にダウングレードするとこの問題を回避できます。

# yum downgrade yum-rhn-plugin

Diagnostic Steps

  • /var/cache/rhn/repodata で、RHN Satellite サーバーの repodata がアップデートされているかを確認します。

  • taskomatic 再起動中のログを確認してください:

/etc/init.d/taskomatic restart

tail -f /var/log/rhn/rhn_taskomatic_daemon.log

In case the logs show similar messages as the OutOfMemory bellow, consider to review the article Taskomatic and tomcat produces heapdumps on RHN Satellite for "out of memory" exceptions

INFO   | jvm 1    | 2014/08/15 21:01:17 | Exception in thread "Thread-60" java.lang.OutOfMemoryError: GC overhead limit exceeded
INFO   | jvm 1    | 2014/08/15 21:01:17 |   at java.lang.reflect.Method.copy(Method.java:151)
INFO   | jvm 1    | 2014/08/15 21:01:17 |   at java.lang.reflect.ReflectAccess.copyMethod(ReflectAccess.java:136)
INFO   | jvm 1    | 2014/08/15 21:01:17 |   at sun.reflect.ReflectionFactory.copyMethod(ReflectionFactory.java:300)
INFO   | jvm 1    | 2014/08/15 21:01:17 |   at java.lang.Class.copyMethods(Class.java:2852)
INFO   | jvm 1    | 2014/08/15 21:01:17 |   at java.lang.Class.getMethods(Class.java:1467)
INFO   | jvm 1    | 2014/08/15 21:01:17 |   at com.redhat.rhn.common.util.MethodUtil.callMethod(MethodUtil.java:114)
INFO   | jvm 1    | 2014/08/15 21:01:17 |   at com.redhat.rhn.common.db.datasource.CachedStatement.addToObject(CachedStatement.java:776)
INFO   | jvm 1    | 2014/08/15 21:01:17 |   at com.redhat.rhn.common.db.datasource.CachedStatement.processResultSet(CachedStatement.java:626)
INFO   | jvm 1    | 2014/08/15 21:01:17 |   at com.redhat.rhn.common.db.datasource.CachedStatement.execute(CachedStatement.java:474)
INFO   | jvm 1    | 2014/08/15 21:01:17 |   at com.redhat.rhn.common.db.datasource.CachedStatement.execute(CachedStatement.java:443)
INFO   | jvm 1    | 2014/08/15 21:01:17 |   at com.redhat.rhn.common.db.datasource.CachedStatement.execute(CachedStatement.java:345)
INFO   | jvm 1    | 2014/08/15 21:01:17 |   at com.redhat.rhn.common.db.datasource.CachedStatement.execute(CachedStatement.java:351)
INFO   | jvm 1    | 2014/08/15 21:01:17 |   at com.redhat.rhn.common.db.datasource.CachedStatement.execute(CachedStatement.java:287)
INFO   | jvm 1    | 2014/08/15 21:01:17 |   at com.redhat.rhn.common.db.datasource.SelectMode.execute(SelectMode.java:110)
INFO   | jvm 1    | 2014/08/15 21:01:17 |   at com.redhat.rhn.manager.task.TaskManager.getChannelPackageDtos(TaskManager.java:52)
INFO   | jvm 1    | 2014/08/15 21:01:17 |   at com.redhat.rhn.taskomatic.task.repomd.RpmRepositoryWriter.writeRepomdFiles(RpmRepositoryWriter.java:170)
INFO   | jvm 1    | 2014/08/15 21:01:17 |   at com.redhat.rhn.taskomatic.task.repomd.ChannelRepodataWorker.run(ChannelRepodataWorker.java:104)
INFO   | jvm 1    | 2014/08/15 21:01:17 |   at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
INFO   | jvm 1    | 2014/08/15 21:01:17 |   at java.lang.Thread.run(Thread.java:744)

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments