You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by tb...@apache.org on 2018/06/05 08:20:47 UTC

[2/4] brooklyn-docs git commit: BROOKLYN-588: add to troubleshooting for curl failure

BROOKLYN-588: add to troubleshooting for curl failure

See https://issues.apache.org/jira/browse/BROOKLYN-588

Project: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/commit/093f483c
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/tree/093f483c
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/diff/093f483c

Branch: refs/heads/master
Commit: 093f483c133b856369afc2f7a7a2cdd9b1a74e4f
Parents: 55055c3
Author: Aled Sage <al...@gmail.com>
Authored: Mon Jun 4 09:54:11 2018 +0100
Committer: Aled Sage <al...@gmail.com>
Committed: Mon Jun 4 09:54:11 2018 +0100

----------------------------------------------------------------------
 guide/ops/troubleshooting/deployment.md | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-docs/blob/093f483c/guide/ops/troubleshooting/deployment.md
----------------------------------------------------------------------
diff --git a/guide/ops/troubleshooting/deployment.md b/guide/ops/troubleshooting/deployment.md
index 75bd140..38121e2 100644
--- a/guide/ops/troubleshooting/deployment.md
+++ b/guide/ops/troubleshooting/deployment.md
@@ -189,3 +189,27 @@ traffic filtering such as child-safe type filtering:
 
 To resolve this try disabling traffic filtering and setting your DNS to a public server such as 8.8.8.8 to use google
 [DNS](https://www.wikiwand.com/en/Google_Public_DNS).  [See here](https://developers.google.com/speed/public-dns/docs/using) for details on how to configure this.
+
+
+## Download with Curl Fails on CentOS 7.0 due to TLS Negotiation
+
+When downloading an install artifact with Curl, using CentOS 7.0, one can get the failure shown below:
+
+    curl: (35) Peer reports incompatible or unsupported protocol version.
+
+This can be caused by incompatible TLS negotiation with the web server (e.g. with github). For more details, see
+[Red Hat bug 1170339, "use the default min/max TLS version provided by NSS [RHEL-7]"](https://bugzilla.redhat.com/show_bug.cgi?format=multiple&id=1170339).
+
+To confirm this is the issue, try running the failing curl command on the same machine with `curl -v` for verbose output.
+You should see a more detailed error such as:
+
+    NSS error -12286 (SSL_ERROR_NO_CYPHER_OVERLAP)
+    Cannot communicate securely with peer: no common encryption algorithm(s).
+    Closing connection 1
+
+Possible workarounds include:
+
+1. Use a more recent version of CentOS. On AWS, a good choice is the most recent centos.org image from the 
+[AWS marketplace](https://aws.amazon.com/marketplace/pp/B00O7WM7QW). However, this involves first subscribing to it in the marketplace. The Amazon Linux AMI is another good choice, but this is not a normal CentOS image so it depends what distro(s) the entity was developed/tested against.
+
+2. Change your blueprint to first do `sudo yum update -y curl nss`, before the curl command is executed.