![]() |
|
|
|
|
Change By:
|
David Marmoy
(20/Apr/15 2:36 PM)
|
|
Description:
|
The postinstall scipt has a line that checks for an available uid for the jenkins user and fails if no uid below 500 is found to be free. The problem is that the script only checks whether uid 499 is taken and if it is, then assumes that all other uid's below are also taken. This is not always the case. To recreate, create a user with uid 499 and afterwards attempt to install jenkins from the native osx installer. The error output can be found in /var/log/install.log. The offending lines of code can be found in https://github.com/kisielk/jenkins/blob/master/osx/scripts/postinstall-launchd-jenkins, and consists of: uid=$(dscl . -list /Users uid | sort -nrk 2 | awk '$2 < 500 {print $2 + 1; exit 0}') if [ $uid -eq 500 ]; then echo 'ERROR: All system uids are in use!' exit 1 fi
The issue would be fixed if these lines were changed to something more flexible.
Workaround: Unpack the installer, find the postinstall script and manually set uid, then repack installer. See http://stackoverflow.com/a/29747480/584405
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[email protected].
For more options, visit
https://groups.google.com/d/optout.