cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chiradeep Vittal <Chiradeep.Vit...@citrix.com>
Subject Re: cloudmonkey
Date Thu, 01 Aug 2013 23:43:25 GMT
431 is "parameter error" indicating that a required parameter is not
present. You can check "api.log".
Note that all the parameters have to be on one line.

On 7/28/13 3:38 PM, "Rohit Yadav" <bhaisaab@apache.org> wrote:

>On Sun, Jul 28, 2013 at 12:54 PM, Dean Kamali <dean.kamali@gmail.com>
>wrote:
>
>> Hello everyone
>>
>> I just can't figure out why when I run the following command from my
>>shell,
>> works fine, but as soon as I put it in a file and execute it it fails
>>
>>
>> content of file
>>
>> /usr/local/bin/cloudmonkey create account
>> domainid='c9af6251-2ff0-4591-88ab-5eb9bba87885' username=Dean
>> password=abc123 email=dean.kamali@gmail.com accounttype=0 firstname=Dean
>> lastname=Kamali
>>
>>
>> #bash ./file
>> HTTP Error 431:
>>
>
>This could be due to file path issue.
>
>- Make sure the user who's running the command on shell and via
>file/script
>is same.
>- Escape strings with chars, like:
>
>/usr/local/bin/cloudmonkey create account
>domainid='c9af6251-2ff0-4591-88ab-5eb9bba87885' username=Dean
>password=abc123 email='dean.kamali@gmail.com' accounttype=0 firstname=Dean
>lastname=Kamali
>
>- Another way of running via file is to give list of commands to
>cloudmonkey, so put the commands in a file;
>$ cat mycommands
>create account
>domainid='c9af6251-2ff0-4591-88ab-5eb9bba87885' username=Dean
>password=abc123 email=dean.kamali@gmail.com accounttype=0 firstname=Dean
>lastname=Kamali
>$ cloudmonkey < mycommands
>
>In the above example, cloudmonkey interprets each line separated command
>and exits.
>
>If the issue persists, try  looking in ~/.cloudmonkey/log and share with
>us
>the issue.
>
>HTH.
>
>
>> if I copy the command and run it on my shell it works perfectly.
>>
>> this is very frustrating.
>>
>> Dean
>>


Mime
View raw message