Problems setting up slave via ssh

classic Classic list List threaded Threaded
2 messages Options
7DT
Reply | Threaded
Open this post in threaded view
|

Problems setting up slave via ssh

7DT
Hiya, the SSH authentication works, but then i get this error message:

[01/04/10 15:23:21] [SSH] Opening SSH connection to 10.3.1.168:22.

[01/04/10 15:23:21] [SSH] Authenticating as hudson with /var/lib/hudson/.ssh/id_rsa.

[01/04/10 15:23:21] [SSH] Authentication successful.

[01/04/10 15:23:21] [SSH] The remote users environment is:

BASH=/bin/bash

BASH_ARGC=()

BASH_ARGV=()

BASH_EXECUTION_STRING=set

BASH_LINENO=()

BASH_SOURCE=()

BASH_VERSINFO=([0]="3" [1]="2" [2]="39" [3]="1" [4]="release" [5]="i486-pc-linux-gnu")

BASH_VERSION='3.2.39(1)-release'

DIRSTACK=()

EUID=111

GROUPS=()

HOME=/var/lib/hudson

HOSTNAME=devbuild

HOSTTYPE=i486

IFS=$' \t\n'

LANG=en_GB.UTF-8

LOGNAME=hudson

MACHTYPE=i486-pc-linux-gnu

MAIL=/var/mail/hudson

OPTERR=1

OPTIND=1

OSTYPE=linux-gnu

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

PIPESTATUS=([0]="0")

PPID=14675

PS4='+ '

PWD=/var/lib/hudson

SHELL=/bin/bash

SHELLOPTS=braceexpand:hashall:interactive-comments

SHLVL=1

SSH_CLIENT='10.3.1.210 41297 22'

SSH_CONNECTION='10.3.1.210 41297 10.3.1.168 22'

TERM=dumb

UID=111

USER=hudson

_=']'

[01/04/10 15:23:21] [SSH] Checking java version of java

[01/04/10 15:23:21] [SSH] java -version returned 1.5.0.

[01/04/10 15:23:21] [SSH] Starting sftp client.

[01/04/10 15:23:21] [SSH] Copying latest slave.jar...

[01/04/10 15:23:21] [SSH] Copied 212,744 bytes.

[01/04/10 15:23:21] [SSH] Starting slave process: cd '/var/lib/hudson' && java  -jar slave.jar

<===[HUDSON REMOTING CAPACITY]===>channel started

Unexpected error in launching a slave. This is probably a bug in Hudson.

java.lang.IndexOutOfBoundsException: Index: 1997078527, Size: 0


I'm using Hudson ver. 1.338

Slave box is an ubuntu install...

Anyone have any idea what this issue could be? I've googled it, but for the life of me can't find anything on this going wrong for anyone else!
Reply | Threaded
Open this post in threaded view
|

Re: Problems setting up slave via ssh

MattyT
Hi 7DT,

I had the exact same issue you did.  I've just gotten past it by installing a 1.6 JRE on the slave (upgrading it from a 1.5 JRE).  Problem went away.   I presume either Hudson or one of the plugins we use (SLOCCount Plugin, Google Calendar Plugin, Doxygen Plugin, Warnings Plugin, Jabber Plugin, NAnt Plugin) has a dependency on 1.6.  

For reference I'd also upgraded to the latest Hudson version (1.347) from 1.339.  Both versions had the same problem.

To install the Java system (on Ubuntu 8.04) I used:

sudo apt-get install sun-java6-bin sun-java6-jdk sun-java6-jre

Previously the runtime was the GNU Java Interpreter (java-gcj-compat, 1.0.77-2ubuntu2).

Hope that helps!
Matt