Bug 702332 - repo-sync in web gui doesn't work
Summary: repo-sync in web gui doesn't work
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 1.4
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Tomas Lestach
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space16
TreeView+ depends on / blocked
 
Reported: 2011-05-05 11:13 UTC by thomas mayr
Modified: 2011-08-05 11:46 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-05 11:46:30 UTC
Embargoed:


Attachments (Terms of Use)

Description thomas mayr 2011-05-05 11:13:25 UTC
Description of problem:

if you try to sync your channel with the web gui you will see the message:
"The scheduling service appears down. Please contact your Satellite administrator."
and the buttons are disabled.
if you use the command line the repo-sync works.
if you check the state of taskomatic:
 /etc/init.d/taskomatic status
=> RHN Taskomatic is not running.

if you now start it with /etc/init.d/taskomatic start its starting and running for a while and then it stops. in the log file

/var/log/rhn/rhn_taskomatic_daemon.log you will see:

STATUS | wrapper  | 2011/05/05 11:34:58 | --> Wrapper Started as Daemon
STATUS | wrapper  | 2011/05/05 11:34:58 | Launching a JVM...
INFO   | jvm 1    | 2011/05/05 11:34:58 | Exception in thread "main" java.lang.UnsupportedClassVersionError: com/redhat/rhn/taskomatic/core/TaskomaticDaemon (Unsupported major.minor version 49.0)
INFO   | jvm 1    | 2011/05/05 11:34:58 |       at java.lang.ClassLoader.defineClass0(Native Method)
INFO   | jvm 1    | 2011/05/05 11:34:58 |       at java.lang.ClassLoader.defineClass(Unknown Source)
INFO   | jvm 1    | 2011/05/05 11:34:58 |       at java.security.SecureClassLoader.defineClass(Unknown Source)
INFO   | jvm 1    | 2011/05/05 11:34:58 |       at java.net.URLClassLoader.defineClass(Unknown Source)
INFO   | jvm 1    | 2011/05/05 11:34:58 |       at java.net.URLClassLoader.access$100(Unknown Source)
INFO   | jvm 1    | 2011/05/05 11:34:58 |       at java.net.URLClassLoader$1.run(Unknown Source)
INFO   | jvm 1    | 2011/05/05 11:34:58 |       at java.security.AccessController.doPrivileged(Native Method)
INFO   | jvm 1    | 2011/05/05 11:34:58 |       at java.net.URLClassLoader.findClass(Unknown Source)
INFO   | jvm 1    | 2011/05/05 11:34:58 |       at java.lang.ClassLoader.loadClass(Unknown Source)
INFO   | jvm 1    | 2011/05/05 11:34:58 |       at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
INFO   | jvm 1    | 2011/05/05 11:34:58 |       at java.lang.ClassLoader.loadClass(Unknown Source)
INFO   | jvm 1    | 2011/05/05 11:34:58 |       at java.lang.ClassLoader.loadClassInternal(Unknown Source)
ERROR  | wrapper  | 2011/05/05 11:34:58 | JVM exited while loading the application.
STATUS | wrapper  | 2011/05/05 11:35:03 | Launching a JVM...
.....

INFO   | jvm 5    | 2011/05/05 11:35:16 | Exception in thread "main" java.lang.UnsupportedClassVersionError: com/redhat/rhn/taskomatic/core/TaskomaticDaemon (Unsupported major.minor version 49.0)
INFO   | jvm 5    | 2011/05/05 11:35:16 |       at java.lang.ClassLoader.defineClass0(Native Method)
INFO   | jvm 5    | 2011/05/05 11:35:16 |       at java.lang.ClassLoader.defineClass(Unknown Source)
INFO   | jvm 5    | 2011/05/05 11:35:16 |       at java.security.SecureClassLoader.defineClass(Unknown Source)
INFO   | jvm 5    | 2011/05/05 11:35:16 |       at java.net.URLClassLoader.defineClass(Unknown Source)
INFO   | jvm 5    | 2011/05/05 11:35:16 |       at java.net.URLClassLoader.access$100(Unknown Source)
INFO   | jvm 5    | 2011/05/05 11:35:16 |       at java.net.URLClassLoader$1.run(Unknown Source)
INFO   | jvm 5    | 2011/05/05 11:35:16 |       at java.security.AccessController.doPrivileged(Native Method)
INFO   | jvm 5    | 2011/05/05 11:35:16 |       at java.net.URLClassLoader.findClass(Unknown Source)
INFO   | jvm 5    | 2011/05/05 11:35:16 |       at java.lang.ClassLoader.loadClass(Unknown Source)
INFO   | jvm 5    | 2011/05/05 11:35:16 |       at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
INFO   | jvm 5    | 2011/05/05 11:35:16 |       at java.lang.ClassLoader.loadClass(Unknown Source)
INFO   | jvm 5    | 2011/05/05 11:35:16 |       at java.lang.ClassLoader.loadClassInternal(Unknown Source)
ERROR  | wrapper  | 2011/05/05 11:35:16 | JVM exited while loading the application.
FATAL  | wrapper  | 2011/05/05 11:35:16 | There were 5 failed launches in a row, each lasting less than 300 seconds.  Giving up.
FATAL  | wrapper  | 2011/05/05 11:35:16 |   There may be a configuration problem: please check the logs.
STATUS | wrapper  | 2011/05/05 11:35:16 | <-- Wrapper Stopped


Version-Release number of selected component (if applicable):
Spacewalk 1.4
on a CentOS5.6 x86
java from the epel repo as descripted at the spacewalk install website
java-1.6.0-openjdk-1.6.0.0-1.20.b17.el5
java-1.6.0-openjdk-devel-1.6.0.0-1.20.b17.el5


How reproducible:

 always


Steps to Reproduce:
1. /etc/init.d/taskomatic status
RHN Taskomatic is not running.

2. /etc/init.d/taskomatic start
Starting RHN Taskomatic...

3. /etc/init.d/taskomatic status
RHN Taskomatic is running (27225).

4. tail -f /var/log/rhn/rhn_taskomatic_daemon.log
   => you will see the java error

5. /etc/init.d/taskomatic status
RHN Taskomatic is not running.


Actual results:


Expected results:


Additional info:

Comment 1 Jan Pazdziora 2011-07-20 11:49:12 UTC
Aligning under space16.

Comment 2 Tomas Lestach 2011-08-05 11:46:30 UTC
"Unsupported major.minor version 49.0" error means, you use an older java version than java the class was compiled with.

This isn't a Spacewalk bug, but java incompatibility issue.

I suggest to run:
$ alternatives --config java
to make sure 1.6 is used.

Closing as NOTABUG.


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