Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command was not found matching DetachInstances #386

Closed
matt-d opened this issue Nov 4, 2014 · 3 comments
Closed

Command was not found matching DetachInstances #386

matt-d opened this issue Nov 4, 2014 · 3 comments
Labels
guidance Question that needs advice or information.

Comments

@matt-d
Copy link

matt-d commented Nov 4, 2014

The PHP SDK returns the following error when trying to execute a detachInstance request:

[02-Nov-2014 19:01:05 UTC] PHP Fatal error: Uncaught exception 'Guzzle\Common\Exception\InvalidArgumentException' with message 'Command was not found matching DetachInstances' in /usr/share/php/Guzzle/Service/Client.php:86
Stack trace:
#0 /usr/share/php/Guzzle/Service/Client.php(75): Guzzle\Service\Client->getCommand('DetachInstances', Array)
#1 /usr/share/php/Aws/Common/Client/AbstractClient.php(105): Guzzle\Service\Client->__call('DetachInstances', Array)
#2 /usr/local/sbin/dragonfly/release.aws.php(2076): Aws\Common\Client\AbstractClient->__call('detachInstances', Array)
#3 /usr/local/sbin/dragonfly/release.aws.php(2076): Aws\AutoScaling\AutoScalingClient->detachInstances(Array)
#4 /usr/local/sbin/dragonfly/release.aws.php(1412): Deploy->detachInstance('i-#######')
#5 /usr/local/sbin/dragonfly/release.aws.php(2258): Deploy->run()
#6 {main}

thrown in /usr/share/php/Guzzle/Service/Client.php on line 86

I'm using the following documentation:
http://docs.aws.amazon.com/aws-sdk-php/latest/class-Aws.AutoScaling.AutoScalingClient.html#_detachInstances

ubuntu@ip-10-10-1-43:/usr/share/php$ sudo aptitude versions php-aws-sdk
Package php-aws-sdk:
i 2.5.2-1 trusty 50

@jeremeamia
Copy link
Contributor

If you look in the CHANGELOG, the ability to detach an instance with the AutoScalingClient was not added until version 2.6.13. You will need an updated version of the SDK to use that feature.

@matt-d
Copy link
Author

matt-d commented Nov 4, 2014

Any plans to release an updated deb for ubuntu?

We use userdata via a launch configuration for our deploy/upgrade processes - being able to do:

#!/bin/bash
apt-get update
apt-get install -y php5-cli php-aws-sdk
...
without the need for a full composer install is pretty handy...

@mtdowling
Copy link
Member

We do not maintain the packages for ubuntu or any distribution other than Amazon Linus.

@diehlaws diehlaws added guidance Question that needs advice or information. and removed no-issue labels Jan 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
guidance Question that needs advice or information.
Projects
None yet
Development

No branches or pull requests

4 participants