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.

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

    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

    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

    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

    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