Installation Failure on Mac OS X - Help!?

573 views
Skip to first unread message

Mark Andrachek, Jr.

unread,
Aug 7, 2013, 6:41:28 PM8/7/13
to jenkins...@googlegroups.com
Ok. We've even gone so far as to a reformat and fresh install. This is on a mac mini (2011 server edition), upgraded to Mountain Lion 10.8.4, with Oracle Java 1.7.0_25 installed.  I've searched and found one old thread about something similar, but nothing that helps resolve this. Any assistance would be appreciated.  Here's what a grep for "jenkins", in /var/log provides. (More info below as well)

install.log:Aug  7 18:26:24 macmini Installer[672]: Opened from: /Users/administrator/Downloads/jenkins-1.526.pkg
install.log:Aug  7 18:26:25 macmini Installer[672]: Product archive /Users/administrator/Downloads/jenkins-1.526.pkg trustLevel=100
install.log:Aug  7 18:26:46 macmini Installer[672]: jenkins-1.526.pkg#jenkins.pkg : org.jenkins-ci.jenkins.osx.pkg : 1.1405
install.log:Aug  7 18:26:46 macmini Installer[672]: Install: "Start at boot as "jenkins""
install.log:Aug  7 18:26:46 macmini Installer[672]: jenkins-1.526.pkg#orgjenkinsci-1.pkg : org.jenkins-ci.launchd-jenkins.pkg : 1.0
install.log:Aug  7 18:26:46 macmini Installer[672]: jenkins-1.526.pkg#jenkins-1.pkg : org.jenkins-ci.support.pkg : 1.0
install.log:Aug  7 18:26:46 macmini Installer[672]: jenkins-1.526.pkg#jenkins-2.pkg : org.jenkins-ci.documentation.pkg : 1.0
install.log:Aug  7 18:26:46 macmini Installer[672]: jenkins-1.526.pkg#jenkins1526Postflight.pkg : org.jenkins-ci.jenkins1526.postflight.pkg : 1.0
install.log:Aug  7 18:26:46 macmini Installer[672]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/administrator/Downloads/jenkins-1.526.pkg#jenkins.pkg
install.log:Aug  7 18:26:46 macmini Installer[672]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/administrator/Downloads/jenkins-1.526.pkg#orgjenkinsci-1.pkg
install.log:Aug  7 18:26:46 macmini Installer[672]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/administrator/Downloads/jenkins-1.526.pkg#jenkins-1.pkg
install.log:Aug  7 18:26:46 macmini Installer[672]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/administrator/Downloads/jenkins-1.526.pkg#jenkins-2.pkg
install.log:Aug  7 18:26:46 macmini Installer[672]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/administrator/Downloads/jenkins-1.526.pkg#jenkins1526Postflight.pkg
install.log:    "PKLeopardPackage <file://localhost/Users/administrator/Downloads/jenkins-1.526.pkg#jenkins.pkg>",
install.log:    "PKLeopardPackage <file://localhost/Users/administrator/Downloads/jenkins-1.526.pkg#orgjenkinsci-1.pkg>",
install.log:    "PKLeopardPackage <file://localhost/Users/administrator/Downloads/jenkins-1.526.pkg#jenkins-1.pkg>",
install.log:    "PKLeopardPackage <file://localhost/Users/administrator/Downloads/jenkins-1.526.pkg#jenkins-2.pkg>",
install.log:    "PKLeopardPackage <file://localhost/Users/administrator/Downloads/jenkins-1.526.pkg#jenkins1526Postflight.pkg>"
install.log:Aug  7 18:26:47 macmini installd[680]: PackageKit: Extracting file://localhost/Users/administrator/Downloads/jenkins-1.526.pkg#jenkins.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandboxManager/1.sandbox/Root/Applications/Jenkins, uid=0)
install.log:Aug  7 18:26:48 macmini installd[680]: PackageKit: Extracting file://localhost/Users/administrator/Downloads/jenkins-1.526.pkg#orgjenkinsci-1.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandboxManager/1.sandbox/Root/Library/LaunchDaemons, uid=0)
install.log:Aug  7 18:26:48 macmini installd[680]: PackageKit: Extracting file://localhost/Users/administrator/Downloads/jenkins-1.526.pkg#jenkins-1.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandboxManager/1.sandbox/Root/Library/Application Support, uid=0)
install.log:Aug  7 18:26:48 macmini installd[680]: PackageKit: Extracting file://localhost/Users/administrator/Downloads/jenkins-1.526.pkg#jenkins-2.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandboxManager/1.sandbox/Root/Library/Documentation, uid=0)
install.log:Aug  7 18:26:48 macmini installd[680]: PackageKit: Extracting file://localhost/Users/administrator/Downloads/jenkins-1.526.pkg#jenkins1526Postflight.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandboxManager/1.sandbox/Root, uid=0)
install.log:Aug  7 18:26:48 macmini installd[680]: PackageKit: Executing script "./preinstall" in /private/tmp/PKInstallSandbox.hN6MIZ/Scripts/org.jenkins-ci.launchd-jenkins.pkg.RRAVcU
install.log:Aug  7 18:26:48 macmini installd[680]: ./preinstall: launchctl: Couldn't stat("/Library/LaunchDaemons/org.jenkins-ci.plist"): No such file or directory
install.log:Aug  7 18:26:48 macmini installd[680]: PackageKit: Executing script "./postinstall" in /private/tmp/PKInstallSandbox.hN6MIZ/Scripts/org.jenkins-ci.jenkins.osx.pkg.JBDjn2
install.log:Aug  7 18:26:48 macmini installd[680]: PackageKit: Executing script "./postinstall" in /private/tmp/PKInstallSandbox.hN6MIZ/Scripts/org.jenkins-ci.launchd-jenkins.pkg.RRAVcU
install.log:Aug  7 18:26:48 macmini installd[680]: ./postinstall: No jenkins user found, creating jenkins user and group
install.log:Aug  7 18:26:48 macmini installd[680]: ./postinstall: Using uid 236 for jenkins
install.log:Aug  7 18:26:52 macmini installd[680]: ./postinstall: Using gid 236 for jenkins
install.log:Aug  7 18:27:55 macmini installd[680]: PackageKit: Executing script "./postflight" in /private/tmp/PKInstallSandbox.hN6MIZ/Scripts/org.jenkins-ci.jenkins1526.postflight.pkg.0cbo0g
install.log:Aug  7 18:27:55 macmini installd[680]: PackageKit: Writing receipt for org.jenkins-ci.jenkins.osx.pkg to /private/var/db/receipts
install.log:Aug  7 18:27:55 macmini installd[680]: PackageKit: Writing receipt for org.jenkins-ci.launchd-jenkins.pkg to /private/var/db/receipts
install.log:Aug  7 18:27:55 macmini installd[680]: PackageKit: Writing receipt for org.jenkins-ci.support.pkg to /private/var/db/receipts
install.log:Aug  7 18:27:55 macmini installd[680]: PackageKit: Writing receipt for org.jenkins-ci.documentation.pkg to /private/var/db/receipts
install.log:Aug  7 18:27:55 macmini installd[680]: PackageKit: Writing receipt for org.jenkins-ci.jenkins1526.postflight.pkg to /private/var/db/receipts
grep: jenkins: Is a directory
grep: krb5kdc: Permission denied
grep: mailman: Is a directory
grep: performance: Is a directory
grep: ppp: Is a directory
grep: radius: Permission denied
grep: sa: Is a directory
system.log: The domain/default pair of (/Library/Preferences/org.jenkins-ci, war) does not exist
system.log: The domain/default pair of (/Library/Preferences/org.jenkins-ci, JENKINS_HOME) does not exist
system.log: The domain/default pair of (/Library/Preferences/org.jenkins-ci, prefix) does not exist
system.log: The domain/default pair of (/Library/Preferences/org.jenkins-ci, httpPort) does not exist
system.log: The domain/default pair of (/Library/Preferences/org.jenkins-ci, httpListenAddress) does not exist
system.log: The domain/default pair of (/Library/Preferences/org.jenkins-ci, httpsPort) does not exist
system.log: The domain/default pair of (/Library/Preferences/org.jenkins-ci, httpsListenAddress) does not exist
system.log: The domain/default pair of (/Library/Preferences/org.jenkins-ci, ajp13Port) does not exist
system.log: The domain/default pair of (/Library/Preferences/org.jenkins-ci, ajp13ListenAddress) does not exist
system.log:Aug  7 18:26:56 macmini com.apple.launchd[1] (org.jenkins-ci): Throttling respawn: Will start in 9 seconds

So I tried downloading just the war file, and running that from the command line:
macmini:Downloads administrator$ java -jar jenkins.war
Running from: /Users/administrator/Downloads/jenkins.war
webroot: $user.home/.jenkins
Aug 07, 2013 6:40:43 PM winstone.Logger logInternal
SEVERE: Container startup failed
java.lang.NullPointerException
at winstone.Launcher.shutdown(Launcher.java:333)
at winstone.Launcher.<init>(Launcher.java:199)
at winstone.Launcher.main(Launcher.java:384)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at Main._main(Main.java:288)
at Main.main(Main.java:98)


Mark Andrachek, Jr.

unread,
Aug 7, 2013, 7:12:59 PM8/7/13
to jenkins...@googlegroups.com
I found this issue, which is similar, but on Linux, running OpenJDK.

However, unlike this issue, I'm not able to run the war file even directly:
sudo java -jar jenkins.war produces the same NPE as in my original message.

Mark Andrachek, Jr.

unread,
Aug 7, 2013, 8:30:37 PM8/7/13
to jenkins...@googlegroups.com
So I tried running tomcat. It starts up and grabs the ports, however it throws a bunch of errors related to getSessionCookieConfig not existing.  This pointed me towards a conflict with the servlet-api.jar file.  I didn't find one in the classpath, but I did fine a selenium server standalone jar in /Network/Library/Java/Extensions/ that was conflicting. I moved the selenium jar out of the classpath, and everything appears to be working as expected now!

Reply all
Reply to author
Forward
0 new messages