Hudson fails build with ConnectException on the agent

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Hudson fails build with ConnectException on the agent

Asmann, Roland
Hi all,

I've been having some problems running builds on Hudson. The error I get
is the following (paths shortened for readability):

java -cp maven-agent-1.379.jar;classworlds-1.1.jar
hudson.maven.agent.Main apache-maven-2.0.9 remoting-1.379.jar
maven-interceptor-1.379.jar 8080
Exception in thread "main" java.net.ConnectException: Connection
refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:367)
        at java.net.Socket.connect(Socket.java:524)
        at java.net.Socket.connect(Socket.java:474)
        at java.net.Socket.<init>(Socket.java:371)
        at java.net.Socket.<init>(Socket.java:184)
        at hudson.maven.agent.Main.main(Main.java:119)
        at hudson.maven.agent.Main.main(Main.java:62)
ERROR: Failed to launch Maven. Exit code = 1

Now, sometimes the builds just run fine, but sometimes they give me this
error.

Somehow I got the feeling it's because of the port that Hudson is trying
to use (8080), although the port is NOT in use atm...

Anybody have any idea what could be wrong or how I can tell Hudson to
use a certain port-number of the builds?

Thanks!

--
Roland Asmann
Senior Software Engineer

adesso Austria GmbH
Floridotower 26. Stock              T +43 1 2198790-27
Floridsdorfer Hauptstr. 1           F +43 1 2198790-927
A-1210 Wien                         E [hidden email]
                                       www.adesso.at

-------------------------------------------------------------
             >>> business. people. technology. <<<
-------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Hudson fails build with ConnectException on the agent

Asmann, Roland
OK, so right at this moment it happens on a build that sets a higher
port as well!


On 08.11.2010 13:02, Asmann, Roland wrote:

> Hi all,
>
> I've been having some problems running builds on Hudson. The error I get
> is the following (paths shortened for readability):
>
> java -cp maven-agent-1.379.jar;classworlds-1.1.jar
> hudson.maven.agent.Main apache-maven-2.0.9 remoting-1.379.jar
> maven-interceptor-1.379.jar 8080
> Exception in thread "main" java.net.ConnectException: Connection
> refused: connect
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:367)
> at java.net.Socket.connect(Socket.java:524)
> at java.net.Socket.connect(Socket.java:474)
> at java.net.Socket.<init>(Socket.java:371)
> at java.net.Socket.<init>(Socket.java:184)
> at hudson.maven.agent.Main.main(Main.java:119)
> at hudson.maven.agent.Main.main(Main.java:62)
> ERROR: Failed to launch Maven. Exit code = 1
>
> Now, sometimes the builds just run fine, but sometimes they give me this
> error.
>
> Somehow I got the feeling it's because of the port that Hudson is trying
> to use (8080), although the port is NOT in use atm...
>
> Anybody have any idea what could be wrong or how I can tell Hudson to
> use a certain port-number of the builds?
>
> Thanks!
>
> --
> Roland Asmann
> Senior Software Engineer
>
> adesso Austria GmbH
> Floridotower 26. Stock T +43 1 2198790-27
> Floridsdorfer Hauptstr. 1 F +43 1 2198790-927
> A-1210 Wien E [hidden email]
> www.adesso.at
>
> -------------------------------------------------------------
>  >>> business. people. technology. <<<
> -------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

--
Roland Asmann
Senior Software Engineer

adesso Austria GmbH
Floridotower 26. Stock              T +43 1 2198790-27
Floridsdorfer Hauptstr. 1           F +43 1 2198790-927
A-1210 Wien                         M +43 664 88657566
                                    E [hidden email]
                                    W www.adesso.at

-------------------------------------------------------------
             >>> business. people. technology. <<<
-------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Hudson fails build with ConnectException on the agent

Stuart Grimshaw
In reply to this post by Asmann, Roland
On 08/11/2010 12:02, Asmann, Roland wrote:
> Hi all,
>
> I've been having some problems running builds on Hudson. The error I get
> is the following (paths shortened for readability):
>
> java -cp maven-agent-1.379.jar;classworlds-1.1.jar
> hudson.maven.agent.Main apache-maven-2.0.9 remoting-1.379.jar
> maven-interceptor-1.379.jar 8080

I'm not sure that Maven is trying to connect to, possibly Hudson, but
I'd start by using a newer version of Maven, 2.0.9 is quite out of date.

2.2.1 is that latest version of 2.x and if you're going to be upgrading,
why not try 3.0 which is largely backward compatible.

--
+
| Stuart Grimshaw                               Broadband Solutions for
| Engineering Manager                                 Home & Business @
| Plusnet Plc                                              www.plus.net
| GPG KeyID: B6733BB9, subkeys.pgp.net
| Registered Office: Internet House, 2 Tenter Street, Sheffield, S1 4BY
| Registered in England no: 3279013
+ ---------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Hudson fails build with ConnectException on the agent

Asmann, Roland
It is definitely NOT Maven that is trying to connect on the port, I have
no problems whatsoever running the builds in normal development.

Upgrading Maven is not possible, and it wouldn't help a thing, seeing it
is not the problem!


On 08.11.2010 13:08, Stuart Grimshaw wrote:

> On 08/11/2010 12:02, Asmann, Roland wrote:
>  > Hi all,
>  >
>  > I've been having some problems running builds on Hudson. The error I get
>  > is the following (paths shortened for readability):
>  >
>  > java -cp maven-agent-1.379.jar;classworlds-1.1.jar
>  > hudson.maven.agent.Main apache-maven-2.0.9 remoting-1.379.jar
>  > maven-interceptor-1.379.jar 8080
>
> I'm not sure that Maven is trying to connect to, possibly Hudson, but
> I'd start by using a newer version of Maven, 2.0.9 is quite out of date.
>
> 2.2.1 is that latest version of 2.x and if you're going to be upgrading,
> why not try 3.0 which is largely backward compatible.
>
> --
> +
> | Stuart Grimshaw Broadband Solutions for
> | Engineering Manager Home & Business @
> | Plusnet Plc www.plus.net
> | GPG KeyID: B6733BB9, subkeys.pgp.net
> | Registered Office: Internet House, 2 Tenter Street, Sheffield, S1 4BY
> | Registered in England no: 3279013
> + ---------------------------------------------------------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

--
Roland Asmann
Senior Software Engineer

adesso Austria GmbH
Floridotower 26. Stock              T +43 1 2198790-27
Floridsdorfer Hauptstr. 1           F +43 1 2198790-927
A-1210 Wien                         M +43 664 88657566
                                    E [hidden email]
                                    W www.adesso.at

-------------------------------------------------------------
             >>> business. people. technology. <<<
-------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Hudson fails build with ConnectException on the agent

Stuart Grimshaw
Does enabling full error reports in Maven (-e) or debugging (-X) give
any more information about what's trying to connect to where?

On 08/11/2010 12:15, Asmann, Roland wrote:
> It is definitely NOT Maven that is trying to connect on the port, I have
> no problems whatsoever running the builds in normal development.
>
> Upgrading Maven is not possible, and it wouldn't help a thing, seeing it
> is not the problem!

--
+
| Stuart Grimshaw                               Broadband Solutions for
| Engineering Manager                                 Home & Business @
| Plusnet Plc                                              www.plus.net
| GPG KeyID: B6733BB9, subkeys.pgp.net
| Registered Office: Internet House, 2 Tenter Street, Sheffield, S1 4BY
| Registered in England no: 3279013
+ ---------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]