Installing Hudson on Ubuntu

On Debian-based distributions, such as Ubuntu, you can install Hudson through apt-get. See http://hudson-ci.org/debian/ for the instruction. Recent versions are available in an experimental apt repository , please see this post for further details. Note that you need the package daemon using sudo apt-get install daemon.

What does this package do?

  • Hudson will be launched as a daemon up on start. See /etc/init.d/hudson for more details.
  • The 'hudson' user is created to run this service.
  • Log file will be placed in /var/log/hudson/hudson.log. Check this file if you are troubleshooting Hudson.
  • /etc/default/hudson will capture configuration parameters for the launch.

Where to go from here?

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
  1. Sep 15, 2009

    Joe Littlejohn says:

    The above instructions worked for me on Jaunty (9.04) Server, the daemon depende...

    The above instructions worked for me on Jaunty (9.04) Server, the daemon dependency was picked up correctly.

    There's a bug in the 1.322 and 1.323 releases of Hudson though that stops the hudson service starting up correctly. See https://hudson.dev.java.net/issues/show_bug.cgi?id=4304 (need to edit /etc/init.d/hudson and apply a fix as mentioned in the comments of that bug report).

  2. Sep 16, 2009

    Benjamin Boudreau says:

    On Jaunty (9.04) Server, the daemon dependency is picked up correctly. But Huds...

    On Jaunty (9.04) Server, the daemon dependency is picked up correctly.

    But Hudson doesn't start. Changing hudson user's shell to /bin/bash instead of /bin/false in /etc/passwd seems to fix it.

  3. Sep 18, 2009

    Jose Salvador says:

    My case: I work on a Debian Lenny dist (stable) I have updated the sources lis...

    My case:

    I work on a Debian Lenny dist (stable)

    I have updated the sources list following the instructions above and have applied the patch attached to the bug

    Then, I have had to install the sun-java6-bin package to get working. In my experience the hudson does not start with the debian gnu java. I obtained an exception related to this message:

    " Could not instantiate converter : com.thoughtworks.xstream.converters.extended.DurationConverter : null"

    Of course, I have changed the symbolic link at /usr/bin/java by one which links directly to the java from sun.

    Cheers.

  4. Sep 24, 2009

    Ben Standefer says:

    This fix worked for me when installing Hudson on Debian Lenny: "After installing...

    This fix worked for me when installing Hudson on Debian Lenny: "After installing the hudson deb on Ubuntu server Jaunty 8.10 [Debian Lenny in my case], when I tried to run the init script /etc/init.d/hudson start, nothing would be printed and the server would not start. No log file was created under /var/log/hudson and no pid file was created under /var/run/hudson. I eventually discovered that if i set the hudson user's shell to /bin/bash instead of /bin/false in /etc/passwd everything works fine. Hope this saves someone else some trouble."

    Also, this is a good resource: http://weblogs.java.net/blog/2008/06/11/debian-packages-hudson

  5. Apr 06

    Regis Desgroppes says:

    Hi, Hudson 1.353 was not published in the apt repository. Is there something wro...

    Hi,
    Hudson 1.353 was not published in the apt repository. Is there something wrong?
    Régis

  6. May 12

    Mohamed Ragab says:

    Hi, The latest version of Hudson as of the time of writing this comment is 1.35...

    Hi,

    The latest version of Hudson as of the time of writing this comment is 1.357 but the latest Debian package published is 1.352 and the latest RPM package published is 1.353

    Is this just lag, or is there a change in plans?

    Kind Regards
    Mohamed Ragab

  7. May 18

    Willem Verstraeten says:

    Hi, It seems as if the URL of the apt-get repository changed to deb http://hud...

    Hi,

    It seems as if the URL of the apt-get repository changed to
    deb http://hudson-labs.org/debian binary/

    I did get an error on my Debian 5.0.4 machine, but on Ubuntu it seems to work. Got to investigate.

    The error was

    302 Found http://pkg.hudson-labs.org/debian/binary/Packages

  8. May 23

    Charlie Mordant says:

    Hi, Sorry, I can't find where I could post an Issue on Your JIRA. Can you put ...

    Hi,

    Sorry, I can't find where I could post an Issue on Your JIRA.

    Can you put the Latest 1.359 rpm's version please, we're stuck with 1.353 and so with the "java.lang.Error: This page expects a form submission" when creating a new Job

  9. Aug 28

    Max V.K. says:

    hi there. I've noticed the debian repository responds with response "302", which...

    hi there.
    I've noticed the debian repository responds with response "302", which is redirect related.
    apt does not support redirects as of now. Debian stabe apt does not.
    I am currently forced to download the file manually, although it is found in the repository.

    Can somebody please change the setup so that not a redirect is returned, but the file?

    Thanks.