Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start up with non-default options #26

Open
AppPartner opened this issue Jan 28, 2015 · 14 comments
Open

Unable to start up with non-default options #26

AppPartner opened this issue Jan 28, 2015 · 14 comments

Comments

@AppPartner
Copy link

Originally trying to fix a bug in this plugin (https://wiki.jenkins-ci.org/display/JENKINS/TestFairy+Plugin), by adding a custom argument to JVM. But when I start up Jenkins and choose Change Defaults, anything I put, even leaving the fields blank, results in an error.
screen shot 2015-01-28 at 4 54 21 pm

How to fix this, or is there a different way to modify JVM arguments?

Mac OSX 10.10.1
Jenkins 1.598

@stisti
Copy link
Owner

stisti commented Feb 1, 2015

Strange... I don't really see how that can happen because there is an exception handler around the code that tries to load preferences file (https://github.com/stisti/jenkins-app/blob/master/utils.applescript#L81) Which Jenkins.app version are you using?

@jeffctown
Copy link

I'm having this same issue. @AppPartner - Did you resolve this?

@stisti
Copy link
Owner

stisti commented Feb 19, 2015

Another idea that occurred to me: Does ~/Library/Preferences exist for you? If it doesn't, could you create that directory and try again.

@tofteit
Copy link

tofteit commented Feb 21, 2015

I have the same issue!
Any solution to this?

@tofteit
Copy link

tofteit commented Feb 21, 2015

Seems like the file doesn't exists in the location /Users/[user]/Library/Preferences.
I just tried to take a clean Mac OS X 10.10.2, same problem.

@jeffctown
Copy link

My machine had the file there. I played with chmod and chown for a while and couldn't get anything to work. Without being able to modify the JVM settings, my Jenkins kept running out of memory. I ultimately ended up uninstalling this and going back to a LaunchDaemon.

@tigac
Copy link

tigac commented Mar 18, 2015

I'm having same issue, any update on this problem?

@tofteit
Copy link

tofteit commented Mar 18, 2015

Tigac: nope i still have the issue, i hope this will be fixed soon !

@stisti
Copy link
Owner

stisti commented Mar 19, 2015

Could you show me the permissions of your Library directories?

ls -ld $HOME/Library
ls -ld $HOME/Library/Preferences

@tofteit
Copy link

tofteit commented Mar 20, 2015

ls -ld

@stisti
Copy link
Owner

stisti commented Mar 22, 2015

I managed to reproduce this bug on my own system. Looking into it.

@tofteit
Copy link

tofteit commented Mar 22, 2015

Sound good :-)

@stisti
Copy link
Owner

stisti commented Mar 22, 2015

This is really strange. Somehow the property list management in AppleScript in 10.10 seems to work differently than in earlier OS X versions. I still have not figured it out but you can work around it by first creating an empty Jenkins.app preferences file and then launching Jenkins.app. You can e.g. execute the following command in Terminal:

cat >$HOME/Library/Preferences/org.jenkins-ci.jenkins.plist <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>java_command_args</key>
    <string></string>
    <key>jenkins_command_args</key>
    <string></string>
</dict>
</plist>
EOF

I will try to come up with a real solution but this should get you going.

@tofteit
Copy link

tofteit commented Mar 23, 2015

That works! Thanks..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants