Headless continuous integration with Jenkins

后端 未结 11 926
陌清茗
陌清茗 2020-12-09 04:20

I’m trying to set up Jenkins on a RackSpace ArchLinux Cloud Server, but I’ve been unable to.

Whenever I try to access Jenkins site, I get this error:



        
相关标签:
11条回答
  • 2020-12-09 04:45

    On my fedora 17 64Bit machine, I had OpenJDK 1.7 installed and I yum installed Jenkins which was having the same issue. Setting up -Djava.awt.headless=true did not help.

    Finally solved the issue by installing dejavu-sans-fonts:

    yum install dejavu-sans-fonts
    
    0 讨论(0)
  • 2020-12-09 04:48

    Having an ArchLinux 64 bit headless server, I have successfully configured jenkins to work by following steps:

    1. Installed ttf-dejavu package
    2. Installed fontconfig packages
    3. added to /etc/conf.d/tomcat7:

      CATALINA_OPTS="-Djava.awt.headless=true"

    0 讨论(0)
  • 2020-12-09 04:49

    On Linux Server release 6.2 (Santiago) , you just need to specify below command.

    export CATALINA_OPTS="-DJENKINS_HOME=/opt/itmsetup/apache-tomcat-6.0.37/jenkins -Xmx750m -Djava.awt.headless=true"                           
    

    this has solved my problem.

    0 讨论(0)
  • 2020-12-09 04:50

    By adding CATALINA_OPTS="-Djava.awt.headless=true" in setclasspath.sh file of tomcat/bin directory solved the problem.

    0 讨论(0)
  • 2020-12-09 04:51
    pacman -S ttf-dejavu
    

    fixed it for my Archlinux box

    0 讨论(0)
  • 2020-12-09 04:55

    Installing openjdk-7-jre-headless and ttf-dejavu made the difference for me on Ubuntu 12.04 LTC (Precise). The fonts are referenced by the font setup of the Java installation and the OpenJDK 7 package depends on libfontconfig1 and will thus actually use the fonts.

    I'm using Jenkins from http://pkg.jenkins-ci.org/debian/ and by default you will get openjdk-6-jre-headless since the jenkins package depends on default-jre-headless, which in turn pulls in openjdk-6-jre-headless.

    You can swap the packages using

    $ aptitude install openjdk-7-jre-headless
    $ aptitude remove default-jre-headless openjdk-6-jre-headless
    
    0 讨论(0)
提交回复
热议问题