[JIRA] (JENKINS-36667) swarm client 2.1 unable to connect to jenkins instance

20 views
Skip to first unread message

mcrooney@java.net (JIRA)

unread,
Jul 13, 2016, 2:29:02 PM7/13/16
to jenkinsc...@googlegroups.com
mcrooney created an issue
 
Jenkins / Bug JENKINS-36667
swarm client 2.1 unable to connect to jenkins instance
Issue Type: Bug Bug
Assignee: Kohsuke Kawaguchi
Components: swarm-plugin
Created: 2016/Jul/13 6:28 PM
Environment: Jenkins 2.7.1 with swarm plugin 2.1
Labels: swarm
Priority: Major Major
Reporter: mcrooney

Using Jenkins 2.7.1 with swarm plugin 2.1 and swarm client 2.0, everything works fine. However, using the 2.1 client, the node appears but is offline.

With swarm client 2.0 (good):

/usr/bin/java -server -Djava.awt.headless=true -jar /home/vagrant/.jenkins_slave/swarm-client-2.0-jar-with-dependencies.jar -mode exclusive -executors 4 -fsroot /home/vagrant/.jenkins_slave/ -labels android-build-hi-cpu -labels linux -labels dockerengine -labels external -master http://172.28.128.100:8080/ -name linux1 -disableClientsUniqueId
Discovering Jenkins master
Jul 13, 2016 6:21:20 PM org.apache.commons.httpclient.HttpMethodDirector authenticateHost
WARNING: Required credentials not available for BASIC <any realm>@172.28.128.100:8080
Jul 13, 2016 6:21:20 PM org.apache.commons.httpclient.HttpMethodDirector authenticateHost
WARNING: Preemptive authentication requested but no default credentials available
Jul 13, 2016 6:21:20 PM org.apache.commons.httpclient.HttpMethodBase getResponseBody
WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
Connecting to http://172.28.128.100:8080/
Attempting to connect to http://172.28.128.100:8080/ f71a0340-de01-4b29-bc0f-8259db788409 with ID 
Jul 13, 2016 6:21:20 PM org.apache.commons.httpclient.HttpMethodDirector authenticateHost
WARNING: Required credentials not available for BASIC <any realm>@172.28.128.100:8080
Jul 13, 2016 6:21:20 PM org.apache.commons.httpclient.HttpMethodDirector authenticateHost
WARNING: Preemptive authentication requested but no default credentials available
Could not obtain CSRF crumb. Response code: 404
Jul 13, 2016 6:21:20 PM org.apache.commons.httpclient.HttpMethodDirector authenticateHost
WARNING: Required credentials not available for BASIC <any realm>@172.28.128.100:8080
Jul 13, 2016 6:21:20 PM org.apache.commons.httpclient.HttpMethodDirector authenticateHost
WARNING: Preemptive authentication requested but no default credentials available
Jul 13, 2016 6:21:20 PM hudson.remoting.jnlp.Main createEngine
INFO: Setting up slave: linux1
Jul 13, 2016 6:21:20 PM hudson.remoting.jnlp.Main$CuiListener <init>
INFO: Jenkins agent is running in headless mode.
Jul 13, 2016 6:21:20 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://172.28.128.100:8080/]
Jul 13, 2016 6:21:20 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to 172.28.128.100:49536
Jul 13, 2016 6:21:20 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Handshaking
Jul 13, 2016 6:21:20 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connected

Just changing the client to 2.1 (bad):

/usr/bin/java -server -Djava.awt.headless=true -jar /home/vagrant/.jenkins_slave/swarm-client-2.1-jar-with-dependencies.jar -mode exclusive -executors 4 -fsroot /home/vagrant/.jenkins_slave/ -labels android-build-hi-cpu -labels linux -labels dockerengine -labels external -master http://172.28.128.100:8080/ -name linux1 -disableClientsUniqueId
Discovering Jenkins master
Connecting to http://172.28.128.100:8080/ to configure swarm client.
Jul 13, 2016 6:26:31 PM org.apache.commons.httpclient.HttpMethodDirector authenticateHost
WARNING: Required credentials not available for BASIC <any realm>@172.28.128.100:8080
Jul 13, 2016 6:26:31 PM org.apache.commons.httpclient.HttpMethodDirector authenticateHost
WARNING: Preemptive authentication requested but no default credentials available
Jul 13, 2016 6:26:31 PM org.apache.commons.httpclient.HttpMethodBase getResponseBody
WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
Connecting to http://172.28.128.100:8080/
Attempting to connect to http://172.28.128.100:8080/ f71a0340-de01-4b29-bc0f-8259db788409 with ID 
Jul 13, 2016 6:26:31 PM org.apache.commons.httpclient.HttpMethodDirector authenticateHost
WARNING: Required credentials not available for BASIC <any realm>@172.28.128.100:8080
Jul 13, 2016 6:26:31 PM org.apache.commons.httpclient.HttpMethodDirector authenticateHost
WARNING: Preemptive authentication requested but no default credentials available
Could not obtain CSRF crumb. Response code: 404
Jul 13, 2016 6:26:31 PM org.apache.commons.httpclient.HttpMethodDirector authenticateHost
WARNING: Required credentials not available for BASIC <any realm>@172.28.128.100:8080
Jul 13, 2016 6:26:31 PM org.apache.commons.httpclient.HttpMethodDirector authenticateHost
WARNING: Preemptive authentication requested but no default credentials available

at which point it indefinitely hangs. Note that there were no changes to the master, just running a different version of the swarm client.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

o.v.nenashev@gmail.com (JIRA)

unread,
Feb 26, 2018, 3:28:21 AM2/26/18
to jenkinsc...@googlegroups.com
Oleg Nenashev assigned an issue to Unassigned
 

KK does not maintain this plugin anymore. Moving to unassigned to set the expectation

Change By: Oleg Nenashev
Assignee: Kohsuke Kawaguchi
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

me@basilcrow.com (JIRA)

unread,
Jun 1, 2019, 2:40:07 PM6/1/19
to jenkinsc...@googlegroups.com
Basil Crow closed an issue as Duplicate
 

This looks like a duplicate of JENKINS-25421. The workaround is to enable CSRF on the Jenkins master.

Change By: Basil Crow
Status: Open Closed
Resolution: Duplicate
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

me@basilcrow.com (JIRA)

unread,
Jun 2, 2019, 10:04:03 AM6/2/19
to jenkinsc...@googlegroups.com
Basil Crow commented on Bug JENKINS-36667
 
Re: swarm client 2.1 unable to connect to jenkins instance

Is this still a bug on recent versions of Jenkins core and Swarm client? I just tried connecting to a Jenkins master (2.150.1) with Swarm client both with and without CSRF enabled on the Jenkins master, and things worked just fine.

me@basilcrow.com (JIRA)

unread,
Jun 2, 2019, 10:04:06 AM6/2/19
to jenkinsc...@googlegroups.com
Basil Crow edited a comment on Bug JENKINS-36667
Is this still a bug on recent versions of Jenkins core and Swarm client? I just tried connecting to a Jenkins master (2.150.1) with Swarm client 3.16 both with and without CSRF enabled on the Jenkins master, and things worked just fine.
Reply all
Reply to author
Forward
0 new messages