[StarCluster] ERROR - "Incorrect padding" in listclusters command (github version)

Justin Riley justin.t.riley at gmail.com
Tue Feb 1 12:20:13 EST 2011


Hi Kyeong,

I apologize for the delay in responding, the last few weeks have been
insanely busy as classes are starting at MIT and we've been busy
preparing.

The error you received is because the latest github code is not
compatible with clusters started using the 0.91.2 version of
StarCluster. The patch you provided does get around the problem
however it prevents the code from working as intended. To properly fix
this you need to remove any old clusters you started with the 0.91.2
version. You should then be able to use the development version
without your patch. I'm working to put in some logistics that will
prompt users with an error detailing this issue and how to fix it.

Thanks for reporting,

~Justin

On Fri, Jan 14, 2011 at 1:55 PM, Kyeong Soo (Joseph) Kim
<kyeongsoo.kim at gmail.com> wrote:
> After some debugging, I found out the cause of the said problem. Below is
> the output from "git diff":
> ================================================
> diff --git a/starcluster/cluster.py b/starcluster/cluster.py
> index 0e820a7..436ae44 100644
> --- a/starcluster/cluster.py
> +++ b/starcluster/cluster.py
> @@ -544,7 +544,7 @@ class Cluster(object):
>          description field.
>          """
>          try:
> -            compressed_data =
> base64.b64decode(self.cluster_group.description)
> +            compressed_data =
> base64.b64encode(self.cluster_group.description)
>              pkl_data = zlib.decompress(compressed_data)
>              cluster_settings = cPickle.loads(str(pkl_data)).__dict__
>              for key in cluster_settings:
> ================================================
> As you can see, "base64.b64decode" should have been "base64.b64encode" in
> line 547.
> Regards,
> Joseph
>
>
> On Thu, Jan 13, 2011 at 3:02 PM, Kyeong Soo (Joseph) Kim
> <kyeongsoo.kim at gmail.com> wrote:
>>
>> Hello Justin and All,
>> Another bug report for the development version from github.
>> Here below is the error message from "listclusters" command:
>> =============================================
>> ~$ starcluster listclusters
>> StarCluster - (http://web.mit.edu/starcluster) (v. 0.9999)
>> Software Tools for Academics and Researchers (STAR)
>> Please submit bug reports to starcluster at mit.edu
>> cli.py:156 - ERROR - failed to load cluster receipt: Incorrect padding
>> =============================================
>> With the development version, I could go through all the examples in the
>> documentation -- which means there is no problem with the account
>> credentials -- but the listcluster command.
>> By the way, the development version seems quite stable and provides much
>> more information in the configuration template than the stable one (e.g.,
>> the updated information on the use of AMIs in different zones/regions).
>> Regards,
>> Joseph
>
> _______________________________________________
> StarCluster mailing list
> StarCluster at mit.edu
> http://mailman.mit.edu/mailman/listinfo/starcluster
>
>




More information about the StarCluster mailing list