ruby-on-rails - Rails 5-如何解决HTTP 403响应正文错误?

标签 ruby-on-rails reactjs docker certificate

我正在尝试使用docker容器运行Rails 5项目,前端是reactjs。运行sudo bin/houston start命令时,出现类似以下错误

Firing engines...
Pulling elasticsearch (docker.elastic.co/elasticsearch/elasticsearch:5.4.0)...
ERROR: error parsing HTTP 403 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n<meta name=\"referrer\" content=\"no-referrer\">\n    <title>Web Filter Violation</title>\n    <style type=\"text/css\">\n        html, body { margin: 0; padding: 0; font-family: Verdana, Arial, sans-serif; font-size: 10pt; }\n        h1, h2 { height: 82px; text-indent: -999em; margin: 0; padding: 0; margin: 0; }\n        div { margin: 0; padding: 0; }\n        div.header { background: url(http://url.fortinet.net:8008/XX/YY/ZZ/CI/MGPGHGPGPFGHCDPFGGOGFGEH) 0 0 repeat-x; height: 82px; }\n        div.header h1 { background: url(http://url.fortinet.net:8008/XX/YY/ZZ/CI/MGPGHGPGPFGHCDPFGGHGFHBGCHEGPFHHGG) 0 0 no-repeat; }\n        div.header h2 { background: url(http://url.fortinet.net:8008/XX/YY/ZZ/CI/MGPGHGPGPFGHCDPFGGOGFGEH) 0 -82px no-repeat; width: 160px; float: right; }\n        div.sidebar { width: 195px; height: 200px; float: left; }\n        div.main { padding: 5px; margin-left: 195px; }\n        div.buttons { margin-top: 30px; text-align: right; }\n        h3 { margin: 36px 0; font-size: 16pt; }\n        .blocked      h3 { color: #c00; }\n        .authenticate h3 { color: #36c; }\n        h2.fgd_icon { background: url(http://url.fortinet.net:8008/XX/YY/ZZ/CI/MGPGHGPGPFGHCDPFGGOGFGEH) 0 -166px repeat-x; width: 90px; height: 92px; margin: 48px auto; }\n        .blocked      h2.fgd_icon { background-position: 0 -166px; }\n        .authenticate h2.fgd_icon { background-position: -89px -166px; }\n        form { width: 300px; margin: 30px 0; }\n        label { display: block; width: 300px; margin: 5px 0; line-height: 25px; }\n        label input { width: 200px; border: 1px solid #7f9db9; height: 20px; float: right; }\n    </style>\n</head>\n<body class=\"blocked\">\n    <div class=\"header\">\n        <h2>Powered By Fortinet</h2>\n        <h1>FortiGuard Web Filtering</h1>\n    </div>\n    <div class=\"sidebar\">\n        <h2 class=\"fgd_icon\">blocked</h2>\n    </div>\n    <div class=\"main\">\n<h3>Web Page Blocked!</h3>\n<div class=\"notice\">\n    <p>You have tried to access a web page which is in violation of your internet usage policy.</p>\n    <p>\n        URL: https://docker.elastic.co/<br />\n        Category: Business\n        <br/>Client IP: 172.16.3.74\n        <br/>Server IP: 52.206.9.114\n        <br/>User name: \n        <br/>Group name: \n    </p>\n    <p>\n       \n    </p>\n    <p> To have the rating of this web page re-evaluated <a href=\"http://url.fortinet.net/rate/submit.php?id=4F023F7369116F493E247B733E653336&cat=31&loc=https://docker%2eelastic%2eco%2f&ver=8\">please click here</a>.</p>\n</div>\n    </div>\n</body>\n</html>\r\n"

如果我尝试通过运行其他命令来解决,我将得到CA Certification错误。

如果我运行sudo bin/houston bundle,则错误类似于ERROR: No container found for web_1
请帮我解决这个问题。

最佳答案

docker-registry github存储库中存在一个问题,似乎与您的错误非常相似。

一探究竟:
https://github.com/docker/docker-registry/issues/298

关于ruby-on-rails - Rails 5-如何解决HTTP 403响应正文错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50737311/

相关文章:

ruby-on-rails - 是时候试试 merb 了吗?

css - 在图像中居中数字( rails )

ruby-on-rails - 如何处理ajax调用的身份验证失败?

reactjs - 更新由 : RCTView java. lang.String 管理的 View 的属性 'borderStyle' 时出错,无法转换为 java.lang.Double

windows - Amazon Workspaces 是否支持 Docker for Windows?

ruby-on-rails - 从 Ruby on Rails 中以 sudo 方式读取文件

reactjs - 渲染是否在调用 React Hooks useEffect 中的函数之前发生?

javascript - React 或 Next.js 在内部清理类属性吗?

amazon-web-services - Docker-机器AWS策略

.net - 无法从其他容器 : Connection refused - 1/1 brokers are down 连接到 Kafka Docker 容器