Rubygems 网站使用 Ruby 2.3.0 的 RVM 阻止了 Bundler
Bundler is being blocked by Rubygems website using RVM with Ruby 2.3.0
我正在使用 Jenkins 来自动化构建过程。我从 git 中提取代码,然后 运行 捆绑安装以加载正确的 gem。但是,当我这样做时,我收到一条错误消息(见下文),表明连接被阻止。我在命令行上收到与 jenkins 用户相同的错误 运行 a bundle install 。但是,我可以在命令行上执行 wget 并检索文件。我也可以使用 jruby 和 jenkins 进行捆绑安装,但我没有收到错误。
我的网络管理员坚称不是他们干的。我是 运行 通过代理,但这似乎不是问题,因为它在其他情况下有效。我是 运行 从命令行。没有来自浏览器的病毒,因为我没有在机器上安装任何浏览器,尽管错误消息表明了什么。
有没有人知道可能导致此响应的原因?如果做不到这一点,有人对解决方法有任何想法吗?
我是运行:
centos/6.6
rvm/1.26.11
bundler/1.11.2
rubygems/2.5.1
ruby/2.3.0
>bundle install
Fetching source index from http://rubygems.org/
Net::HTTPForbidden: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Notification: Security: Browser</title>
<style type="text/css">
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color:#333333;
background-color: #ffffff;
}
h1 {
font-size: 18px;
font-weight: bold;
text-decoration: none;
padding-top: 0px;
color: #2970A6;
}
a:link {
color: #2970A6;
text-decoration: none;
}
a:hover {
color: #2970A6;
text-decoration: underline;
}
p.buttonlink {
margin-bottom: 24px;
}
.copyright {
font-size: 12px;
color: #666666;
margin: 5px 5px 0px 30px;
}
.details {
font-size: 14px;
color: #969696;
border: none;
padding: 20px 20px 20px 20px;
margin: 0px 10px 10px 35px;
}
.shadow {
border: 3px solid #9f9f9f;
padding: 10px 25px 10px 25px;
margin: 10px 35px 0px 30px;
background-color: #ffffff;
width: 600px;
-moz-box-shadow: 3px 3px 3px #cccccc;
-webkit-box-shadow: 3px 3px 3px #cccccc;
box-shadow: 3px 3px 3px #cccccc;
/* For IE 8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=5,
Direction=135, Color='cccccc')";
/* For IE 5.5 - 7 */
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=135,
Color='cccccc');
}
.logo {
border: none;
margin: 5px 5px 0px 30px;
}
</style>
</head>
<body>
<div class="logo"></div><p> </p>
<div class="shadow">
<h1>This Page Cannot Be Displayed</h1>
<p>
Based on your organization's access policies, requests from your
computer have been blocked because it has been determined to be a security
threat to the organization's network. Your browser may have been compromised
by a malware/spyware agent identified as "bundler/1.11.2 rubygems/2.5.1
ruby/2.3.0 (x86_64-pc-linux-gnu) command/install
options/path,disable_shared_gems ci/jenkins c519813b2ff2a1bc".
</p>
<p>
If you have questions, please contact
your organization's network administrator
</p>
<p>
</p>
</div>
<div class="details"><p>
Date: Tue, 15 Mar 2016 19:18:13 GMT<br />
Username: <br />
Source IP: 172.18.77.77<br />
URL: GET http://rubygems.org/quick/Marshal.4.8/rake-0.4.8.gemspec.rz<br />
Category: <br />
Reason: BLOCK-BROWSER<br />
Notification: BROWSER
</p></div>
</body>
</html>
这个问题的解决方案是编辑 Gemfile 文件并更改:
source "http://rubygems.org"
至:
source "https://rubygems.org"
我正在使用 Jenkins 来自动化构建过程。我从 git 中提取代码,然后 运行 捆绑安装以加载正确的 gem。但是,当我这样做时,我收到一条错误消息(见下文),表明连接被阻止。我在命令行上收到与 jenkins 用户相同的错误 运行 a bundle install 。但是,我可以在命令行上执行 wget 并检索文件。我也可以使用 jruby 和 jenkins 进行捆绑安装,但我没有收到错误。
我的网络管理员坚称不是他们干的。我是 运行 通过代理,但这似乎不是问题,因为它在其他情况下有效。我是 运行 从命令行。没有来自浏览器的病毒,因为我没有在机器上安装任何浏览器,尽管错误消息表明了什么。
有没有人知道可能导致此响应的原因?如果做不到这一点,有人对解决方法有任何想法吗?
我是运行: centos/6.6 rvm/1.26.11 bundler/1.11.2 rubygems/2.5.1 ruby/2.3.0
>bundle install
Fetching source index from http://rubygems.org/
Net::HTTPForbidden: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Notification: Security: Browser</title>
<style type="text/css">
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color:#333333;
background-color: #ffffff;
}
h1 {
font-size: 18px;
font-weight: bold;
text-decoration: none;
padding-top: 0px;
color: #2970A6;
}
a:link {
color: #2970A6;
text-decoration: none;
}
a:hover {
color: #2970A6;
text-decoration: underline;
}
p.buttonlink {
margin-bottom: 24px;
}
.copyright {
font-size: 12px;
color: #666666;
margin: 5px 5px 0px 30px;
}
.details {
font-size: 14px;
color: #969696;
border: none;
padding: 20px 20px 20px 20px;
margin: 0px 10px 10px 35px;
}
.shadow {
border: 3px solid #9f9f9f;
padding: 10px 25px 10px 25px;
margin: 10px 35px 0px 30px;
background-color: #ffffff;
width: 600px;
-moz-box-shadow: 3px 3px 3px #cccccc;
-webkit-box-shadow: 3px 3px 3px #cccccc;
box-shadow: 3px 3px 3px #cccccc;
/* For IE 8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=5,
Direction=135, Color='cccccc')";
/* For IE 5.5 - 7 */
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=135,
Color='cccccc');
}
.logo {
border: none;
margin: 5px 5px 0px 30px;
}
</style>
</head>
<body>
<div class="logo"></div><p> </p>
<div class="shadow">
<h1>This Page Cannot Be Displayed</h1>
<p>
Based on your organization's access policies, requests from your
computer have been blocked because it has been determined to be a security
threat to the organization's network. Your browser may have been compromised
by a malware/spyware agent identified as "bundler/1.11.2 rubygems/2.5.1
ruby/2.3.0 (x86_64-pc-linux-gnu) command/install
options/path,disable_shared_gems ci/jenkins c519813b2ff2a1bc".
</p>
<p>
If you have questions, please contact
your organization's network administrator
</p>
<p>
</p>
</div>
<div class="details"><p>
Date: Tue, 15 Mar 2016 19:18:13 GMT<br />
Username: <br />
Source IP: 172.18.77.77<br />
URL: GET http://rubygems.org/quick/Marshal.4.8/rake-0.4.8.gemspec.rz<br />
Category: <br />
Reason: BLOCK-BROWSER<br />
Notification: BROWSER
</p></div>
</body>
</html>
这个问题的解决方案是编辑 Gemfile 文件并更改:
source "http://rubygems.org"
至:
source "https://rubygems.org"