`<div dir="ltr">Hi Magnus,<div>The user you are installing jenkins with (called jenkins) has configured his home directory as /export/home/jenkins, and that directory does not exist. Create a filesystem for it (or just a directory) and then change the user's home directory to that directory using usermod. Also change the owner of that directory to be jenkins (using chown).</div><div>Hope this helps,</div><div>Dan.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 3, 2014 at 6:52 AM, Magnus <span dir="ltr"><<a href="mailto:magnus@yonderway.com" target="_blank">magnus@yonderway.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So I’ve just done this same thing successfully on a number of other platforms (that I don’t wish to run on), including a Macbook, a Debian laptop, a SmartOS zone… but when I try to do this inside of a zone on OmniOS, I get a Java stack trace that doesn’t make a whole lot of sense to me… and Google isn’t being helpful with this one. I’m hoping to write a blog about hosting CI on OmniOS, complete with getting it running under SMF, etc. but this one piece is being stubborn.<br>
<br>
Thoughts?<br>
<br>
$ java -jar jenkins.war<br>
Running from: /export/home/jenkins/jenkins.war<br>
webroot: $user.home/.jenkins<br>
Oct 03, 2014 3:28:19 AM winstone.Logger logInternal<br>
INFO: Beginning extraction from war file<br>
Oct 03, 2014 3:28:20 AM org.eclipse.jetty.util.log.JavaUtilLog info<br>
INFO: jetty-8.y.z-SNAPSHOT<br>
Oct 03, 2014 3:28:22 AM org.eclipse.jetty.util.log.JavaUtilLog info<br>
INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet<br>
Jenkins home directory: /export/home/jenkins/.jenkins found at: $user.home/.jenkins<br>
Oct 03, 2014 3:28:23 AM hudson.util.BootFailure publish<br>
SEVERE: Failed to initialize Jenkins<br>
hudson.util.AWTProblem: java.lang.NullPointerException<br>
at hudson.WebAppMain.contextInitialized(WebAppMain.java:182)<br>
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782)<br>
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)<br>
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774)<br>
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)<br>
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)<br>
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)<br>
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)<br>
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)<br>
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)<br>
at org.eclipse.jetty.server.Server.doStart(Server.java:282)<br>
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)<br>
at winstone.Launcher.<init>(Launcher.java:154)<br>
at winstone.Launcher.main(Launcher.java:354)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
at java.lang.reflect.Method.invoke(Method.java:606)<br>
at Main._main(Main.java:293)<br>
at Main.main(Main.java:98)<br>
Caused by: java.lang.NullPointerException<br>
at sun.awt.X11FontManager.getDefaultPlatformFont(X11FontManager.java:779)<br>
at sun.font.SunFontManager$2.run(SunFontManager.java:433)<br>
at java.security.AccessController.doPrivileged(Native Method)<br>
at sun.font.SunFontManager.<init>(SunFontManager.java:376)<br>
at sun.awt.X11FontManager.<init>(X11FontManager.java:32)<br>
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br>
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)<br>
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)<br>
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)<br>
at java.lang.Class.newInstance(Class.java:374)<br>
at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:83)<br>
at java.security.AccessController.doPrivileged(Native Method)<br>
at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)<br>
at java.awt.Font.getFont2D(Font.java:490)<br>
at java.awt.Font.getFamily(Font.java:1219)<br>
at java.awt.Font.getFamily_NoClientCode(Font.java:1193)<br>
at java.awt.Font.getFamily(Font.java:1185)<br>
at java.awt.Font.toString(Font.java:1682)<br>
at hudson.util.ChartUtil.<clinit>(ChartUtil.java:229)<br>
at hudson.WebAppMain.contextInitialized(WebAppMain.java:181)<br>
... 19 more<br>
<br>
Oct 03, 2014 3:28:23 AM org.eclipse.jetty.util.log.JavaUtilLog warn<br>
WARNING: Failed startup of context w.{,file:/export/home/jenkins/.jenkins/war/},/export/home/jenkins/.jenkins/war<br>
java.lang.NullPointerException<br>
at jenkins.util.groovy.GroovyHookScript.run(GroovyHookScript.java:63)<br>
at hudson.util.BootFailure.publish(BootFailure.java:43)<br>
at hudson.WebAppMain.contextInitialized(WebAppMain.java:244)<br>
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782)<br>
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)<br>
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774)<br>
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)<br>
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)<br>
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)<br>
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)<br>
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)<br>
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)<br>
at org.eclipse.jetty.server.Server.doStart(Server.java:282)<br>
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)<br>
at winstone.Launcher.<init>(Launcher.java:154)<br>
at winstone.Launcher.main(Launcher.java:354)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
at java.lang.reflect.Method.invoke(Method.java:606)<br>
at Main._main(Main.java:293)<br>
at Main.main(Main.java:98)<br>
<br>
Oct 03, 2014 3:28:23 AM org.eclipse.jetty.util.log.JavaUtilLog info<br>
INFO: Started <a href="http://SelectChannelConnector@0.0.0.0:8080" target="_blank">SelectChannelConnector@0.0.0.0:8080</a><br>
Oct 03, 2014 3:28:23 AM winstone.Logger logInternal<br>
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled<br>
<br>
***********<br>
<br>
If I try the same thing with an Oracle JRE, I get a different error:<br>
<br>
$ /opt/jre1.8.0_20/bin/java -jar jenkins.war<br>
Running from: /export/home/jenkins/jenkins.war<br>
webroot: $user.home/.jenkins<br>
Oct 03, 2014 3:45:00 AM winstone.Logger logInternal<br>
INFO: Beginning extraction from war file<br>
Oct 03, 2014 3:45:01 AM org.eclipse.jetty.util.log.JavaUtilLog info<br>
INFO: jetty-8.y.z-SNAPSHOT<br>
Oct 03, 2014 3:45:03 AM org.eclipse.jetty.util.log.JavaUtilLog info<br>
INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet<br>
Jenkins home directory: /export/home/jenkins/.jenkins found at: $user.home/.jenkins<br>
Oct 03, 2014 3:45:03 AM hudson.util.BootFailure publish<br>
SEVERE: Failed to initialize Jenkins<br>
hudson.util.AWTProblem: java.lang.UnsatisfiedLinkError: /opt/jre1.8.0_20/lib/amd64/libfontmanager.so: ld.so.1: java: fatal: libXext.so.0: open failed: No such file or directory<br>
at hudson.WebAppMain.contextInitialized(WebAppMain.java:182)<br>
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782)<br>
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)<br>
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774)<br>
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)<br>
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)<br>
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)<br>
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)<br>
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)<br>
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)<br>
at org.eclipse.jetty.server.Server.doStart(Server.java:282)<br>
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)<br>
at winstone.Launcher.<init>(Launcher.java:154)<br>
at winstone.Launcher.main(Launcher.java:354)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
at java.lang.reflect.Method.invoke(Method.java:483)<br>
at Main._main(Main.java:293)<br>
at Main.main(Main.java:98)<br>
Caused by: java.lang.UnsatisfiedLinkError: /opt/jre1.8.0_20/lib/amd64/libfontmanager.so: ld.so.1: java: fatal: libXext.so.0: open failed: No such file or directory<br>
at java.lang.ClassLoader$NativeLibrary.load(Native Method)<br>
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1929)<br>
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1835)<br>
at java.lang.Runtime.loadLibrary0(Runtime.java:870)<br>
at java.lang.System.loadLibrary(System.java:1119)<br>
at sun.font.FontManagerNativeLibrary$1.run(FontManagerNativeLibrary.java:61)<br>
at java.security.AccessController.doPrivileged(Native Method)<br>
at sun.font.FontManagerNativeLibrary.<clinit>(FontManagerNativeLibrary.java:32)<br>
at sun.font.SunFontManager$1.run(SunFontManager.java:339)<br>
at java.security.AccessController.doPrivileged(Native Method)<br>
at sun.font.SunFontManager.<clinit>(SunFontManager.java:335)<br>
at java.lang.Class.forName0(Native Method)<br>
at java.lang.Class.forName(Class.java:340)<br>
at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:82)<br>
at java.security.AccessController.doPrivileged(Native Method)<br>
at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)<br>
at java.awt.Font.getFont2D(Font.java:491)<br>
at java.awt.Font.getFamily(Font.java:1220)<br>
at java.awt.Font.getFamily_NoClientCode(Font.java:1194)<br>
at java.awt.Font.getFamily(Font.java:1186)<br>
at java.awt.Font.toString(Font.java:1683)<br>
at hudson.util.ChartUtil.<clinit>(ChartUtil.java:229)<br>
at hudson.WebAppMain.contextInitialized(WebAppMain.java:181)<br>
... 19 more<br>
<br>
Oct 03, 2014 3:45:04 AM org.eclipse.jetty.util.log.JavaUtilLog warn<br>
WARNING: Failed startup of context w.{,file:/export/home/jenkins/.jenkins/war/},/export/home/jenkins/.jenkins/war<br>
java.lang.NullPointerException<br>
at jenkins.util.groovy.GroovyHookScript.run(GroovyHookScript.java:63)<br>
at hudson.util.BootFailure.publish(BootFailure.java:43)<br>
at hudson.WebAppMain.contextInitialized(WebAppMain.java:244)<br>
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782)<br>
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)<br>
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774)<br>
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)<br>
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)<br>
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)<br>
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)<br>
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)<br>
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)<br>
at org.eclipse.jetty.server.Server.doStart(Server.java:282)<br>
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)<br>
at winstone.Launcher.<init>(Launcher.java:154)<br>
at winstone.Launcher.main(Launcher.java:354)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
at java.lang.reflect.Method.invoke(Method.java:483)<br>
at Main._main(Main.java:293)<br>
at Main.main(Main.java:98)<br>
<br>
Oct 03, 2014 3:51:05 AM org.eclipse.jetty.util.log.JavaUtilLog info<br>
INFO: Started <a href="http://SelectChannelConnector@0.0.0.0:8080" target="_blank">SelectChannelConnector@0.0.0.0:8080</a><br>
Oct 03, 2014 3:51:05 AM winstone.Logger logInternal<br>
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled<br>
^COct 03, 2014 3:51:13 AM winstone.Logger logInternal<br>
INFO: JVM is terminating. Shutting down Winstone<br>
_______________________________________________<br>
OmniOS-discuss mailing list<br>
<a href="mailto:OmniOS-discuss@lists.omniti.com">OmniOS-discuss@lists.omniti.com</a><br>
<a href="http://lists.omniti.com/mailman/listinfo/omnios-discuss" target="_blank">http://lists.omniti.com/mailman/listinfo/omnios-discuss</a><br>
</blockquote></div><br></div>
`