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

Kyeong Soo (Joseph) Kim kyeongsoo.kim at gmail.com
Tue Mar 15 17:54:30 EDT 2011


Justin,

Today I tested this with the newest version from github and
encountered exactly the same error (i.e., incorrect padding) as
before.
To make sure, I started from scratch (including new configure file
from the new version of starcluster), but the result was the same.

By the way, it doesn't matter whether there is any running cluster or not.

Regards,
Joseph


On Thu, Feb 3, 2011 at 3:06 PM, Justin Riley <justin.t.riley at gmail.com> wrote:
> Joseph,
>
> The version number when using the github version will always be 9999
> (because it's the development version).
>
> ~Justin
>
> On Wed, Feb 2, 2011 at 6:32 AM, Kyeong Soo (Joseph) Kim
> <kyeongsoo.kim at gmail.com> wrote:
>> Hi Justin,
>> No need to apologize!
>> I could understand how busy you were as I myself started classes this week
>> here in the UK.
>> Per your instruction, I will try it again and report back, if needed.
>> Many thanks for your detailed response,
>> Joseph
>> P.S.
>> How can I know the version number?
>> I just did 'git pull', installed it ('sudo python setup.py install'), and
>> typed 'starcluster --version'.
>> The version number returned, however, is '0.9999', exactly the same as
>> before.
>>
>> On Tue, Feb 1, 2011 at 5:20 PM, Justin Riley <justin.t.riley at gmail.com>
>> wrote:
>>>
>>> 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
>>> >
>>> >
>>>
>>> _______________________________________________
>>> StarCluster mailing list
>>> StarCluster at mit.edu
>>> http://mailman.mit.edu/mailman/listinfo/starcluster
>>
>>
>
> _______________________________________________
> StarCluster mailing list
> StarCluster at mit.edu
> http://mailman.mit.edu/mailman/listinfo/starcluster
>




More information about the StarCluster mailing list