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

Jenkins slave service not using configured JENKINS_MASTER #34

Open
treyd opened this issue Feb 19, 2014 · 4 comments
Open

Jenkins slave service not using configured JENKINS_MASTER #34

treyd opened this issue Feb 19, 2014 · 4 comments
Assignees
Labels

Comments

@treyd
Copy link

treyd commented Feb 19, 2014

I ran through the install script, specifying the URL to my Jenkins master (which is NOT http://jenkins). However, when I try to run the service, the log shows that it is trying to connect to the default jenkins url:

Starting at Wed Feb 19 16:24:42 EST 2014

Getting slave.jar from http://jenkins
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: jenkins

@rhwood
Copy link
Owner

rhwood commented Feb 20, 2014

I think JENKINS_CONF in slave.jnlp.sh is not getting set correctly, but I won't be able to fix and test for a couple of weeks.
In the meantime, you can edit slave.jnlp.sh to define JENKINS_CONF correctly (I think replacing JENKINS_CONF=${JENKINS_HOME}/Library/Preferences/org.jenkins-ci.slave.jnlp.conf with JENKINS_CONF=${HOME}/Library/Preferences/org.jenkins-ci.slave.jnlp.conf will correct this issue).

@treyd
Copy link
Author

treyd commented Feb 20, 2014

Thanks for the response. Changing ${JENKINS_HOME} to ${HOME} in
slave.jnlp.sh at least got the launcher to download the slave.jar file.
However, it looks like the node configuration in jenkins is not there:

Starting at Thu Feb 20 14:45:37 EST 2014

Getting slave.jar from http://****/jenkins
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0
100 338k 100 338k 0 0 981k 0 --:--:-- --:--:-- --:--:--
981k
Launching slave process at http://
_/jenkins/computer/osx-build-machine/slave-agent.jnlp
Calling java -jar
/var/lib/jenkins/Library/Developer/org.jenkins-ci.slave.jnlp/slave.jar
-jnlpUrl http://
__/jenkins/computer/osx-build-machine/slave-agent.jnlp
-jnlpCredentials user:_
******
Failing to obtain http://
_/jenkins/computer/osx-build-machine/slave-agent.jnlp
java.io.IOException: Failed to load
http://
_
/jenkins/computer/osx-build-machine/slave-agent.jnlp:
404 Not Found
at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:274)
at hudson.remoting.Launcher.run(Launcher.java:218)
at hudson.remoting.Launcher.main(Launcher.java:192)

Could this have happened because it couldn't reach the jenkins server
during the setup process? Or am I misinterpreting this and do I have to
create the node in jenkins manually?

On Thu, Feb 20, 2014 at 12:50 PM, Randall Wood notifications@github.comwrote:

I think JENKINS_CONF in slave.jnlp.sh is not getting set correctly, but I
won't be able to fix and test for a couple of weeks.
In the meantime, you can edit slave.jnlp.sh to define JENKINS_CONF
correctly (I think replacing
JENKINS_CONF=${JENKINS_HOME}/Library/Preferences/org.jenkins-ci.slave.jnlp.confwith
JENKINS_CONF=${HOME}/Library/Preferences/org.jenkins-ci.slave.jnlp.confwill correct this issue).

Reply to this email directly or view it on GitHubhttps://github.com//issues/34#issuecomment-35649028
.

@rhwood rhwood added the bug label Feb 21, 2014
@rhwood rhwood self-assigned this Feb 21, 2014
@rhwood
Copy link
Owner

rhwood commented Feb 21, 2014

You will need to configure the node in Jenkins prior to configuring these scripts.

@MarcoSero
Copy link

I can confirm that changing

JENKINS_CONF=${JENKINS_HOME}/Library/Preferences/org.jenkins-ci.slave.jnlp.conf

to

JENKINS_CONF=${HOME}/Library/Preferences/org.jenkins-ci.slave.jnlp.conf

does the job.

Thanks @rhwood 👍

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

No branches or pull requests

3 participants