Bug 702332

Summary: repo-sync in web gui doesn't work
Product: [Community] Spacewalk Reporter: thomas mayr <thomas.mayr>
Component: ServerAssignee: Tomas Lestach <tlestach>
Status: CLOSED NOTABUG QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.4CC: tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-05 11:46:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 723481    

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 (Red Hat) 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.