Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/359.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Jenkins:IOException:无法通过代理进行隧道传输。代理返回“需要HTTP/1.1 407代理身份验证”_Java_Jenkins_Proxy - Fatal编程技术网

Java Jenkins:IOException:无法通过代理进行隧道传输。代理返回“需要HTTP/1.1 407代理身份验证”

Java Jenkins:IOException:无法通过代理进行隧道传输。代理返回“需要HTTP/1.1 407代理身份验证”,java,jenkins,proxy,Java,Jenkins,Proxy,首先,我想告诉大家,这个问题不是重复的 IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required". 我想在Jenkins中安装插件。我去了更新中心,但我无法安装任何东西,因为我有以下错误: IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy

首先,我想告诉大家,这个问题不是重复的

IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required".
我想在Jenkins中安装插件。我去了更新中心,但我无法安装任何东西,因为我有以下错误:

IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required".
另外,说到Java,我有64位的Java

IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required".
我尝试更改JRE文件夹,并将这些东西放在64位的JRE上,因为Jenkins安装了32位,但它不起作用。如何解决这个问题?

TL;博士
IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required".
希望你现在已经明白了,但是对于那些在不久的将来自己寻找答案的人

IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required".
我做了很多事情,但我不确定到底是什么起了作用,但以下是我认为对我起作用的和我实际做的

IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required".
我认为有效的 Jenkins从、等处了解到代理设置的错误。因此,我认为这是可行的:

IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required".
设置Java代理设置 根据您运行Jenkins的方式,即运行java-jar Jenkins.war或作为守护程序systemctl start Jenkins.service,您必须提供代理配置作为java选项

IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required".
我以守护进程的形式运行它,因此我在/etc/sysconfig/jenkins中添加了我的选项。我不知道它在Windows中的jenkins_JAVA_选项下的何处,并添加了以下JAVA选项:

IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required".
-Dhttp.proxyHost=THE_PROXY_HOST_NAME -Dhttp.proxyPort=PORT_NUMBER -Dhttp.proxyUser=USER_NAME -Dhttp.proxyPassword=MY_SUPER_SECRET_PASSWORD -Dhttp.auth.preference=basic -Djdk.http.auth.tunneling.disabledSchemes=
我猜我可能可以根据这篇文章来做-Djdk.http.auth.tunneling.disabledSchemes=Basic而不是Dhttp.auth.preference=Basic-Djdk.http.auth.tunneling.disabledSchemes=,但我很懒,不想测试这个问题,我会在某一天回来完善这个答案

IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required".
我到底做了什么 除了上面提到的步骤,我做了一些奇怪的事情,我非常绝望,我已经4个月没有更新插件了

IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required".
在/etc/rc.d/init.d/jenkins中向我的启动脚本添加了一个导出命令 导出HTTP\U代理=http://username:password@您的代理服务器:端口 在Jenkins>Manage Jenkins>Configure System>global Properties>Checkbox Environment variable>Add a variable name HTTP_PROXY and value上添加了一个全局变量http://username:password@您的代理服务器:端口 我不记得我最后还做了什么,但我认为它们不重要,因为它们不起作用

IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required".
祝你好运

TL;博士
IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required".
希望你现在已经明白了,但是对于那些在不久的将来自己寻找答案的人

IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required".
我做了很多事情,但我不确定到底是什么起了作用,但以下是我认为对我起作用的和我实际做的

IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required".
我认为有效的 Jenkins从、等处了解到代理设置的错误。因此,我认为这是可行的:

IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required".
设置Java代理设置 根据您运行Jenkins的方式,即运行java-jar Jenkins.war或作为守护程序systemctl start Jenkins.service,您必须提供代理配置作为java选项

IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required".
我以守护进程的形式运行它,因此我在/etc/sysconfig/jenkins中添加了我的选项。我不知道它在Windows中的jenkins_JAVA_选项下的何处,并添加了以下JAVA选项:

IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required".
-Dhttp.proxyHost=THE_PROXY_HOST_NAME -Dhttp.proxyPort=PORT_NUMBER -Dhttp.proxyUser=USER_NAME -Dhttp.proxyPassword=MY_SUPER_SECRET_PASSWORD -Dhttp.auth.preference=basic -Djdk.http.auth.tunneling.disabledSchemes=
我猜我可能可以根据这篇文章来做-Djdk.http.auth.tunneling.disabledSchemes=Basic而不是Dhttp.auth.preference=Basic-Djdk.http.auth.tunneling.disabledSchemes=,但我很懒,不想测试这个问题,我会在某一天回来完善这个答案

IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required".
我到底做了什么 除了上面提到的步骤,我做了一些奇怪的事情,我非常绝望,我已经4个月没有更新插件了

IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required".
在/etc/rc.d/init.d/jenkins中向我的启动脚本添加了一个导出命令 导出HTTP\U代理=http://username:password@您的代理服务器:端口 在Jenkins>Manage Jenkins>Configure System>global Properties>Checkbox Environment variable>Add a variable name HTTP_PROXY and value上添加了一个全局变量http://username:password@您的代理服务器:端口 我不记得我最后还做了什么,但我认为它们不重要,因为它们不起作用

IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required".

祝你好运

也许这不会真的有帮助,我有一个代理,我应该使用它,它应该可以工作,但问题是在其他方面…还有,一些。但是错误很明显-代理需要未正确提供的身份验证。对,要么错误消息是假的,要么你的代理没有获得它想要的身份验证。这可能是什么原因@joshpMaybe这将不会真的有帮助,我有代理,我应该使用,它应该工作,但问题是在其他东西…也有一些。但是错误很明显-代理需要未正确提供的身份验证。对,要么错误消息是假的,要么你的代理没有获得它想要的身份验证。这可能是什么原因@乔什
IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required".