From 93e2a6ad45bb6ae3e938f32ac3f1809a96d83796 Mon Sep 17 00:00:00 2001 From: Murdo Aird Date: Mon, 29 Aug 2016 21:47:51 +0100 Subject: [PATCH 1/3] added more to deployment troubleshooting section --- guide/ops/troubleshooting/deployment.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/guide/ops/troubleshooting/deployment.md b/guide/ops/troubleshooting/deployment.md index 9e85dec3..3f773aa4 100644 --- a/guide/ops/troubleshooting/deployment.md +++ b/guide/ops/troubleshooting/deployment.md @@ -143,3 +143,25 @@ start tasks are completed). See the [overview](overview.html) for where to find additional information, especially the section on "Entity's Error Status". + +## Invalid packet error + +If you receive an error message similar to the one below when provisioning a Centos VM, you can workaround the issue by explicitly setting the user that AMP should use to login to the VM. + +`error acquiring SFTPClient() (out of retries - max 50) +Invalid packet: indicated length too large +java.lang.IllegalStateException +Invalid packet: indicated length too large` + +An example of how to explicitly set the user is shown below (when defining a Location) by using 'loginUser': + +{% highlight yaml %} +brooklyn.locations: +- type: jclouds:aws-ec2 + brooklyn.config: + displayName: aws-us-east-1 + region: us-east-1 + identity: + credential: + loginUser: centos +{% endhighlight %} \ No newline at end of file From 34df9073c2c6e335028b1b204aa4ad3084cbd776 Mon Sep 17 00:00:00 2001 From: Murdo Aird Date: Tue, 30 Aug 2016 10:01:34 +0100 Subject: [PATCH 2/3] further tweaks to troubleshooting page --- guide/ops/troubleshooting/deployment.md | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/guide/ops/troubleshooting/deployment.md b/guide/ops/troubleshooting/deployment.md index 3f773aa4..541914dc 100644 --- a/guide/ops/troubleshooting/deployment.md +++ b/guide/ops/troubleshooting/deployment.md @@ -16,11 +16,20 @@ brackets. The error `Unrecognized application blueprint format: no services defined` means that the `services:` section is missing. -An error like `Deployment plan item Service[name=,description=,serviceType=com.acme.Foo,characteristics=[],customAttributes={}] cannot be matched` means that the given entity type (in this case com.acme.Foo) is not in the catalog or on the classpath. +An error like the one shown below means that the given entity type (in this case com.acme.Foo) is not in the catalog or on the classpath: + +{% highlight bash %} +Deployment plan item Service[name=,description=,serviceType=com.acme.Foo,characteristics=[],customAttributes={}] cannot be matched +{% endhighlight %} -An error like `Illegal parameter for 'location' (aws-ec3); not resolvable: java.util.NoSuchElementException: Unknown location 'aws-ec3': either this location is not recognised or there is a problem with location resolver configuration` means that the given location (in this case aws-ec3) -was unknown. This means it does not match any of the named locations in brooklyn.properties, nor any of the -clouds enabled in the jclouds support, nor any of the locations added dynamically through the catalog API. + +An error like the one shown below means that the given location (in this case aws-ec3) was unknown: + +{% highlight bash %} +Illegal parameter for 'location' (aws-ec3); not resolvable: java.util.NoSuchElementException: Unknown location 'aws-ec3': either this location is not recognised or there is a problem with location resolver configuration +{% endhighlight %} + +This means it does not match any of the named locations in brooklyn.properties, nor any of the clouds enabled in the jclouds support, nor any of the locations added dynamically through the catalog API. ## VM Provisioning Failures @@ -146,12 +155,14 @@ See the [overview](overview.html) for where to find additional information, espe ## Invalid packet error -If you receive an error message similar to the one below when provisioning a Centos VM, you can workaround the issue by explicitly setting the user that AMP should use to login to the VM. +If you receive an error message similar to the one below when provisioning a VM, you can workaround the issue by explicitly setting the user that AMP should use to login to the VM (typically the OS default user). -`error acquiring SFTPClient() (out of retries - max 50) +{% highlight bash %} +error acquiring SFTPClient() (out of retries - max 50) Invalid packet: indicated length too large java.lang.IllegalStateException -Invalid packet: indicated length too large` +Invalid packet: indicated length too large +{% endhighlight %} An example of how to explicitly set the user is shown below (when defining a Location) by using 'loginUser': From 498d790c4a58fcfc4065d2c392b2f6e0fdfc1cc2 Mon Sep 17 00:00:00 2001 From: Murdo Aird Date: Wed, 31 Aug 2016 12:23:13 +0100 Subject: [PATCH 3/3] incorporated aled's wording changes --- guide/ops/troubleshooting/deployment.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/guide/ops/troubleshooting/deployment.md b/guide/ops/troubleshooting/deployment.md index 541914dc..cb8559b9 100644 --- a/guide/ops/troubleshooting/deployment.md +++ b/guide/ops/troubleshooting/deployment.md @@ -155,7 +155,9 @@ See the [overview](overview.html) for where to find additional information, espe ## Invalid packet error -If you receive an error message similar to the one below when provisioning a VM, you can workaround the issue by explicitly setting the user that AMP should use to login to the VM (typically the OS default user). +If you receive an error message similar to the one below when provisioning a VM, it means that the wrong username is being used for ssh'ing to the machine. The "invalid packet" is because a response such as "Please login as the ubuntu user rather than root user." is being sent back. + +You can workaround the issue by explicitly setting the user that AMP should use to login to the VM (typically the OS default user). {% highlight bash %} error acquiring SFTPClient() (out of retries - max 50)