简体   繁体   English

无法使用基本网址访问Go Server。

[英]Couldn't access Go Server with base url.. broken pipe

I'm installing a modern GoCD (16.7) on an Ubuntu machine. 我正在Ubuntu机器上安装现代GoCD(16.7)。 openjdk-8 (jre and jdk). openjdk-8(jre和jdk)。 The agents (on localhost) fail to connect to the server: 代理(在本地主机上)无法连接到服务器:

[Sat Jul 30 05:58:47 UTC 2016] Starting Go Agent Bootstrapper with command:
  /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
  -jar /usr/share/go-agent3/agent-bootstrapper.jar
  -serverUrl https://127.0.0.1:8154/go/
...
java.lang.Exception: Couldn't access Go Server with base url:
  https://127.0.0.1:8154/go/admin/agent-launcher.jar:
  java.net.SocketException: Broken pipe
  at com.thoughtworks.go.agent.launcher.ServerCall.invoke(ServerCall.java:78)

and

2016-07-30 06:00:48,790 [main     ] ERROR go.agent.launcher.ServerBinaryDownloader:118
   - Couldn't update admin/agent-launcher.jar. Sleeping for 1m.
   Error: java.lang.Exception: Couldn't access Go Server with base url:
   https://127.0.0.1:8154/go/admin/agent-launcher.jar:
   java.net.SocketException: Broken pipe

(I manually wrapped those lines for readability) (为了便于阅读,我手动包装了这些行)

The server is actually accessible. 该服务器实际上是可访问的。 For instance: 例如:

$ curl --silent --insecure https://127.0.0.1:8154/go/ | head -2
<!-- *************************GO-LICENSE-START******************************
 * Copyright 2014 ThoughtWorks, Inc.

Yes, I'm using --insecure , but gocd ships with a self-signed cert. 是的,我使用的是--insecure ,但是gocd附带了一个自签名证书。 It's standard practice. 这是标准做法。 Some of the things I've seen said "oh, you are blocking your port" but this is to localhost. 我看到的一些内容说:“哦,您正在阻止端口”,但这是到localhost的。

Are your GOCD server and agent using identical versions of Java? 您的GOCD服务器和代理是否使用相同版本的Java? We have found they must be the same because the certificates have to match. 我们发现它们必须相同,因为证书必须匹配。 See chatter 见chat不休

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM