Quantcast

Hudson not including "ant.bat" in invocation

classic Classic list List threaded Threaded
39 messages Options
12
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Hudson not including "ant.bat" in invocation

Dewey Sasser
Basic symptom:  Hudson console on slave:

    d:\temp\hudson\workspace\Test Project>exit 0
    [testProject] $ cmd.exe /C '"&& exit %%ERRORLEVEL%%"'
    && was unexpected at this time.
    finished: FAILURE

It seems that Hudson is not including the "ant.bat" command.  That file
*does* exist in the defined $ANT_HOME/bin.

I have 2 ant versions defined, with paths "/tools/devtools/trunk" and
"/tools/devtools/BRANCH" respectively.  I have 4 slaves, all currently
Windows machines, but I don't want to include a drive letter because
I'll be adding Linux in the near future.  However, this ant selection
strategy runs on *none* of my slave machines, though it works on the master.

I select the right version of ant for each individual build.

My suspicion is that there is a subtle misconfiguration, but I don't
understand enough of how Hudson selects the ant to run to know where to
look.

Can anyone give me a suggestion as to how to debug or fix?

Thanks

--
Dewey



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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Hudson not including "ant.bat" in invocation

Dewey Sasser
Dewey Sasser wrote:
> Basic symptom:  Hudson console on slave:
>
>    d:\temp\hudson\workspace\Test Project>exit 0    [testProject] $
> cmd.exe /C '"&& exit %%ERRORLEVEL%%"'
>    && was unexpected at this time.
>    finished: FAILURE
>
> It seems that Hudson is not including the "ant.bat" command.  That
> file *does* exist in the defined $ANT_HOME/bin.
I'm hopefully chasing a clue here:  might Hudson be checking for the ant
path relative to it's start-up drive?  I'm universally starting Hudson
with the web-start slave agent, which is probably taking "c:" as it's
home drive, but my slaves have hudson home on the "d:" drive.

Can someone who knows Hudson internals check me on this?

Thanks,

--
Dewey


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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

RE: Hudson not including "ant.bat" in invocation

Adam Purkiss
I cannot confirm but IIRC there is an existing issue where slave and master setup have to be the same.
 
It would make sense that drive letter would be included in that possibly.






> Date: Wed, 9 Apr 2008 10:48:47 -0400

> From: [hidden email]
> To: [hidden email]
> Subject: Re: Hudson not including "ant.bat" in invocation
>
> Dewey Sasser wrote:
> > Basic symptom: Hudson console on slave:
> >
> > d:\temp\hudson\workspace\Test Project>exit 0 [testProject] $
> > cmd.exe /C '"&& exit %%ERRORLEVEL%%"'
> > && was unexpected at this time.
> > finished: FAILURE
> >
> > It seems that Hudson is not including the "ant.bat" command. That
> > file *does* exist in the defined $ANT_HOME/bin.
> I'm hopefully chasing a clue here: might Hudson be checking for the ant
> path relative to it's start-up drive? I'm universally starting Hudson
> with the web-start slave agent, which is probably taking "c:" as it's
> home drive, but my slaves have hudson home on the "d:" drive.
>
> Can someone who knows Hudson internals check me on this?
>
> Thanks,
>
> --
> Dewey
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>



Sign in to Windows Live Messenger, and enter for your chance to win $1000 a day—today until May 12th. Visit SignInAndWIN.ca
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

hudson not starting

Adam Purkiss
In reply to this post by Dewey Sasser
I just got access to a unix box to run hudson on and decided to try out the winstone stuff
 
I got my own hudson user where I have installed hudson into a hudson dir but when I run the command  /usr/java/jdk1.5.0_15/bin/java -jar hudson.war
I get
 
Exception in thread "main" java.io.IOException: Permission denied
        at java.io.UnixFileSystem.createFileExclusively(Native Method)
        at java.io.File.checkAndCreate(File.java:1345)
        at java.io.File.createTempFile(File.java:1434)
        at java.io.File.createTempFile(File.java:1471)
        at Main.main(Main.java:29)

 
I thoguht this had all been fixed?
 
Can I set a param to change the extration dir to inside my users folder?


Sign in today. When you sign in to Windows Live Messenger you could win $1000 a day until May 12th. Learn more at SignInAndWIN.ca
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: hudson not starting

Erik Ramfelt
You can change the temp java dir using the flag "-Djava.io.tmpdir=../tmp".

//Erik

On Wed, Apr 9, 2008 at 5:55 PM, Adam Purkiss <[hidden email]> wrote:

>
> I just got access to a unix box to run hudson on and decided to try out the
> winstone stuff
>
>  I got my own hudson user where I have installed hudson into a hudson dir
> but when I run the command  /usr/java/jdk1.5.0_15/bin/java -jar hudson.war
>  I get
>
>  Exception in thread "main" java.io.IOException: Permission denied
>         at java.io.UnixFileSystem.createFileExclusively(Native Method)
>         at java.io.File.checkAndCreate(File.java:1345)
>         at java.io.File.createTempFile(File.java:1434)
>         at java.io.File.createTempFile(File.java:1471)
>         at Main.main(Main.java:29)
>
>
>  I thoguht this had all been fixed?
>
>  Can I set a param to change the extration dir to inside my users folder?
>
> ________________________________
> Sign in today. When you sign in to Windows Live Messenger you could win
> $1000 a day until May 12th. Learn more at SignInAndWIN.ca

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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

RE: hudson not starting

Adam Purkiss
That solved it thanks




> Date: Wed, 9 Apr 2008 18:00:40 +0200

> From: [hidden email]
> To: [hidden email]
> Subject: Re: hudson not starting
>
> You can change the temp java dir using the flag "-Djava.io.tmpdir=../tmp".
>
> //Erik
>
> On Wed, Apr 9, 2008 at 5:55 PM, Adam Purkiss <[hidden email]> wrote:
> >
> > I just got access to a unix box to run hudson on and decided to try out the
> > winstone stuff
> >
> > I got my own hudson user where I have installed hudson into a hudson dir
> > but when I run the command /usr/java/jdk1.5.0_15/bin/java -jar hudson.war
> > I get
> >
> > Exception in thread "main" java.io.IOException: Permission denied
> > at java.io.UnixFileSystem.createFileExclusively(Native Method)
> > at java.io.File.checkAndCreate(File.java:1345)
> > at java.io.File.createTempFile(File.java:1434)
> > at java.io.File.createTempFile(File.java:1471)
> > at Main.main(Main.java:29)
> >
> >
> > I thoguht this had all been fixed?
> >
> > Can I set a param to change the extration dir to inside my users folder?
> >
> > ________________________________
> > Sign in today. When you sign in to Windows Live Messenger you could win
> > $1000 a day until May 12th. Learn more at SignInAndWIN.ca
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


Sign in to Windows Live Messenger, and enter for your chance to win $1000 a day—today until May 12th. Visit SignInAndWIN.ca
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: hudson not starting

Kohsuke Kawaguchi
Administrator
In reply to this post by Adam Purkiss

Do you still have the entire stack trace by any chance?

I'd like Hudson to diagnose this problem a little better.

Adam Purkiss wrote:

> I just got access to a unix box to run hudson on and decided to try out the winstone stuff
>  
> I got my own hudson user where I have installed hudson into a hudson dir but when I run the command  /usr/java/jdk1.5.0_15/bin/java -jar hudson.war I get
>  
> Exception in thread "main" java.io.IOException: Permission denied        at java.io.UnixFileSystem.createFileExclusively(Native Method)        at java.io.File.checkAndCreate(File.java:1345)        at java.io.File.createTempFile(File.java:1434)        at java.io.File.createTempFile(File.java:1471)        at Main.main(Main.java:29)
>  
> I thoguht this had all been fixed?
>  
> Can I set a param to change the extration dir to inside my users folder?
> _________________________________________________________________
> Try Chicktionary, a game that tests how many words you can form from the letters given. Find this and more puzzles at Live Search Games!
> http://g.msn.ca/ca55/207
>

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

RE: hudson not starting

Adam Purkiss
That was the stack trace it gave me to the output unles it logs it somewhere else ?
 
I can easily set it up again by removing the java tmp setting






> Date: Wed, 9 Apr 2008 10:03:23 -0700

> From: [hidden email]
> To: [hidden email]
> Subject: Re: hudson not starting
>
>
> Do you still have the entire stack trace by any chance?
>
> I'd like Hudson to diagnose this problem a little better.
>
> Adam Purkiss wrote:
> > I just got access to a unix box to run hudson on and decided to try out the winstone stuff
> >
> > I got my own hudson user where I have installed hudson into a hudson dir but when I run the command /usr/java/jdk1.5.0_15/bin/java -jar hudson.war I get
> >
> > Exception in thread "main" java.io.IOException: Permission denied at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(File.java:1345) at java.io.File.createTempFile(File.java:1434) at java.io.File.createTempFile(File.java:1471) at Main.main(Main.java:29)
> >
> > I thoguht this had all been fixed?
> >
> > Can I set a param to change the extration dir to inside my users folder?
> > _________________________________________________________________
> > Try Chicktionary, a game that tests how many words you can form from the letters given. Find this and more puzzles at Live Search Games!
> > http://g.msn.ca/ca55/207
> >
>
>
> --
> Kohsuke Kawaguchi
> Sun Microsystems [hidden email]



Sign in today. When you sign in to Windows Live Messenger you could win $1000 a day until May 12th. Learn more at SignInAndWIN.ca
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

running it on linux

Adam Purkiss
In reply to this post by Kohsuke Kawaguchi
While I wait for my transfer from my windows box to my all new linux box I thought I would ask this simple question as its about all I can do to write an email I have slowed everything down, lol
 
What is the best way from using putty to start/stop hudson using winstone as the app server, or more to the point how can I start it so that when I kill putty the app server still runs and then how do I cleanly stop it at a later point when I want to do an update to hudson or a plugin
 
 
Figure there should be enough of you out there that have done it to answer this quickly. If not I still got a few hours to kill while my machine transfers build history data


Sign in now! Windows Live Messenger is giving you a chance to win $1000 a day until May 12th Check out SignInAndWIN.ca today!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: running it on linux

Erik Ramfelt
On Wed, Apr 9, 2008 at 10:25 PM, Adam Purkiss <[hidden email]> wrote:
>
> While I wait for my transfer from my windows box to my all new linux box I
> thought I would ask this simple question as its about all I can do to write
> an email I have slowed everything down, lol
>
>  What is the best way from using putty to start/stop hudson using winstone
> as the app server, or more to the point how can I start it so that when I
> kill putty the app server still runs and then how do I cleanly stop it at a
> later point when I want to do an update to hudson or a plugin

Im using the Java Service Wrapper,
http://wrapper.tanukisoftware.org/doc/english/download.jsp, which
starts the Hudson daemon as any other daemon at startup. Using it, you
can just do "/etc/init.d/hudson start/stop" to start and stop it. Let
me know if you want help and I will write the required steps (and
perhaps add them to the wiki).

For simple apps, there is always the best linux tool "screen".
"screen" is like a text based vnc, you start programs in it, detach
from it, log off, log on, attach to the running screen and continue
where you left of.

//Erik
>
>
>  Figure there should be enough of you out there that have done it to answer
> this quickly. If not I still got a few hours to kill while my machine
> transfers build history data
>
> ________________________________
> Sign in now! Windows Live Messenger is giving you a chance to win $1000 a
> day until May 12th Check out SignInAndWIN.ca today!

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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

RE: running it on linux

Adam Purkiss
If you have time it would be great to have the steps... Also a perfect thing to add to the wiki
 
I am going to have a stab myself anyway






> Date: Wed, 9 Apr 2008 22:39:16 +0200

> From: [hidden email]
> To: [hidden email]
> Subject: Re: running it on linux
>
> On Wed, Apr 9, 2008 at 10:25 PM, Adam Purkiss <[hidden email]> wrote:
> >
> > While I wait for my transfer from my windows box to my all new linux box I
> > thought I would ask this simple question as its about all I can do to write
> > an email I have slowed everything down, lol
> >
> > What is the best way from using putty to start/stop hudson using winstone
> > as the app server, or more to the point how can I start it so that when I
> > kill putty the app server still runs and then how do I cleanly stop it at a
> > later point when I want to do an update to hudson or a plugin
>
> Im using the Java Service Wrapper,
> http://wrapper.tanukisoftware.org/doc/english/download.jsp, which
> starts the Hudson daemon as any other daemon at startup. Using it, you
> can just do "/etc/init.d/hudson start/stop" to start and stop it. Let
> me know if you want help and I will write the required steps (and
> perhaps add them to the wiki).
>
> For simple apps, there is always the best linux tool "screen".
> "screen" is like a text based vnc, you start programs in it, detach
> from it, log off, log on, attach to the running screen and continue
> where you left of.
>
> //Erik
> >
> >
> > Figure there should be enough of you out there that have done it to answer
> > this quickly. If not I still got a few hours to kill while my machine
> > transfers build history data
> >
> > ________________________________
> > Sign in now! Windows Live Messenger is giving you a chance to win $1000 a
> > day until May 12th Check out SignInAndWIN.ca today!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>



Sign in today. When you sign in to Windows Live Messenger you could win $1000 a day until May 12th. Learn more at SignInAndWIN.ca
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

RE: RE: running it on linux

Tim Hepner

I use the nohup command for this.  Try man nohup.  You basically pass the command to nohup and redirect stderr and stdout to file.

 

Example

            nohup java -jar hudson/hudson.war  2>&1 > hudson.out &

 


From: Adam Purkiss [mailto:[hidden email]]
Sent: Wednesday, April 09, 2008 1:47 PM
To: [hidden email]
Subject: RE: running it on linux

 

If you have time it would be great to have the steps... Also a perfect thing to add to the wiki
 
I am going to have a stab myself anyway





> Date: Wed, 9 Apr 2008 22:39:16 +0200
> From: [hidden email]
> To: [hidden email]
> Subject: Re: running it on linux
>
> On Wed, Apr 9, 2008 at 10:25 PM, Adam Purkiss <[hidden email]> wrote:
> >
> > While I wait for my transfer from my windows box to my all new linux box I
> > thought I would ask this simple question as its about all I can do to write
> > an email I have slowed everything down, lol
> >
> > What is the best way from using putty to start/stop hudson using winstone
> > as the app server, or more to the point how can I start it so that when I
> > kill putty the app server still runs and then how do I cleanly stop it at a
> > later point when I want to do an update to hudson or a plugin
>
> Im using the Java Service Wrapper,
> http://wrapper.tanukisoftware.org/doc/english/download.jsp, which
> starts the Hudson daemon as any other daemon at startup. Using it, you
> can just do "/etc/init.d/hudson start/stop" to start and stop it. Let
> me know if you want help and I will write the required steps (and
> perhaps add them to the wiki).
>
> For simple apps, there is always the best linux tool "screen".
> "screen" is like a text based vnc, you start programs in it, detach
> from it, log off, log on, attach to the running screen and continue
> where you left of.
>
> //Erik
> >
> >
> > Figure there should be enough of you out there that have done it to answer
> > this quickly. If not I still got a few hours to kill while my machine
> > transfers build history data
> >
> > ________________________________
> > Sign in now! Windows Live Messenger is giving you a chance to win $1000 a
> > day until May 12th Check out SignInAndWIN.ca today!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


Sign in today. When you sign in to Windows Live Messenger you could win $1000 a day until May 12th. Learn more at SignInAndWIN.ca

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

RE: running it on linux

Adam Purkiss
So I take it you have to kill the process to stop hudson?




Date: Wed, 9 Apr 2008 15:37:35 -0700
From: [hidden email]
To: [hidden email]
Subject: RE: RE: running it on linux

I use the nohup command for this.  Try man nohup.  You basically pass the command to nohup and redirect stderr and stdout to file.

 

Example

            nohup java -jar hudson/hudson.war  2>&1 > hudson.out &

 


From: Adam Purkiss [mailto:[hidden email]]
Sent: Wednesday, April 09, 2008 1:47 PM
To: [hidden email]
Subject: RE: running it on linux

 

If you have time it would be great to have the steps... Also a perfect thing to add to the wiki
 
I am going to have a stab myself anyway





> Date: Wed, 9 Apr 2008 22:39:16 +0200
> From: [hidden email]
> To: [hidden email]
> Subject: Re: running it on linux
>
> On Wed, Apr 9, 2008 at 10:25 PM, Adam Purkiss <[hidden email]> wrote:
> >
> > While I wait for my transfer from my windows box to my all new linux box I
> > thought I would ask this simple question as its about all I can do to write
> > an email I have slowed everything down, lol
> >
> > What is the best way from using putty to start/stop hudson using winstone
> > as the app server, or more to the point how can I start it so that when I
> > kill putty the app server still runs and then how do I cleanly stop it at a
> > later point when I want to do an update to hudson or a plugin
>
> Im using the Java Service Wrapper,
> http://wrapper.tanukisoftware.org/doc/english/download.jsp, which
> starts the Hudson daemon as any other daemon at startup. Using it, you
> can just do "/etc/init.d/hudson start/stop" to start and stop it. Let
> me know if you want help and I will write the required steps (and
> perhaps add them to the wiki).
>
> For simple apps, there is always the best linux tool "screen".
> "screen" is like a text based vnc, you start programs in it, detach
> from it, log off, log on, attach to the running screen and continue
> where you left of.
>
> //Erik
> >
> >
> > Figure there should be enough of you out there that have done it to answer
> > this quickly. If not I still got a few hours to kill while my machine
> > transfers build history data
> >
> > ________________________________
> > Sign in now! Windows Live Messenger is giving you a chance to win $1000 a
> > day until May 12th Check out SignInAndWIN.ca today!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


Sign in today. When you sign in to Windows Live Messenger you could win $1000 a day until May 12th. Learn more at SignInAndWIN.ca



Sign in today. When you sign in to Windows Live Messenger you could win $1000 a day until May 12th. Learn more at SignInAndWIN.ca
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

IBM JVM Issues and Huson

Chris Graham-2

Hi All.

        Has anyone else seen or heard of issues in getting Huson to run it's build under the IBM J9 VM?

        In this case, it is a maven project:

Parsing POMs
[test] $ "C:\Program Files\IBM\SDP70\jdk/bin/java" -cp C:\TEMP\APCPG\winstone\hudson.war\WEB-INF\lib\maven-agent-1.206.jar;C:\maven-2.0.8\boot\classworlds-1.1.jar hudson.maven.agent.Main C:\maven-2.0.8 C:\TEMP\APCPG\winstone\hudson.war\WEB-INF\lib\remoting-1.206.jar C:\TEMP\APCPG\winstone\hudson.war\WEB-INF\lib\maven-interceptor-1.206.jar
���ERROR: Failed to parse POMs
java.io.StreamCorruptedException: invalid stream header
                at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
                at java.io.ObjectInputStream.<init>(Unknown Source)
                at hudson.remoting.Channel.<init>(Channel.java:277)
                at hudson.remoting.Channel.<init>(Channel.java:212)
                at hudson.Launcher$LocalLauncher$1.<init>(Launcher.java:310)
                at hudson.Launcher$LocalLauncher.launchChannel(Launcher.java:309)
                at hudson.maven.MavenProcessFactory.newProcess(MavenProcessFactory.java:68)
                at hudson.maven.ProcessCache.get(ProcessCache.java:170)
                at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:286)
                at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:224)
                at hudson.model.Run.run(Run.java:749)
                at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:189)
                at hudson.model.ResourceController.execute(ResourceController.java:70)
                at hudson.model.Executor.run(Executor.java:71)
finished: FAILURE




The three characters before the "ERROR: Failed to parse POMs" line are garbage


Has anyone seen such a failure like this before?

-Chris

**********************************************************************
CAUTION - This message is intended for the addressee named above. It may contain privileged or confidential information.

If you are not the intended recipient of this message you must:
- Not use, copy, distribute or disclose it to anyone other than the addressee;
- Notify the sender via return email; and
- Delete the message (and any related attachments) from your computer immediately.

Internet emails are not necessarily secure. Australian Associated Motors Insurers Limited ABN 92 004 791 744 (AAMI), and its related entities, do not accept responsibility for changes made to this message after it was sent.

Unless otherwise stated, views expressed within this email are the author's own and do not represent those of AAMI.
**********************************************************************
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

VM Issues

Chris Graham-2

I may have missed this, but is there any way to configure the properties of a specific JDK/VM?

I've added a second JDK, so it now shows up as a choice for each project.

But I can not seem to find a way to specify any specific settings for each JDK?

Is there a place to do this?

In this instance, I can not rely on the settings of the VM that Hudson is running in is the same as what the job tasks are spawned under.

TIA.

-Chris

**********************************************************************
CAUTION - This message is intended for the addressee named above. It may contain privileged or confidential information.

If you are not the intended recipient of this message you must:
- Not use, copy, distribute or disclose it to anyone other than the addressee;
- Notify the sender via return email; and
- Delete the message (and any related attachments) from your computer immediately.

Internet emails are not necessarily secure. Australian Associated Motors Insurers Limited ABN 92 004 791 744 (AAMI), and its related entities, do not accept responsibility for changes made to this message after it was sent.

Unless otherwise stated, views expressed within this email are the author's own and do not represent those of AAMI.
**********************************************************************
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: running it on linux

Clemens Anhuth
In reply to this post by Adam Purkiss
Adam Purkiss wrote:

> While I wait for my transfer from my windows box to my all
> new linux box I thought I would ask this simple question as
> its about all I can do to write an email I have slowed
> everything down, lol
>
> What is the best way from using putty to start/stop hudson
> using winstone as the app server, or more to the point how
> can I start it so that when I kill putty the app server still
> runs and then how do I cleanly stop it at a later point when
> I want to do an update to hudson or a plugin
>
>
> Figure there should be enough of you out there that have done
> it to answer this quickly. If not I still got a few hours to
> kill while my machine transfers build history data

Adam,

aside of the already mentioned service wrapper, Winstone seems
use the Java shutdown hook, so that on Windows (I guess any
other OS too) you can use CTRL+C to have it shut down.

Similarly it should be okay to send it a signal via "kill" on
Unixoids. If you start it have your start script write the
process ID to a file, so that you can later use that to send a
signal via kill to the process with that ID.



Bye bye

clemens

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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

RE: RE: running it on linux

Tim Hepner
In reply to this post by Adam Purkiss

yes

 


From: Adam Purkiss [mailto:[hidden email]]
Sent: Wednesday, April 09, 2008 7:59 PM
To: [hidden email]
Subject: RE: running it on linux

 

So I take it you have to kill the process to stop hudson?



Date: Wed, 9 Apr 2008 15:37:35 -0700
From: [hidden email]
To: [hidden email]
Subject: RE: RE: running it on linux

I use the nohup command for this.  Try man nohup.  You basically pass the command to nohup and redirect stderr and stdout to file.

 

Example

            nohup java -jar hudson/hudson.war  2>&1 > hudson.out &

 


From: Adam Purkiss [mailto:[hidden email]]
Sent: Wednesday, April 09, 2008 1:47 PM
To: [hidden email]
Subject: RE: running it on linux

 

If you have time it would be great to have the steps... Also a perfect thing to add to the wiki
 
I am going to have a stab myself anyway




> Date: Wed, 9 Apr 2008 22:39:16 +0200
> From: [hidden email]
> To: [hidden email]
> Subject: Re: running it on linux
>
> On Wed, Apr 9, 2008 at 10:25 PM, Adam Purkiss <[hidden email]> wrote:
> >
> > While I wait for my transfer from my windows box to my all new linux box I
> > thought I would ask this simple question as its about all I can do to write
> > an email I have slowed everything down, lol
> >
> > What is the best way from using putty to start/stop hudson using winstone
> > as the app server, or more to the point how can I start it so that when I
> > kill putty the app server still runs and then how do I cleanly stop it at a
> > later point when I want to do an update to hudson or a plugin
>
> Im using the Java Service Wrapper,
> http://wrapper.tanukisoftware.org/doc/english/download.jsp, which
> starts the Hudson daemon as any other daemon at startup. Using it, you
> can just do "/etc/init.d/hudson start/stop" to start and stop it. Let
> me know if you want help and I will write the required steps (and
> perhaps add them to the wiki).
>
> For simple apps, there is always the best linux tool "screen".
> "screen" is like a text based vnc, you start programs in it, detach
> from it, log off, log on, attach to the running screen and continue
> where you left of.
>
> //Erik
> >
> >
> > Figure there should be enough of you out there that have done it to answer
> > this quickly. If not I still got a few hours to kill while my machine
> > transfers build history data
> >
> > ________________________________
> > Sign in now! Windows Live Messenger is giving you a chance to win $1000 a
> > day until May 12th Check out SignInAndWIN.ca today!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


Sign in today. When you sign in to Windows Live Messenger you could win $1000 a day until May 12th. Learn more at SignInAndWIN.ca

 


Sign in today. When you sign in to Windows Live Messenger you could win $1000 a day until May 12th. Learn more at SignInAndWIN.ca

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: hudson not starting

Kohsuke Kawaguchi
Administrator
In reply to this post by Adam Purkiss
Adam Purkiss wrote:
> That was the stack trace it gave me to the output unles it logs it somewhere else ?
>  
> I can easily set it up again by removing the java tmp setting

Thanks. In 1.207 I modified Hudson to report where the temporary
directory is.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: running it on linux

Kohsuke Kawaguchi
Administrator
In reply to this post by Erik Ramfelt
Erik Ramfelt wrote:

> On Wed, Apr 9, 2008 at 10:25 PM, Adam Purkiss <[hidden email]> wrote:
>>
>> While I wait for my transfer from my windows box to my all new linux box I
>> thought I would ask this simple question as its about all I can do to write
>> an email I have slowed everything down, lol
>>
>>  What is the best way from using putty to start/stop hudson using winstone
>> as the app server, or more to the point how can I start it so that when I
>> kill putty the app server still runs and then how do I cleanly stop it at a
>> later point when I want to do an update to hudson or a plugin
>
> Im using the Java Service Wrapper,
> http://wrapper.tanukisoftware.org/doc/english/download.jsp, which
> starts the Hudson daemon as any other daemon at startup. Using it, you
> can just do "/etc/init.d/hudson start/stop" to start and stop it. Let
> me know if you want help and I will write the required steps (and
> perhaps add them to the wiki).
>
> For simple apps, there is always the best linux tool "screen".
> "screen" is like a text based vnc, you start programs in it, detach
> from it, log off, log on, attach to the running screen and continue
> where you left of.
I started
http://hudson.gotdns.com/wiki/display/HUDSON/Installing+Hudson+as+a+Unix+daemon

It would be great if you can add it there.


I wonder if we can automate this kind of installation from Hudson. That
is, you run Hudson normally first, like "java -jar hudson.war", then
from the web UI you select "install this as a Unix daemon", and Hudson
installs itself.

Then people won't have to read instructions!


I think /etc/init.d would work with most Unix flavors that justify the
effort.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: IBM JVM Issues and Huson

Kohsuke Kawaguchi
Administrator
In reply to this post by Chris Graham-2

Hmm...

If you run the command that Hudson is executing from terminal, what
output do you get?

[hidden email] wrote:

> Hi All.
>
>         Has anyone else seen or heard of issues in getting Huson to run
> it's build under the IBM J9 VM?
>
>         In this case, it is a maven project:
>
> Parsing POMs
> [test] $ "C:\Program Files\IBM\SDP70\jdk/bin/java" -cp
> C:\TEMP\APCPG\winstone\hudson.war\WEB-INF\lib\maven-agent-1.206.jar;C:\maven-2.0.8\boot\classworlds-1.1.jar
> hudson.maven.agent.Main C:\maven-2.0.8
> C:\TEMP\APCPG\winstone\hudson.war\WEB-INF\lib\remoting-1.206.jar
> C:\TEMP\APCPG\winstone\hudson.war\WEB-INF\lib\maven-interceptor-1.206.jar
> ���ERROR: Failed to parse POMs
> java.io.StreamCorruptedException: invalid stream header
>                  at java.io.ObjectInputStream.readStreamHeader(Unknown
> Source)
>                  at java.io.ObjectInputStream.<init>(Unknown Source)
>                  at hudson.remoting.Channel.<init>(Channel.java:277)
>                  at hudson.remoting.Channel.<init>(Channel.java:212)
>                  at
> hudson.Launcher$LocalLauncher$1.<init>(Launcher.java:310)
>                  at
> hudson.Launcher$LocalLauncher.launchChannel(Launcher.java:309)
>                  at
> hudson.maven.MavenProcessFactory.newProcess(MavenProcessFactory.java:68)
>                  at hudson.maven.ProcessCache.get(ProcessCache.java:170)
>                  at
> hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:286)
>                  at
> hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:224)
>                  at hudson.model.Run.run(Run.java:749)
>                  at
> hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:189)
>                  at
> hudson.model.ResourceController.execute(ResourceController.java:70)
>                  at hudson.model.Executor.run(Executor.java:71)
> finished: FAILURE
>
>
>
> The three characters before the "ERROR: Failed to parse POMs" line are
> garbage
>
>
> Has anyone seen such a failure like this before?
>

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]


smime.p7s (4K) Download Attachment
12
Loading...