Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-44777

Latest jenkinsci/jenkins:2.64-alpine image doesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • core, docker
    • Host OS: OpenSUSE: 42.2
      Docker: 1.12.6, build 78d1802
      Jenkins: runs inside docker container using jenkinsci/jenkins:2.64-alpine

      We have Jenkins running inside docker container using the jenkinsci/jenkins:2.64-alpine image for a while. We didn't have any problems upgrading in previous versions, but when we tried to upgrade from 2.62-alpine to 2.64-alpine it didn't go well. When we started a new container with the new version of the image we received the following startup exception: 

      AWT is not properly configured on this server. Perhaps you need to run your container with "-Djava.awt.headless=true"? See also: https://jenkins.io/redirect/troubleshooting/java.awt.headless
      java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-1.8-openjdk/jre/lib/amd64/libfontmanager.so: Error relocating /usr/lib/jvm/java-1.8-openjdk/jre/lib/amd64/libfontmanager.so: AWTFontDefaultChar: symbol not found
      	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
      	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
      	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1845)
      	at java.lang.Runtime.loadLibrary0(Runtime.java:870)
      	at java.lang.System.loadLibrary(System.java:1122)
      	at sun.font.FontManagerNativeLibrary$1.run(FontManagerNativeLibrary.java:61)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at sun.font.FontManagerNativeLibrary.<clinit>(FontManagerNativeLibrary.java:32)
      	at sun.font.SunFontManager$1.run(SunFontManager.java:339)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at sun.font.SunFontManager.<clinit>(SunFontManager.java:335)
      	at java.lang.Class.forName0(Native Method)
      	at java.lang.Class.forName(Class.java:348)
      	at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:82)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
      	at java.awt.Font.getFont2D(Font.java:491)
      	at java.awt.Font.getFamily(Font.java:1220)
      	at java.awt.Font.getFamily_NoClientCode(Font.java:1194)
      	at java.awt.Font.getFamily(Font.java:1186)
      	at java.awt.Font.toString(Font.java:1683)
      	at hudson.util.ChartUtil.<clinit>(ChartUtil.java:260)
      	at hudson.WebAppMain.contextInitialized(WebAppMain.java:194)
      	at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:890)
      	at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:532)
      	at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:853)
      	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:344)
      	at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1501)
      	at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1463)
      	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:785)
      	at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:261)
      	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
      	at org.eclipse.jetty.server.Server.start(Server.java:452)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105)
      	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
      	at org.eclipse.jetty.server.Server.doStart(Server.java:419)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
      	at winstone.Launcher.<init>(Launcher.java:152)
      	at winstone.Launcher.main(Launcher.java:352)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at Main._main(Main.java:264)
      	at Main.main(Main.java:112)
      

      The error is strange as we haven't modified the image and the link which is specified in the exception wasn't helpful because there is no X11 nor tomcat involved here AFAIK. 

      As a test - I've tried the jenkinsci/jenkins:2.64 image and it works just fine. 

       

       

            Unassigned Unassigned
            stodorov Steve Todorov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: