Shutting down a secured Hudson

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Shutting down a secured Hudson

Ficker, Martin
Shutting down a secured Hudson

Hello,
Our Hudson is shutdwon each night automatically , before this hudsonurl/quietDown is called to prevent start of new builds.

If I want to run Hudson in secured mode, how could I still trigger "quietDown"?

Best regards,

Martin

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

Re: Shutting down a secured Hudson

stephenconnolly
AFAIK, you can use BASIC authentication with wget or curl to trigger the url

On Nov 28, 2007 9:53 AM, Ficker, Martin <[hidden email]> wrote:

Hello,
Our Hudson is shutdwon each night automatically , before this hudsonurl/quietDown is called to prevent start of new builds.

If I want to run Hudson in secured mode, how could I still trigger "quietDown"?

Best regards,

Martin


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

AW: Re: Shutting down a secured Hudson

Ficker, Martin
Nachricht
I've tried
 
 
and
wget http://hudsonurl:8080/quietDown --http-user=username --http-password=password
Both fail with and "Unkown authentification scheme".
 
Best regards
 
Martin

-----Ursprüngliche Nachricht-----
Von: Stephen Connolly [mailto:[hidden email]]
Gesendet: Mittwoch, 28. November 2007 11:01
An: [hidden email]
Betreff: Re: Shutting down a secured Hudson

AFAIK, you can use BASIC authentication with wget or curl to trigger the url

On Nov 28, 2007 9:53 AM, Ficker, Martin <[hidden email]> wrote:

Hello,
Our Hudson is shutdwon each night automatically , before this hudsonurl/quietDown is called to prevent start of new builds.

If I want to run Hudson in secured mode, how could I still trigger "quietDown"?

Best regards,

Martin


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

Re: Re: Shutting down a secured Hudson

Joshua McKinnon
I am also attempting to setup a way to gracefully remotely shut down
my trusty group of Hudson servers for maintenance - most of which I
have setup to use security. I know the security is the security of the
container itself. I just tried wget as well and basic http auth
doesn't cut it. I had hoped to maybe combine two URLs, but a brief
look showed that the auth form seems to get handled by some
javascript, as opposed to a URL to post to.

It would be quite useful to be able to do this - while I can signal
Tomcat to shutdown on a given build machine, that doesn't guarantee me
that Hudson won't be running jobs if I can't quietDown for some period
beforehand.


Joshua

On Nov 28, 2007 5:18 AM, Ficker, Martin <[hidden email]> wrote:

>
>
> I've tried
>
> wget http://username:password@hudsonurl:8080/quietDown
>
> and
> wget http://hudsonurl:8080/quietDown --http-user=username
> --http-password=password
>
> Both fail with and "Unkown authentification scheme".
>
> Best regards
>
> Martin
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Stephen Connolly [mailto:[hidden email]]
> Gesendet: Mittwoch, 28. November 2007 11:01
> An: [hidden email]
> Betreff: Re: Shutting down a secured Hudson
>
>
> AFAIK, you can use BASIC authentication with wget or curl to trigger the url
>
>
> On Nov 28, 2007 9:53 AM, Ficker, Martin <[hidden email]> wrote:
>
> >
> >
> >
> > Hello,
> > Our Hudson is shutdwon each night automatically , before this
> hudsonurl/quietDown is called to prevent start of new builds.
> >
> > If I want to run Hudson in secured mode, how could I still trigger
> "quietDown"?
> >
> > Best regards,
> >
> > Martin
>
>

---------------------------------------------------------------------
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

Re: Re: Shutting down a secured Hudson

Kohsuke Kawaguchi
Administrator
In reply to this post by Ficker, Martin
This works for me, as expected.

  1. What version of Hudson do you use?
  2. What container do you run Hudson?
  3. Can you run wget with --debug and send us the output?

2007/11/28, Ficker, Martin <[hidden email]>:

>
>
> I've tried
>
> wget http://username:password@hudsonurl:8080/quietDown
>
> and
> wget http://hudsonurl:8080/quietDown --http-user=username
> --http-password=password
>
> Both fail with and "Unkown authentification scheme".
>
> Best regards
>
> Martin
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Stephen Connolly [mailto:[hidden email]]
> Gesendet: Mittwoch, 28. November 2007 11:01
> An: [hidden email]
> Betreff: Re: Shutting down a secured Hudson
>
> AFAIK, you can use BASIC authentication with wget or curl to trigger the url
>
>
> On Nov 28, 2007 9:53 AM, Ficker, Martin <[hidden email]> wrote:
>
> >
> >
> >
> > Hello,
> > Our Hudson is shutdwon each night automatically , before this
> hudsonurl/quietDown is called to prevent start of new builds.
> >
> > If I want to run Hudson in secured mode, how could I still trigger
> "quietDown"?
> >
> > Best regards,
> >
> > Martin
>
>


--
Kohsuke Kawaguchi

---------------------------------------------------------------------
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

Re: Re: Shutting down a secured Hudson

Joshua McKinnon
Currently all my build machines use Hudson 1.159 with Tomcat 5.5, but
I used the latest available for my wget output. Again, security is on.
It works fine with security off. My boxes aren't internet-facing but
I'd still like to keep security on.

I'm using Wget 1.10 for Windows, as these are all WinXP Pro machines.
The output I'm sending is from running Hudson 1.160 on Tomcat 6.0.
(which I'll be moving to soon)

Here is my command, where xxx is a user/pass that works from the web browser
C:\>wget http://localhost:8080/hudson/quietDown --http-user=xxx
--http-password=xxx --debug > wget_out1.txt 2>&1

The same results occur when user:pass are embedded in the url
(http://user:pass@... style)

I've attached the output file (which has stdout + stderr) since the
formatting of the html looked a bit messy in the email.

On 12/15/07, Kohsuke Kawaguchi <[hidden email]> wrote:

> This works for me, as expected.
>
>   1. What version of Hudson do you use?
>   2. What container do you run Hudson?
>   3. Can you run wget with --debug and send us the output?
>
> 2007/11/28, Ficker, Martin <[hidden email]>:
> >
> >
> > I've tried
> >
> > wget http://username:password@hudsonurl:8080/quietDown
> >
> > and
> > wget http://hudsonurl:8080/quietDown --http-user=username
> > --http-password=password
> >
> > Both fail with and "Unkown authentification scheme".
> >
> > Best regards
> >
> > Martin
> >
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Stephen Connolly [mailto:[hidden email]]
> > Gesendet: Mittwoch, 28. November 2007 11:01
> > An: [hidden email]
> > Betreff: Re: Shutting down a secured Hudson
> >
> > AFAIK, you can use BASIC authentication with wget or curl to trigger the url
> >
> >
> > On Nov 28, 2007 9:53 AM, Ficker, Martin <[hidden email]> wrote:
> >
> > >
> > >
> > >
> > > Hello,
> > > Our Hudson is shutdwon each night automatically , before this
> > hudsonurl/quietDown is called to prevent start of new builds.
> > >
> > > If I want to run Hudson in secured mode, how could I still trigger
> > "quietDown"?
> > >
> > > Best regards,
> > >
> > > Martin
> >
> >
>
>
> --
> Kohsuke Kawaguchi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

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

wget_out1.txt (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Re: Shutting down a secured Hudson

Kohsuke Kawaguchi
Administrator
Thanks. The "Unknown authentication scheme" error message was bit
confusing, but it seems like the username/password pair was incorrect.

Let me add a probe in the system so that you can get more details
about what's going on in the server log file.

2007/12/16, Joshua McKinnon <[hidden email]>:

> Currently all my build machines use Hudson 1.159 with Tomcat 5.5, but
> I used the latest available for my wget output. Again, security is on.
> It works fine with security off. My boxes aren't internet-facing but
> I'd still like to keep security on.
>
> I'm using Wget 1.10 for Windows, as these are all WinXP Pro machines.
> The output I'm sending is from running Hudson 1.160 on Tomcat 6.0.
> (which I'll be moving to soon)
>
> Here is my command, where xxx is a user/pass that works from the web browser
> C:\>wget http://localhost:8080/hudson/quietDown --http-user=xxx
> --http-password=xxx --debug > wget_out1.txt 2>&1
>
> The same results occur when user:pass are embedded in the url
> (http://user:pass@... style)
>
> I've attached the output file (which has stdout + stderr) since the
> formatting of the html looked a bit messy in the email.
>
> On 12/15/07, Kohsuke Kawaguchi <[hidden email]> wrote:
> > This works for me, as expected.
> >
> >   1. What version of Hudson do you use?
> >   2. What container do you run Hudson?
> >   3. Can you run wget with --debug and send us the output?
> >
> > 2007/11/28, Ficker, Martin <[hidden email]>:
> > >
> > >
> > > I've tried
> > >
> > > wget http://username:password@hudsonurl:8080/quietDown
> > >
> > > and
> > > wget http://hudsonurl:8080/quietDown --http-user=username
> > > --http-password=password
> > >
> > > Both fail with and "Unkown authentification scheme".
> > >
> > > Best regards
> > >
> > > Martin
> > >
> > >
> > >
> > > -----Ursprüngliche Nachricht-----
> > > Von: Stephen Connolly [mailto:[hidden email]]
> > > Gesendet: Mittwoch, 28. November 2007 11:01
> > > An: [hidden email]
> > > Betreff: Re: Shutting down a secured Hudson
> > >
> > > AFAIK, you can use BASIC authentication with wget or curl to trigger the url
> > >
> > >
> > > On Nov 28, 2007 9:53 AM, Ficker, Martin <[hidden email]> wrote:
> > >
> > > >
> > > >
> > > >
> > > > Hello,
> > > > Our Hudson is shutdwon each night automatically , before this
> > > hudsonurl/quietDown is called to prevent start of new builds.
> > > >
> > > > If I want to run Hudson in secured mode, how could I still trigger
> > > "quietDown"?
> > > >
> > > > Best regards,
> > > >
> > > > Martin
> > >
> > >
> >
> >
> > --
> > Kohsuke Kawaguchi
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
Kohsuke Kawaguchi

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

Loading...