[JIRA] (JENKINS-58567) Update plugins through proxy with authentication not working

93 views
Skip to first unread message

alexander.bering@lhsystems.com (JIRA)

unread,
Jul 19, 2019, 3:11:02 AM7/19/19
to jenkinsc...@googlegroups.com
Alexander Bering created an issue
 
Jenkins / Bug JENKINS-58567
Update plugins through proxy with authentication not working
Issue Type: Bug Bug
Assignee: Natasha Stopa
Attachments: screenshot_1356.png
Components: plugin-installation-manager-tool
Created: 2019-07-19 07:10
Environment: Jenkins 2.186, Java 1.8.0_22, macOS 10.14.5, Safari 12.1.1,
Labels: plugin proxy authentication
Priority: Blocker Blocker
Reporter: Alexander Bering

I entered proxy configuration in Jenkins > Manage plugins and successfully tested the configuration.

But I'm not able to do updates, because the proxy authentication does not work.

There were errors checking the update sites: IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 authenticationrequired"

The update site URL is working fine in proxy configuration test (see screenshot, Test: Erfolg=Success, Update server: error)

2019-07-19 06:44:27.136+0000 [id=47]	INFO	hudson.model.AsyncPeriodicWork$1#run: Started Download metadata
2019-07-19 06:44:27.160+0000 [id=47]	INFO	hudson.util.Retrier#start: Attempt #1 to do the action check updates server
2019-07-19 06:44:27.468+0000 [id=47]	INFO	hudson.util.Retrier#start: The attempt #1 to do the action check updates server failed with an allowed exception:
java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 authenticationrequired"
	at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:2148)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:183)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1570)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268)
	at hudson.model.DownloadService.loadJSON(DownloadService.java:167)
	at hudson.model.UpdateSite.updateDirectlyNow(UpdateSite.java:189)
	at hudson.PluginManager.checkUpdatesServer(PluginManager.java:1771)
	at hudson.util.Retrier.start(Retrier.java:62)
	at hudson.PluginManager.doCheckUpdatesServer(PluginManager.java:1742)
	at jenkins.model.DownloadSettings$DailyCheck.execute(DownloadSettings.java:130)
	at hudson.model.AsyncPeriodicWork$1.run(AsyncPeriodicWork.java:101)
	at java.lang.Thread.run(Thread.java:748)
2019-07-19 06:44:27.469+0000 [id=47]	INFO	hudson.util.Retrier#start: Calling the listener of the allowed exception 'Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 authenticationrequired"' at the attempt #1 to do the action check updates server
2019-07-19 06:44:27.473+0000 [id=47]	INFO	hudson.util.Retrier#start: Attempted the action check updates server for 1 time(s) with no success
2019-07-19 06:44:27.477+0000 [id=47]	SEVERE	hudson.PluginManager#doCheckUpdatesServer: Error checking update sites for 1 attempt(s). Last exception was: IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 authenticationrequired"
2019-07-19 06:44:27.483+0000 [id=47]	INFO	hudson.model.AsyncPeriodicWork$1#run: Finished Download metadata. 345 ms

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

alexander.bering@lhsystems.com (JIRA)

unread,
Jul 19, 2019, 3:12:02 AM7/19/19
to jenkinsc...@googlegroups.com
Alexander Bering updated an issue
Change By: Alexander Bering
Environment: Jenkins 2.186, Java 1.8. 0_22 0_221 , macOS 10.14.5, Safari 12.1.1,

alexander.bering@lhsystems.com (JIRA)

unread,
Jul 19, 2019, 4:18:02 AM7/19/19
to jenkinsc...@googlegroups.com

alexander.bering@lhsystems.com (JIRA)

unread,
Jul 19, 2019, 4:19:03 AM7/19/19
to jenkinsc...@googlegroups.com

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

unread,
Jul 19, 2019, 6:12:02 AM7/19/19
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
Change By: Oleg Nenashev
Component/s: core
Component/s: plugin-installation-manager-tool

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

unread,
Jul 19, 2019, 6:12:03 AM7/19/19
to jenkinsc...@googlegroups.com
Oleg Nenashev assigned an issue to Unassigned
Change By: Oleg Nenashev
Assignee: Natasha Stopa

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

unread,
Jul 19, 2019, 6:36:02 AM7/19/19
to jenkinsc...@googlegroups.com

alexander.bering@lhsystems.com (JIRA)

unread,
Jul 19, 2019, 6:57:02 AM7/19/19
to jenkinsc...@googlegroups.com

Hi Oleg Nenashev I tried to increase the logging level of jenkins to see more informations, but I didn't see more logs. After restart the logger configuration was reset.

This is the response header using a regular browser:

 

Proxy-Authenticate: Basic realm="McAfee Web Gateway"

alexander.bering@lhsystems.com (JIRA)

unread,
Jul 19, 2019, 6:58:02 AM7/19/19
to jenkinsc...@googlegroups.com
Alexander Bering edited a comment on Bug JENKINS-58567
Hi [~oleg_nenashev] I tried to increase the logging level of jenkins to see more informations, but I didn't see more logs. After restart the logger configuration was reset.


This is the response header using a regular browser:
{code:java}
 

Proxy-Authenticate: Basic realm="McAfee Web Gateway" {code}

alexander.bering@lhsystems.com (JIRA)

unread,
Jul 19, 2019, 7:04:02 AM7/19/19
to jenkinsc...@googlegroups.com
Alexander Bering updated Bug JENKINS-58567
 

I'm sorry, in Java 8 Basic Authentication is deactivated by default.

I had to set the following java arguments:

-Djdk.http.auth.tunneling.disabledSchemes=

Change By: Alexander Bering
Status: Open Fixed but Unreleased
Resolution: Not A Defect

alexander.bering@lhsystems.com (JIRA)

unread,
Jul 19, 2019, 7:05:02 AM7/19/19
to jenkinsc...@googlegroups.com

alexander.bering@lhsystems.com (JIRA)

unread,
Jul 19, 2019, 7:06:02 AM7/19/19
to jenkinsc...@googlegroups.com
Alexander Bering edited a comment on Bug JENKINS-58567
I'm sorry, in later Java 8 8versions the Basic Authentication is deactivated by default.


I had to set the following java arguments:

{{-Djdk.http.auth.tunneling.disabledSchemes=}}

alexander.bering@lhsystems.com (JIRA)

unread,
Jul 19, 2019, 7:09:03 AM7/19/19
to jenkinsc...@googlegroups.com
Alexander Bering closed an issue as Not A Defect
 
Change By: Alexander Bering
Status: Reopened Closed
Resolution: Not A Defect

alexander.bering@lhsystems.com (JIRA)

unread,
Jul 19, 2019, 7:09:03 AM7/19/19
to jenkinsc...@googlegroups.com
Change By: Alexander Bering
Resolution: Not A Defect
Status: Fixed but Unreleased Reopened
Reply all
Reply to author
Forward
0 new messages