Project

General

Profile

Actions

Bug #6765

closed

Rudder-jetty init script fails to get openjdk version

Bug #6765: Rudder-jetty init script fails to get openjdk version

Added by Alexis Mousset over 11 years ago. Updated over 11 years ago.

Status:
Released
Priority:
3
Category:
System integration
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

# service rudder-server-root restart
[...]
/etc/init.d/rudder-jetty: line 406: [: -lt: unary operator expected

The problem is that the script looks for java version:

JAVA_VERSION=$(${JAVA} -version 2>&1 | grep "java version" | sed 's%java version \"[0-9]\.\([0-9]\)\.[0-9].*\"%\1%')

whereas the result is:

# /bin/java -version
openjdk version "1.8.0_45" 
OpenJDK Runtime Environment (build 1.8.0_45-b13)
OpenJDK 64-Bit Server VM (build 25.45-b02, mixed mode)

The JAVA_VERSION is only here to check the version compatibility, and this error does not prevent the init script from running normally.


Related issues 1 (0 open — 1 closed)

Has duplicate Rudder - Bug #6937: /etc/init.d/rudder-jetty prints error with openjdk on debian/sidRejectedActions

Updated by Alexis Mousset over 11 years ago Actions #1

  • Description updated (diff)

Updated by Vincent MEMBRÉ over 11 years ago Actions #2

  • Status changed from New to Discussion
  • Assignee set to Alexis Mousset
  • Priority changed from N/A to 3

What is the outcome with this issue ? does jetty restart correctly ? what can be the issues ?

Updated by Alexis Mousset over 11 years ago Actions #3

  • Assignee changed from Alexis Mousset to Vincent MEMBRÉ

The init script works correctly, the only issues are the error message and the fact that the init script is unable to check the java version for compatibility.

Updated by Alexis Mousset over 11 years ago Actions #4

  • Target version set to 3.0.7

Updated by Alexis Mousset over 11 years ago Actions #5

  • Status changed from Discussion to In progress
  • Assignee changed from Vincent MEMBRÉ to Alexis Mousset

Updated by Alexis Mousset over 11 years ago Actions #6

  • Pull Request set to https://github.com/Normation/rudder-packages/pull/689

Updated by Alexis Mousset over 11 years ago Actions #7

  • Status changed from In progress to Pending release
  • % Done changed from 0 to 100

Updated by Matthieu CERDA over 11 years ago Actions #8

Updated by Vincent MEMBRÉ over 11 years ago Actions #9

  • Related to Bug #6937: /etc/init.d/rudder-jetty prints error with openjdk on debian/sid added

Updated by Vincent MEMBRÉ over 11 years ago Actions #10

  • Related to deleted (Bug #6937: /etc/init.d/rudder-jetty prints error with openjdk on debian/sid)

Updated by Vincent MEMBRÉ over 11 years ago Actions #11

  • Has duplicate Bug #6937: /etc/init.d/rudder-jetty prints error with openjdk on debian/sid added

Updated by Vincent MEMBRÉ over 11 years ago Actions #12

  • Subject changed from rudder-jetty init script fails to get openjdk version to Rudder-jetty init script fails to get openjdk version

Updated by Vincent MEMBRÉ over 11 years ago Actions #13

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 3.0.7 and 3.1.0 which were released today.

Actions

Also available in: PDF Atom