Quantcast

[JIRA] (JENKINS-14452) Jenkins/Winstone has problems with IPv6

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14452) Jenkins/Winstone has problems with IPv6

JIRA noreply@jenkins-ci.org
Issue Type: Bug Bug
Assignee: Unassigned
Components: cli
Created: 17/Jul/12 3:47 AM
Description:

Note: As I don't have any idea which component this is, as the "Winstone Servlet Engine" isn't in the list and there doesn't seem to be an "Incoming" component, please re-assign as required.

I'm using jenkins with the debian packages. I've configured Jenkins to listen on IPv6, and an IPv4 reverse proxy. Everything works as expected, however, Jenkins complains that the reverse proxy isn't configured correctly. After investigating and using the hint from https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+says+my+reverse+proxy+setup+is+broken, I've encountered the following output.

It seems that the Winstone Servlet doesn't support IPv6, because 2a01:4f8:161:286:aaaa::103:8080 isn't correct. It should be [2a01:4f8:161:286:aaaa::103]:8080

wget --no-check-certificate --debug -O /dev/null http://ci.partkeepr.org//administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test
Setting --output-document (outputdocument) to /dev/null
DEBUG output created by Wget 1.13.4 on linux-gnu.

URI encoding = `UTF-8'
-2012-07-17 05:38:46- http://ci.partkeepr.org//administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test
Resolving ci.partkeepr.org (ci.partkeepr.org)... 78.46.93.106
Caching ci.partkeepr.org => 78.46.93.106
Connecting to ci.partkeepr.org (ci.partkeepr.org)|78.46.93.106|:80... connected.
Created socket 4.
Releasing 0x000000000108b260 (new refcount 1).

--request begin--
GET //administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test HTTP/1.1
User-Agent: Wget/1.13.4 (linux-gnu)
Accept: /
Host: ci.partkeepr.org
Connection: Keep-Alive

--request end--
HTTP request sent, awaiting response...
--response begin--
HTTP/1.1 302 Found
Date: Tue, 17 Jul 2012 03:38:46 GMT
Server: Winstone Servlet Engine v0.9.10
Location: <a href="http://2a01:4f8:161:286:aaaa::103:8080/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test-for-reverse-proxy-setup">http://2a01:4f8:161:286:aaaa::103:8080/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test-for-reverse-proxy-setup
Content-Length: 0
X-Powered-By: Servlet/2.5 (Winstone/0.9.10)
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/plain

--response end--
302 Found
Registered socket 4 for persistent reuse.
Location: <a href="http://2a01:4f8:161:286:aaaa::103:8080/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test-for-reverse-proxy-setup">http://2a01:4f8:161:286:aaaa::103:8080/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test-for-reverse-proxy-setup [following]
] done.
URI content encoding = None
<a href="http://2a01:4f8:161:286:aaaa::103:8080/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test-for-reverse-proxy-setup:">http://2a01:4f8:161:286:aaaa::103:8080/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test-for-reverse-proxy-setup: Bad port number.
felicitus@feli-desktop ~/public_html/PartKeepr $ wget --no-check-certificate --debug -O /dev/null http://ci.partkeepr.org/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test
Setting --output-document (outputdocument) to /dev/null
DEBUG output created by Wget 1.13.4 on linux-gnu.

URI encoding = `UTF-8'
-2012-07-17 05:38:51- http://ci.partkeepr.org/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test
Resolving ci.partkeepr.org (ci.partkeepr.org)... 78.46.93.106
Caching ci.partkeepr.org => 78.46.93.106
Connecting to ci.partkeepr.org (ci.partkeepr.org)|78.46.93.106|:80... connected.
Created socket 4.
Releasing 0x0000000001d3c260 (new refcount 1).

--request begin--
GET /administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test HTTP/1.1
User-Agent: Wget/1.13.4 (linux-gnu)
Accept: /
Host: ci.partkeepr.org
Connection: Keep-Alive

--request end--
HTTP request sent, awaiting response...
--response begin--
HTTP/1.1 302 Found
Date: Tue, 17 Jul 2012 03:38:52 GMT
Server: Winstone Servlet Engine v0.9.10
Location: <a href="http://2a01:4f8:161:286:aaaa::103:8080/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test-for-reverse-proxy-setup">http://2a01:4f8:161:286:aaaa::103:8080/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test-for-reverse-proxy-setup
Content-Length: 0
X-Powered-By: Servlet/2.5 (Winstone/0.9.10)
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/plain

--response end--
302 Found
Registered socket 4 for persistent reuse.
Location: <a href="http://2a01:4f8:161:286:aaaa::103:8080/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test-for-reverse-proxy-setup">http://2a01:4f8:161:286:aaaa::103:8080/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test-for-reverse-proxy-setup [following]
] done.
URI content encoding = None
<a href="http://2a01:4f8:161:286:aaaa::103:8080/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test-for-reverse-proxy-setup:">http://2a01:4f8:161:286:aaaa::103:8080/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test-for-reverse-proxy-setup: Bad port number.

Project: Jenkins
Priority: Major Major
Reporter: Timo A. Hummel
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14452) Jenkins/Winstone has problems with IPv6

JIRA noreply@jenkins-ci.org
Change By: Kohsuke Kawaguchi (02/Nov/12 9:37 PM)
Description: Note: As I don't have any idea which component this is, as the "Winstone Servlet Engine" isn't in the list and there doesn't seem to be an "Incoming" component, please re-assign as required.

I'm using jenkins with the debian packages. I've configured Jenkins to listen on IPv6, and an IPv4 reverse proxy. Everything works as expected, however, Jenkins complains that the reverse proxy isn't configured correctly. After investigating and using the hint from https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+says+my+reverse+proxy+setup+is+broken, I've encountered the following output.

It seems that the Winstone Servlet doesn't support IPv6, because 2a01:4f8:161:286:aaaa::103:8080 isn't correct. It should be [2a01:4f8:161:286:aaaa::103]:8080

{noformat}
wget --no-check-certificate --debug -O /dev/null http://ci.partkeepr.org//administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test
Setting --output-document (outputdocument) to /dev/null
DEBUG output created by Wget 1.13.4 on linux-gnu.

URI encoding = `UTF-8'
--2012-07-17 05:38:46--  http://ci.partkeepr.org//administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test
Resolving ci.partkeepr.org (ci.partkeepr.org)... 78.46.93.106
Caching ci.partkeepr.org => 78.46.93.106
Connecting to ci.partkeepr.org (ci.partkeepr.org)|78.46.93.106|:80... connected.
Created socket 4.
Releasing 0x000000000108b260 (new refcount 1).

---request begin---
GET //administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test HTTP/1.1
User-Agent: Wget/1.13.4 (linux-gnu)
Accept: */*
Host: ci.partkeepr.org
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response... 
---response begin---
HTTP/1.1 302 Found
Date: Tue, 17 Jul 2012 03:38:46 GMT
Server: Winstone Servlet Engine v0.9.10
Location: http://2a01:4f8:161:286:aaaa::103:8080/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test-for-reverse-proxy-setup
Content-Length: 0
X-Powered-By: Servlet/2.5 (Winstone/0.9.10)
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/plain

---response end---
302 Found
Registered socket 4 for persistent reuse.
Location: http://2a01:4f8:161:286:aaaa::103:8080/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test-for-reverse-proxy-setup [following]
] done.
URI content encoding = None
http://2a01:4f8:161:286:aaaa::103:8080/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test-for-reverse-proxy-setup: Bad port number.
felicitus@feli-desktop ~/public_html/PartKeepr $ wget --no-check-certificate --debug -O /dev/null http://ci.partkeepr.org/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test
Setting --output-document (outputdocument) to /dev/null
DEBUG output created by Wget 1.13.4 on linux-gnu.

URI encoding = `UTF-8'
--2012-07-17 05:38:51--  http://ci.partkeepr.org/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test
Resolving ci.partkeepr.org (ci.partkeepr.org)... 78.46.93.106
Caching ci.partkeepr.org => 78.46.93.106
Connecting to ci.partkeepr.org (ci.partkeepr.org)|78.46.93.106|:80... connected.
Created socket 4.
Releasing 0x0000000001d3c260 (new refcount 1).

---request begin---
GET /administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test HTTP/1.1
User-Agent: Wget/1.13.4 (linux-gnu)
Accept: */*
Host: ci.partkeepr.org
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response... 
---response begin---
HTTP/1.1 302 Found
Date: Tue, 17 Jul 2012 03:38:52 GMT
Server: Winstone Servlet Engine v0.9.10
Location: http://2a01:4f8:161:286:aaaa::103:8080/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test-for-reverse-proxy-setup
Content-Length: 0
X-Powered-By: Servlet/2.5 (Winstone/0.9.10)
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/plain

---response end---
302 Found
Registered socket 4 for persistent reuse.
Location: http://2a01:4f8:161:286:aaaa::103:8080/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test-for-reverse-proxy-setup [following]
] done.
URI content encoding = None
http://2a01:4f8:161:286:aaaa::103:8080/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test-for-reverse-proxy-setup: Bad port number.
{noformat}
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14452) Jenkins/Winstone has problems with IPv6

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
src/java/winstone/HttpListener.java
src/java/winstone/WinstoneRequest.java
http://jenkins-ci.org/commit/winstone/f0ffcde68653567780b9e8920457019256e72f7c
Log:
[FIXED JENKINS-14452]

Fixed the handling of IPv6 address

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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14452) Jenkins/Winstone has problems with IPv6

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Change By: SCM/JIRA link daemon (02/Nov/12 10:23 PM)
Status: Open Resolved
Resolution: Fixed
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14452) Jenkins/Winstone has problems with IPv6

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Code changed in jenkins
User: Kohsuke Kawaguchi
Path:
changelog.html
war/pom.xml
http://jenkins-ci.org/commit/jenkins/f79f53ffbdff78c8bb4fefb51c6acbb3f266001b
Log:
[FIXED JENKINS-14452]

Integrated the fix made in Winstone.

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
Loading...